filters

#include <xmlparser.h>

Inheritance diagram for XmlParser:
Document Document Element FileHeader FileHeader Format Format Key Map Pen Spreadsheet Table

Public Member Functions

 XmlParser (TQString)
 
 XmlParser (TQByteArray)
 
 XmlParser (const KoStore *)
 
TQString getFilename () const
 
TQString getDocument () const
 
Document * getRoot () const
 
FileHeader * getFileHeader () const
 
TQString getChildName (TQDomNode, int)
 
TQDomNode getChild (TQDomNode, TQString)
 
TQDomNode getChild (TQDomNode, TQString, int)
 
TQDomNode getChild (TQDomNode, int)
 
TQString getData (TQDomNode, int)
 
TQString getData (TQDomNode, TQString)
 
int getNbChild (TQDomNode, TQString)
 
int getNbChild (TQDomNode)
 
TQString getAttr (TQDomNode, TQString) const
 
bool isChild (TQDomNode, TQString)
 
void setFileHeader (FileHeader *h)
 
void setRoot (Document *r)
 
TQDomNode init ()
 
 XmlParser (Config *, TQString)
 
 XmlParser (Config *, TQByteArray)
 
 XmlParser (Config *, const KoStore *)
 
TQString getFilename () const
 
TQString getDocument () const
 
Document * getRoot () const
 
KoStore * getStorage () const
 
TQString getChildName (TQDomNode, int)
 
TQDomNode getChild (TQDomNode, TQString)
 
TQDomNode getChild (TQDomNode, TQString, int)
 
TQDomNode getChild (TQDomNode, int)
 
TQString getData (TQDomNode, int)
 
int getNbChild (TQDomNode, TQString)
 
int getNbChild (TQDomNode)
 
TQString getAttr (TQDomNode, TQString) const
 
bool isChild (TQDomNode, TQString)
 
void setRoot (Document *r)
 
TQDomNode init ()
 

Static Protected Attributes

static FileHeader * _fileHeader = 0
 
static Document * _root = 0
 
static TQString _filename
 

Detailed Description

This class supply some convenients methods to access to a DOM tree.

TODO: implement singleton. TODO: remove config in constructors, static variables.

Author
robert jacolin

Definition at line 33 of file kspread/latex/export/xmlparser.h.

Constructor & Destructor Documentation

◆ XmlParser() [1/7]

XmlParser::XmlParser ( TQString  filename)

Definition at line 33 of file kspread/latex/export/xmlparser.cpp.

◆ XmlParser() [2/7]

XmlParser::XmlParser ( TQByteArray  in)

Definition at line 47 of file kspread/latex/export/xmlparser.cpp.

◆ XmlParser() [3/7]

XmlParser::XmlParser ( const KoStore *  in)

Definition at line 52 of file kspread/latex/export/xmlparser.cpp.

◆ XmlParser() [4/7]

XmlParser::XmlParser ( )

Definition at line 65 of file kspread/latex/export/xmlparser.cpp.

◆ ~XmlParser()

XmlParser::~XmlParser ( )
virtual

Definition at line 69 of file kspread/latex/export/xmlparser.cpp.

◆ XmlParser() [5/7]

XmlParser::XmlParser ( Config *  config,
TQString  filename 
)

Definition at line 34 of file kword/latex/export/xmlparser.cpp.

◆ XmlParser() [6/7]

XmlParser::XmlParser ( Config *  config,
TQByteArray  in 
)

Definition at line 51 of file kword/latex/export/xmlparser.cpp.

◆ XmlParser() [7/7]

XmlParser::XmlParser ( Config *  config,
const KoStore *  in 
)

Definition at line 56 of file kword/latex/export/xmlparser.cpp.

Member Function Documentation

◆ getAttr()

TQString XmlParser::getAttr ( TQDomNode  balise,
TQString  name 
) const

Definition at line 134 of file kspread/latex/export/xmlparser.cpp.

◆ getChild() [1/3]

TQDomNode XmlParser::getChild ( TQDomNode  balise,
int  index 
)

Definition at line 99 of file kspread/latex/export/xmlparser.cpp.

◆ getChild() [2/3]

TQDomNode XmlParser::getChild ( TQDomNode  balise,
TQString  name 
)

Definition at line 75 of file kspread/latex/export/xmlparser.cpp.

◆ getChild() [3/3]

TQDomNode XmlParser::getChild ( TQDomNode  balise,
TQString  name,
int  index 
)

Definition at line 89 of file kspread/latex/export/xmlparser.cpp.

◆ getChildName()

TQString XmlParser::getChildName ( TQDomNode  balise,
int  index 
)

Definition at line 129 of file kspread/latex/export/xmlparser.cpp.

◆ getData() [1/2]

TQString XmlParser::getData ( TQDomNode  balise,
int  index 
)

Definition at line 107 of file kspread/latex/export/xmlparser.cpp.

◆ getData() [2/2]

TQString XmlParser::getData ( TQDomNode  balise,
TQString  name 
)

Definition at line 112 of file kspread/latex/export/xmlparser.cpp.

◆ getDocument() [1/2]

TQString XmlParser::getDocument ( ) const
inline

Definition at line 57 of file kspread/latex/export/xmlparser.h.

◆ getDocument() [2/2]

TQString XmlParser::getDocument ( ) const
inline

Definition at line 66 of file kword/latex/export/xmlparser.h.

◆ getFileHeader()

FileHeader * XmlParser::getFileHeader ( ) const
inline

Definition at line 59 of file kspread/latex/export/xmlparser.h.

◆ getFilename() [1/2]

TQString XmlParser::getFilename ( ) const
inline

Definition at line 56 of file kspread/latex/export/xmlparser.h.

◆ getFilename() [2/2]

TQString XmlParser::getFilename ( ) const
inline

Definition at line 65 of file kword/latex/export/xmlparser.h.

◆ getNbChild() [1/2]

int XmlParser::getNbChild ( TQDomNode  balise)

Definition at line 117 of file kspread/latex/export/xmlparser.cpp.

◆ getNbChild() [2/2]

int XmlParser::getNbChild ( TQDomNode  balise,
TQString  name 
)

Definition at line 122 of file kspread/latex/export/xmlparser.cpp.

◆ getRoot() [1/2]

Document * XmlParser::getRoot ( ) const
inline

Definition at line 58 of file kspread/latex/export/xmlparser.h.

◆ getRoot() [2/2]

Document * XmlParser::getRoot ( ) const
inline

Definition at line 67 of file kword/latex/export/xmlparser.h.

◆ getStorage()

KoStore * XmlParser::getStorage ( ) const
inline

Definition at line 69 of file kword/latex/export/xmlparser.h.

◆ init() [1/2]

TQDomNode XmlParser::init ( )
inline

Definition at line 74 of file kspread/latex/export/xmlparser.h.

◆ init() [2/2]

TQDomNode XmlParser::init ( )
inline

Definition at line 83 of file kword/latex/export/xmlparser.h.

◆ isChild()

bool XmlParser::isChild ( TQDomNode  balise,
TQString  name 
)

Definition at line 82 of file kspread/latex/export/xmlparser.cpp.

◆ setFileHeader()

void XmlParser::setFileHeader ( FileHeader *  h)
inline

Definition at line 71 of file kspread/latex/export/xmlparser.h.

◆ setRoot() [1/2]

void XmlParser::setRoot ( Document *  r)
inline

Definition at line 72 of file kspread/latex/export/xmlparser.h.

◆ setRoot() [2/2]

void XmlParser::setRoot ( Document *  r)
inline

Definition at line 81 of file kword/latex/export/xmlparser.h.

Member Data Documentation

◆ _fileHeader

FileHeader * XmlParser::_fileHeader = 0
staticprotected

Definition at line 46 of file kspread/latex/export/xmlparser.h.

◆ _filename

TQString XmlParser::_filename
staticprotected

Latex output file.

Definition at line 56 of file kword/latex/export/xmlparser.h.

◆ _root

static Document * XmlParser::_root = 0
staticprotected

Definition at line 47 of file kspread/latex/export/xmlparser.h.


The documentation for this class was generated from the following files: