9 #include "mapcenterobj.h"
10 #include "mapeditor.h"
13 class mapBuilderHandler : public QXmlDefaultHandler
18 QString errorProtocol();
20 QString parseHREF(QString);
21 bool startElement ( const QString&, const QString&,
22 const QString& eName, const QXmlAttributes& atts );
23 bool endElement ( const QString&, const QString&, const QString& );
24 bool characters ( const QString&);
25 QString errorString();
26 bool fatalError( const QXmlParseException&);
27 void setMapEditor (MapEditor*);
28 void setTmpDir (QString);
29 void setLoadMode (const LoadMode &);
30 bool readBranchAttr (const QXmlAttributes&);
31 bool readLinkAttr (const QXmlAttributes&);
32 bool readNoteAttr (const QXmlAttributes&);
33 bool readFloatImageAttr (const QXmlAttributes&);
34 bool readXLinkAttr (const QXmlAttributes&);
35 bool readHtmlAttr (const QXmlAttributes&);
36 bool readSettingAttr (const QXmlAttributes&);
42 StateInit, StateMap, StateMapSelect,
45 StateMapCenter, StateMapCenterStandardFlag,
46 StateMapCenterHeading, StateMapCenterNote,
47 StateMapCenterFloatImage,
49 StateBranch, StateBranchStandardFlag,
50 StateBranchHeading, StateBranchNote,
51 StateBranchFloatImage, StateBranchXLink,
52 StateHtmlNote, StateHtml
64 MapEditor* me; QString tmpDir;