1.1 --- a/xml-freemind.h Mon Jul 23 12:42:02 2007 +0000
1.2 +++ b/xml-freemind.h Wed Jan 16 15:45:19 2008 +0000
1.3 @@ -1,21 +1,14 @@
1.4 #ifndef XML_FREEMIND_H
1.5 #define XML_FREEMIND_H
1.6
1.7 +#include "xml-base.h"
1.8
1.9 -#include <QString>
1.10 -#include <QXmlAttributes>
1.11
1.12 -#include "file.h"
1.13 -#include "mapcenterobj.h"
1.14 -#include "mapeditor.h"
1.15 +/*! \brief Parsing Freemind maps from XML documents */
1.16
1.17 -
1.18 -class parseFMHandler : public QXmlDefaultHandler
1.19 +class parseFreemindHandler : public parseBaseHandler
1.20 {
1.21 public:
1.22 - parseFMHandler();
1.23 - ~parseFMHandler();
1.24 - QString errorProtocol();
1.25 bool startDocument();
1.26 QString parseHREF(QString);
1.27 bool startElement ( const QString&, const QString&,
1.28 @@ -23,11 +16,6 @@
1.29 bool endElement ( const QString&, const QString&, const QString& );
1.30 bool characters ( const QString&);
1.31 QString errorString();
1.32 - bool fatalError( const QXmlParseException&);
1.33 - void setMapEditor (MapEditor*);
1.34 - void setTmpDir (QString);
1.35 - void setInputFile (QString);
1.36 - void setLoadMode (const LoadMode &);
1.37 bool readNodeAttr (const QXmlAttributes&);
1.38
1.39 private:
1.40 @@ -46,18 +34,8 @@
1.41 StateText
1.42 };
1.43
1.44 -
1.45 - LoadMode loadMode;
1.46 - bool isVymPart;
1.47 State state;
1.48 State laststate;
1.49 QList <State> stateStack;
1.50 - QString htmldata;
1.51 - int branchDepth;
1.52 - NoteObj no;
1.53 - MapCenterObj* mc;
1.54 - MapEditor* me;
1.55 - QString tmpDir;
1.56 - QString inputFile;
1.57 };
1.58 #endif