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@749
|
40 |
BranchItem *lastBranchItem;
|
insilmaril@566
|
41 |
};
|
insilmaril@566
|
42 |
#endif
|