diff -r ebebedffba50 -r 316e9237794c xml-freemind.cpp --- a/xml-freemind.cpp Mon Jul 23 12:42:02 2007 +0000 +++ b/xml-freemind.cpp Tue Oct 23 13:05:22 2007 +0000 @@ -19,14 +19,7 @@ extern QString flagsPath; -parseFMHandler::parseFMHandler() {} - -parseFMHandler::~parseFMHandler() {} - -QString parseFMHandler::errorProtocol() { return errorProt; } - - -bool parseFMHandler::startDocument() +bool parseFreemindHandler::startDocument() { errorProt = ""; state = StateInit; @@ -34,13 +27,12 @@ stateStack.clear(); stateStack.append(StateInit); branchDepth=0; - htmldata=""; isVymPart=false; return true; } -QString parseFMHandler::parseHREF(QString href) +QString parseFreemindHandler::parseHREF(QString href) { QString type=href.section(":",0,0); QString path=href.section(":",1,1); @@ -50,7 +42,7 @@ return tmpDir + path; } -bool parseFMHandler::startElement ( const QString&, const QString&, +bool parseFreemindHandler::startElement ( const QString&, const QString&, const QString& eName, const QXmlAttributes& atts ) { QColor col; @@ -148,7 +140,7 @@ else if (f=="button_cancel") v="cross-red"; else if (f.contains("full-")) - v=f.replace("full-","freemind-priority-"); //FIXME + v=f.replace("full-","freemind-priority-"); else if (f=="back") v="freemind-back"; else if (f=="forward") @@ -208,7 +200,7 @@ return true; } -bool parseFMHandler::endElement ( const QString&, const QString&, const QString &eName) +bool parseFreemindHandler::endElement ( const QString&, const QString&, const QString &eName) { /* Testing cout << "endElement "); - errorProt+=s; - } - return QXmlDefaultHandler::fatalError( exception ); -} - -void parseFMHandler::setMapEditor (MapEditor* e) -{ - me=e; - mc=me->getMapCenter(); -} - -void parseFMHandler::setTmpDir (QString tp) -{ - tmpDir=tp; -} - -void parseFMHandler::setInputFile (QString f) -{ - inputFile=f; -} - -void parseFMHandler::setLoadMode (const LoadMode &lm) -{ - loadMode=lm; -} - -bool parseFMHandler::readNodeAttr (const QXmlAttributes& a) +bool parseFreemindHandler::readNodeAttr (const QXmlAttributes& a) { lastOO=lastBranch;