xml.h
changeset 578 610cc6d70683
parent 577 6f090a2b10e3
child 579 1c487b3dd40f
     1.1 --- a/xml.h	Mon Jul 30 09:47:15 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,74 +0,0 @@
     1.4 -#ifndef XML_H
     1.5 -#define XML_H
     1.6 -
     1.7 -
     1.8 -#include <QString>
     1.9 -#include <QXmlAttributes>
    1.10 -
    1.11 -#include "file.h"
    1.12 -#include "mapcenterobj.h"
    1.13 -#include "mapeditor.h"
    1.14 -
    1.15 -
    1.16 -class parseVYMHandler  : public QXmlDefaultHandler
    1.17 -{
    1.18 -public:
    1.19 -	parseVYMHandler();
    1.20 -	~parseVYMHandler();
    1.21 -	QString errorProtocol();
    1.22 -	bool startDocument();
    1.23 -	QString parseHREF(QString);
    1.24 -	bool startElement ( const QString&, const QString&,
    1.25 -                        const QString& eName, const QXmlAttributes& atts ); 
    1.26 -	bool   endElement ( const QString&, const QString&, const QString& ); 
    1.27 -	bool characters   ( const QString&);
    1.28 -	QString errorString();
    1.29 -	bool fatalError( const QXmlParseException&);
    1.30 -	void setMapEditor (MapEditor*);
    1.31 -	void setTmpDir (QString);
    1.32 -	void setInputFile (QString);
    1.33 -	void setLoadMode (const LoadMode &);
    1.34 -	bool readBranchAttr (const QXmlAttributes&);
    1.35 -	bool readFrameAttr (const QXmlAttributes&);
    1.36 -	bool readOOAttr (const QXmlAttributes&);
    1.37 -	bool readNoteAttr (const QXmlAttributes&);
    1.38 -	bool readFloatImageAttr (const QXmlAttributes&);
    1.39 -	bool readXLinkAttr (const QXmlAttributes&);
    1.40 -	bool readHtmlAttr (const QXmlAttributes&);
    1.41 -	bool readSettingAttr (const QXmlAttributes&);
    1.42 -
    1.43 -private:
    1.44 -	QString     errorProt;
    1.45 -	enum State 
    1.46 -	{ 
    1.47 -		StateInit, 
    1.48 -		StateMap, 
    1.49 -		StateMapSelect, 
    1.50 -		StateMapSetting,
    1.51 -		StateMapCenter, 
    1.52 -		StateBranch, 
    1.53 -		StateBranchXLink,			//
    1.54 -		StateHtmlNote, 
    1.55 -		StateHtml, 
    1.56 -		StateFrame,
    1.57 -		StateStandardFlag,
    1.58 -		StateNote,
    1.59 -		StateFloatImage,
    1.60 -		StateHeading
    1.61 -	 };
    1.62 -				 
    1.63 -
    1.64 -	LoadMode loadMode;
    1.65 -	bool isVymPart;
    1.66 -	State state;			 
    1.67 -	State laststate;
    1.68 -	QList <State> stateStack;
    1.69 -	QString htmldata;
    1.70 -	int branchDepth; 
    1.71 -	NoteObj no;
    1.72 -	MapCenterObj* mc;
    1.73 -	MapEditor* me; 
    1.74 -	QString tmpDir; 
    1.75 -	QString inputFile;
    1.76 -}; 
    1.77 -#endif