summaryrefslogtreecommitdiffstats
path: root/ksayit/src/docbookgenerator.h
blob: 109d0c50b36cdcec00fc2233241baba75e6dec4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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

// TQt includes
#include <tqtextstream.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(TQTextStream &doc, ListViewInterface *item);


private:
    void writeBookInfo(TQTextStream &doc, ListViewInterface *item);
    void writeTitleOfBook(TQTextStream &doc, ListViewInterface *item);
    void writeChapter(TQTextStream &doc, ListViewInterface *item);
    void writeKeywordSet(TQTextStream &doc, ListViewInterface *item);
    void writeKeyword(TQTextStream &doc, ListViewInterface *item);
    void writeAbstract(TQTextStream &doc, ListViewInterface *item);
    void writePara(TQTextStream &doc, ListViewInterface *item);
    void writeAuthorGroup(TQTextStream &doc, ListViewInterface *item);
    void writeAuthor(TQTextStream &doc, ListViewInterface *item);
    void writeDate(TQTextStream &doc, ListViewInterface *item);
    void writeReleaseInfo(TQTextStream &doc, ListViewInterface *item);
    void writeSect1(TQTextStream &doc, ListViewInterface *item);
    void writeSect2(TQTextStream &doc, ListViewInterface *item);
    void writeSect3(TQTextStream &doc, ListViewInterface *item);
    void writeSect4(TQTextStream &doc, ListViewInterface *item);
    void writeSect5(TQTextStream &doc, ListViewInterface *item);



};







#endif