diff -r 56fa27b2be3e -r 4b935d7e1671 xml-freemind.h --- a/xml-freemind.h Mon Jul 30 09:47:13 2007 +0000 +++ b/xml-freemind.h Mon Jul 30 09:47:14 2007 +0000 @@ -1,21 +1,14 @@ #ifndef XML_FREEMIND_H #define XML_FREEMIND_H +#include "xml-base.h" -#include -#include -#include "file.h" -#include "mapcenterobj.h" -#include "mapeditor.h" +/*! \brief Parsing Freemind maps from XML documents */ - -class parseFMHandler : public QXmlDefaultHandler +class parseFreemindHandler : public parseBaseHandler { public: - parseFMHandler(); - ~parseFMHandler(); - QString errorProtocol(); bool startDocument(); QString parseHREF(QString); bool startElement ( const QString&, const QString&, @@ -23,11 +16,6 @@ bool endElement ( const QString&, const QString&, const QString& ); bool characters ( const QString&); QString errorString(); - bool fatalError( const QXmlParseException&); - void setMapEditor (MapEditor*); - void setTmpDir (QString); - void setInputFile (QString); - void setLoadMode (const LoadMode &); bool readNodeAttr (const QXmlAttributes&); private: @@ -46,18 +34,8 @@ StateText }; - - LoadMode loadMode; - bool isVymPart; State state; State laststate; QList stateStack; - QString htmldata; - int branchDepth; - NoteObj no; - MapCenterObj* mc; - MapEditor* me; - QString tmpDir; - QString inputFile; }; #endif