diff -r ebebedffba50 -r 827d334d55f1 xml-freemind.h --- a/xml-freemind.h Mon Jul 23 12:42:02 2007 +0000 +++ b/xml-freemind.h Fri Feb 01 15:28:35 2008 +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