author | insilmaril |
Mon Jan 07 14:52:49 2008 +0000 (2008-01-07) | |
changeset 636 | f83abc1f75b4 |
parent 566 | ebebedffba50 |
child 749 | 9ff332964015 |
permissions | -rw-r--r-- |
insilmaril@566 | 1 |
#ifndef XML_FREEMIND_H |
insilmaril@566 | 2 |
#define XML_FREEMIND_H |
insilmaril@566 | 3 |
|
insilmaril@575 | 4 |
#include "xml-base.h" |
insilmaril@566 | 5 |
|
insilmaril@566 | 6 |
|
insilmaril@575 | 7 |
/*! \brief Parsing Freemind maps from XML documents */ |
insilmaril@566 | 8 |
|
insilmaril@575 | 9 |
class parseFreemindHandler : public parseBaseHandler |
insilmaril@566 | 10 |
{ |
insilmaril@566 | 11 |
public: |
insilmaril@566 | 12 |
bool startDocument(); |
insilmaril@566 | 13 |
QString parseHREF(QString); |
insilmaril@566 | 14 |
bool startElement ( const QString&, const QString&, |
insilmaril@566 | 15 |
const QString& eName, const QXmlAttributes& atts ); |
insilmaril@566 | 16 |
bool endElement ( const QString&, const QString&, const QString& ); |
insilmaril@566 | 17 |
bool characters ( const QString&); |
insilmaril@566 | 18 |
QString errorString(); |
insilmaril@566 | 19 |
bool readNodeAttr (const QXmlAttributes&); |
insilmaril@566 | 20 |
|
insilmaril@566 | 21 |
private: |
insilmaril@566 | 22 |
QString errorProt; |
insilmaril@566 | 23 |
enum State |
insilmaril@566 | 24 |
{ |
insilmaril@566 | 25 |
StateInit, |
insilmaril@566 | 26 |
StateMap, |
insilmaril@566 | 27 |
StateNode, |
insilmaril@566 | 28 |
StateCloud, |
insilmaril@566 | 29 |
StateEdge, |
insilmaril@566 | 30 |
StateIcon, |
insilmaril@566 | 31 |
StateFont, |
insilmaril@566 | 32 |
StateArrowLink, |
insilmaril@566 | 33 |
StateHook, |
insilmaril@566 | 34 |
StateText |
insilmaril@566 | 35 |
}; |
insilmaril@566 | 36 |
|
insilmaril@566 | 37 |
State state; |
insilmaril@566 | 38 |
State laststate; |
insilmaril@566 | 39 |
QList <State> stateStack; |
insilmaril@566 | 40 |
}; |
insilmaril@566 | 41 |
#endif |