summaryrefslogtreecommitdiffstats
path: root/ksayit/src/docbookgenerator.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit00bb99ac80741fc50ef8a289719373032f2391eb (patch)
tree3a5a9bf72f942784b38bf77dd66c534662fab5f2 /ksayit/src/docbookgenerator.h
downloadtdeaccessibility-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/docbookgenerator.h')
-rw-r--r--ksayit/src/docbookgenerator.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/ksayit/src/docbookgenerator.h b/ksayit/src/docbookgenerator.h
new file mode 100644
index 0000000..80f526b
--- /dev/null
+++ b/ksayit/src/docbookgenerator.h
@@ -0,0 +1,71 @@
+//
+// C++ Interface: docbookgenerator
+//
+// Description:
+//
+//
+// Author: Robert Vogl <voglrobe@lapislazuli>, (C) 2005
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#ifndef DOCBOOKGENERATOR_H
+#define DOCBOOKGENERATOR_H
+
+// Qt includes
+#include <qtextstream.h>
+
+// KDE includes
+
+// App specific includes
+#include "Types.h"
+
+class DocbookGenerator
+{
+public:
+ // Constructor
+ DocbookGenerator();
+
+ // Destructor
+ ~DocbookGenerator();
+
+ /**
+ * Walks throug the entire treeview starting with given item and returns
+ * returns a DocBook representation of its content.
+ * \returns doc The content of the TreeView in DocBook format
+ * \param item A pointer to the root item of the tree. Must be of type
+ * \p RobDocument.
+ */
+ void writeBook(QTextStream &doc, ListViewInterface *item);
+
+
+private:
+ void writeBookInfo(QTextStream &doc, ListViewInterface *item);
+ void writeTitleOfBook(QTextStream &doc, ListViewInterface *item);
+ void writeChapter(QTextStream &doc, ListViewInterface *item);
+ void writeKeywordSet(QTextStream &doc, ListViewInterface *item);
+ void writeKeyword(QTextStream &doc, ListViewInterface *item);
+ void writeAbstract(QTextStream &doc, ListViewInterface *item);
+ void writePara(QTextStream &doc, ListViewInterface *item);
+ void writeAuthorGroup(QTextStream &doc, ListViewInterface *item);
+ void writeAuthor(QTextStream &doc, ListViewInterface *item);
+ void writeDate(QTextStream &doc, ListViewInterface *item);
+ void writeReleaseInfo(QTextStream &doc, ListViewInterface *item);
+ void writeSect1(QTextStream &doc, ListViewInterface *item);
+ void writeSect2(QTextStream &doc, ListViewInterface *item);
+ void writeSect3(QTextStream &doc, ListViewInterface *item);
+ void writeSect4(QTextStream &doc, ListViewInterface *item);
+ void writeSect5(QTextStream &doc, ListViewInterface *item);
+
+
+
+};
+
+
+
+
+
+
+
+#endif
+