10 #ifndef NCLDOCUMENTPARSER_H
11 #define NCLDOCUMENTPARSER_H
13 #include "NCLLanguageProfile_global.h"
17 #include <QXmlDefaultHandler>
20 #include <QWaitCondition>
22 #include <core/extensions/IDocumentParser.h>
23 using namespace composer::extension;
36 QStack<Entity*> elementStack;
42 bool parseContent(
const QString &str);
43 QString getParserName();
48 bool startElement(
const QString &namespaceURI,
49 const QString &localName,
51 const QXmlAttributes &attributes);
52 bool endElement(
const QString &namespaceURI,
53 const QString &localName,
54 const QString &qName);
56 bool characters(
const QString &str);
57 bool fatalError(
const QXmlParseException &exception);
65 void onEntityAddError(QString error);
66 void onEntityAdded(QString ID, Entity *entity);
71 #endif // NCLDOCUMENTPARSER_H