26#include "xml2latexparser.h"
28Xml2LatexParser::Xml2LatexParser( const KoStore* in, TQString fileOut, Config* config):
29 XmlParser(config, in), _file(fileOut), _in( in )
32 kdDebug(30522) << fileOut.latin1() << endl;
38void Xml2LatexParser::analyse()
43 kdDebug(30522) << "HEADER -> PAPER" << endl;
44 FileHeader::instance()->analysePaper(getChild(balise, "PAPER"));
45 kdDebug(30522) << "HEADER -> ATTRIBUTES" << endl;
46 FileHeader::instance()->analyseAttributs(getChild(balise, "ATTRIBUTES"));
47 kdDebug(30522) << "HEADER -> FRAMESETS" << endl;
48 _document.analyse(getChild(balise, "FRAMESETS"));
49 kdDebug(30522) << "HEADER -> END FRAMESETS" << endl;
52 kdDebug(30522) << "HEADER -> PICTURES" << endl;
53 _document.analysePixmaps(getChild(balise, "PICTURES"));
55 kdDebug(30522) << "END ANALYSE" << endl;
58void Xml2LatexParser::generate()
60 if(_file.open(IO_WriteOnly))
62 kdDebug(30522) << "GENERATION" << endl;
63 _out.setDevice(&_file);
64 if(!Config::instance()->isEmbeded())
65 FileHeader::instance()->generate(_out);
66 _document.generate(_out, !Config::instance()->isEmbeded());
71 kdDebug(30522) << "Can't use the file ..." << endl;
This class hold all parameters and configuration from a file or from the filter configuration dialog ...
This class supply some convenients methods to access to a DOM tree.
|