xml-freemind.h
author insilmaril
Thu, 02 Apr 2009 09:46:29 +0000
changeset 750 ff3b01ce0960
parent 749 9ff332964015
child 753 25a77484ec72
permissions -rw-r--r--
More moving from BranchObj to BranchItem
     1 #ifndef XML_FREEMIND_H
     2 #define XML_FREEMIND_H
     3 
     4 #include "xml-base.h"
     5 
     6 
     7 /*! \brief Parsing Freemind maps from XML documents */
     8 
     9 class parseFreemindHandler  : public parseBaseHandler
    10 {
    11 public:
    12 	bool startDocument();
    13 	QString parseHREF(QString);
    14 	bool startElement ( const QString&, const QString&,
    15                         const QString& eName, const QXmlAttributes& atts ); 
    16 	bool   endElement ( const QString&, const QString&, const QString& ); 
    17 	bool characters   ( const QString&);
    18 	QString errorString();
    19 	bool readNodeAttr (const QXmlAttributes&);
    20 
    21 private:
    22 	QString     errorProt;
    23 	enum State 
    24 	{ 
    25 		StateInit, 
    26 		StateMap, 
    27 		StateNode, 
    28 		StateCloud,
    29 		StateEdge, 
    30 		StateIcon, 
    31 		StateFont,
    32 		StateArrowLink,
    33 		StateHook,
    34 		StateText
    35 	 };
    36 				 
    37 	State state;			 
    38 	State laststate;
    39 	QList <State> stateStack;
    40 	BranchObj *lastBranch;
    41 	BranchItem *lastBranchItem;
    42 }; 
    43 #endif