diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 00bb99ac80741fc50ef8a289719373032f2391eb (patch) | |
tree | 3a5a9bf72f942784b38bf77dd66c534662fab5f2 /ksayit/src/docbookparser.h | |
download | tdeaccessibility-00bb99ac80741fc50ef8a289719373032f2391eb.tar.gz tdeaccessibility-00bb99ac80741fc50ef8a289719373032f2391eb.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksayit/src/docbookparser.h')
-rw-r--r-- | ksayit/src/docbookparser.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/ksayit/src/docbookparser.h b/ksayit/src/docbookparser.h new file mode 100644 index 0000000..e603e93 --- /dev/null +++ b/ksayit/src/docbookparser.h @@ -0,0 +1,64 @@ +// +// C++ Interface: docbookparser +// +// Description: +// +// +// Author: Robert Vogl <voglrobe@lapislazuli>, (C) 2005 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef DOCBOOKPARSER_H +#define DOCBOOKPARSER_H + +// Qt includes +#include <qdom.h> + +// KDE includes + +// App specific includes +#include "Types.h" +#include "contextmenuhandler.h" + + +class DocbookParser +{ +public: + // Constructor + DocbookParser(ContextMenuHandler *cmHandler=0); + + // Destructor + ~DocbookParser(); + + void parseBook(const QDomElement &element, ListViewInterface *item); + + int getIdCounter(){ return m_idCounter; }; + +private: // Methods + // a selection of DocBook elements + void parseBookInfo(const QDomElement &element, ListViewInterface *item); + void parseAuthorGroup(const QDomElement &element, ListViewInterface *item); + void parseAuthor(const QDomElement &element, ListViewInterface *item); + void parseKeywordSet(const QDomElement &element, ListViewInterface *item); + void parseAbstract(const QDomElement &element, ListViewInterface *item); + void parseChapter(const QDomElement &element, ListViewInterface *item); + void parseSect1(const QDomElement &element, ListViewInterface *item); + void parseSect2(const QDomElement &element, ListViewInterface *item); + void parseSect3(const QDomElement &element, ListViewInterface *item); + void parseSect4(const QDomElement &element, ListViewInterface *item); + void parseSect5(const QDomElement &element, ListViewInterface *item); + void parsePara(const QDomElement &element, ListViewInterface *item); + + // Helpers + QString node2raw(QDomNode node) const; + +private: // Attributes + ContextMenuHandler *m_contextmenuhandler; + int m_idCounter; + +}; + +#endif + + |