diff -r 6f090a2b10e3 -r 610cc6d70683 xml.h --- a/xml.h Mon Jul 30 09:47:15 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -#ifndef XML_H -#define XML_H - - -#include -#include - -#include "file.h" -#include "mapcenterobj.h" -#include "mapeditor.h" - - -class parseVYMHandler : public QXmlDefaultHandler -{ -public: - parseVYMHandler(); - ~parseVYMHandler(); - QString errorProtocol(); - bool startDocument(); - QString parseHREF(QString); - bool startElement ( const QString&, const QString&, - const QString& eName, const QXmlAttributes& atts ); - 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 readBranchAttr (const QXmlAttributes&); - bool readFrameAttr (const QXmlAttributes&); - bool readOOAttr (const QXmlAttributes&); - bool readNoteAttr (const QXmlAttributes&); - bool readFloatImageAttr (const QXmlAttributes&); - bool readXLinkAttr (const QXmlAttributes&); - bool readHtmlAttr (const QXmlAttributes&); - bool readSettingAttr (const QXmlAttributes&); - -private: - QString errorProt; - enum State - { - StateInit, - StateMap, - StateMapSelect, - StateMapSetting, - StateMapCenter, - StateBranch, - StateBranchXLink, // - StateHtmlNote, - StateHtml, - StateFrame, - StateStandardFlag, - StateNote, - StateFloatImage, - StateHeading - }; - - - 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