Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
src
docbookvisitor.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
*
4
*
5
* Copyright (C) 1997-2015 by Dimitri van Heesch.
6
*
7
* Permission to use, copy, modify, and distribute this software and its
8
* documentation under the terms of the GNU General Public License is hereby
9
* granted. No representations are made about the suitability of this software
10
* for any purpose. It is provided "as is" without express or implied warranty.
11
* See the GNU General Public License for more details.
12
*
13
* Documents produced by Doxygen are derivative works derived from the
14
* input used in their production; they are not affected by this license.
15
*
16
*/
17
18
#ifndef _DOCBOOKDOCVISITOR_H
19
#define _DOCBOOKDOCVISITOR_H
20
21
#include "
docvisitor.h
"
22
#include <
qstack.h
>
23
#include <
qcstring.h
>
24
25
class
FTextStream
;
26
class
CodeOutputInterface
;
27
class
QCString
;
28
29
/*! @brief Concrete visitor implementation for Docbook output. */
30
class
DocbookDocVisitor
:
public
DocVisitor
31
{
32
public
:
33
DocbookDocVisitor
(
FTextStream
&
t
,
CodeOutputInterface
&ci);
34
//--------------------------------------
35
// visitor functions for leaf nodes
36
//--------------------------------------
37
void
visit
(
DocWord
*);
38
void
visit
(
DocLinkedWord
*);
39
void
visit
(
DocWhiteSpace
*);
40
void
visit
(
DocSymbol
*);
41
void
visit
(
DocURL
*);
42
void
visit
(
DocLineBreak
*);
43
void
visit
(
DocHorRuler
*);
44
void
visit
(
DocStyleChange
*);
45
void
visit
(
DocVerbatim
*);
46
void
visit
(
DocAnchor
*);
47
void
visit
(
DocInclude
*);
48
void
visit
(
DocIncOperator
*);
49
void
visit
(
DocFormula
*);
50
void
visit
(
DocIndexEntry
*);
51
void
visit
(
DocSimpleSectSep
*);
52
void
visit
(
DocCite
*);
53
//--------------------------------------
54
// visitor functions for compound nodes
55
//--------------------------------------
56
void
visitPre
(
DocAutoList
*);
57
void
visitPost
(
DocAutoList
*);
58
void
visitPre
(
DocAutoListItem
*);
59
void
visitPost
(
DocAutoListItem
*);
60
void
visitPre
(
DocPara
*) ;
61
void
visitPost
(
DocPara
*);
62
void
visitPre
(
DocRoot
*);
63
void
visitPost
(
DocRoot
*);
64
void
visitPre
(
DocSimpleSect
*);
65
void
visitPost
(
DocSimpleSect
*);
66
void
visitPre
(
DocTitle
*);
67
void
visitPost
(
DocTitle
*);
68
void
visitPre
(
DocSimpleList
*);
69
void
visitPost
(
DocSimpleList
*);
70
void
visitPre
(
DocSimpleListItem
*);
71
void
visitPost
(
DocSimpleListItem
*);
72
void
visitPre
(
DocSection
*);
73
void
visitPost
(
DocSection
*);
74
void
visitPre
(
DocHtmlList
*);
75
void
visitPost
(
DocHtmlList
*) ;
76
void
visitPre
(
DocHtmlListItem
*);
77
void
visitPost
(
DocHtmlListItem
*);
78
//void visitPre(DocHtmlPre *);
79
//void visitPost(DocHtmlPre *);
80
void
visitPre
(
DocHtmlDescList
*);
81
void
visitPost
(
DocHtmlDescList
*);
82
void
visitPre
(
DocHtmlDescTitle
*);
83
void
visitPost
(
DocHtmlDescTitle
*);
84
void
visitPre
(
DocHtmlDescData
*);
85
void
visitPost
(
DocHtmlDescData
*);
86
void
visitPre
(
DocHtmlTable
*);
87
void
visitPost
(
DocHtmlTable
*);
88
void
visitPre
(
DocHtmlRow
*);
89
void
visitPost
(
DocHtmlRow
*) ;
90
void
visitPre
(
DocHtmlCell
*);
91
void
visitPost
(
DocHtmlCell
*);
92
void
visitPre
(
DocHtmlCaption
*);
93
void
visitPost
(
DocHtmlCaption
*);
94
void
visitPre
(
DocInternal
*);
95
void
visitPost
(
DocInternal
*);
96
void
visitPre
(
DocHRef
*);
97
void
visitPost
(
DocHRef
*);
98
void
visitPre
(
DocHtmlHeader
*);
99
void
visitPost
(
DocHtmlHeader
*);
100
void
visitPre
(
DocImage
*);
101
void
visitPost
(
DocImage
*);
102
void
visitPre
(
DocDotFile
*);
103
void
visitPost
(
DocDotFile
*);
104
void
visitPre
(
DocMscFile
*);
105
void
visitPost
(
DocMscFile
*);
106
void
visitPre
(
DocDiaFile
*);
107
void
visitPost
(
DocDiaFile
*);
108
void
visitPre
(
DocLink
*);
109
void
visitPost
(
DocLink
*);
110
void
visitPre
(
DocRef
*);
111
void
visitPost
(
DocRef
*);
112
void
visitPre
(
DocSecRefItem
*);
113
void
visitPost
(
DocSecRefItem
*);
114
void
visitPre
(
DocSecRefList
*);
115
void
visitPost
(
DocSecRefList
*);
116
//void visitPre(DocLanguage *);
117
//void visitPost(DocLanguage *);
118
void
visitPre
(
DocParamSect
*);
119
void
visitPost
(
DocParamSect
*);
120
void
visitPre
(
DocParamList
*);
121
void
visitPost
(
DocParamList
*);
122
void
visitPre
(
DocXRefItem
*);
123
void
visitPost
(
DocXRefItem
*);
124
void
visitPre
(
DocInternalRef
*);
125
void
visitPost
(
DocInternalRef
*);
126
void
visitPre
(
DocCopy
*);
127
void
visitPost
(
DocCopy
*);
128
void
visitPre
(
DocText
*);
129
void
visitPost
(
DocText
*);
130
void
visitPre
(
DocHtmlBlockQuote
*);
131
void
visitPost
(
DocHtmlBlockQuote
*);
132
void
visitPre
(
DocVhdlFlow
*);
133
void
visitPost
(
DocVhdlFlow
*);
134
void
visitPre
(
DocParBlock
*);
135
void
visitPost
(
DocParBlock
*);
136
137
private
:
138
//--------------------------------------
139
// helper functions
140
//--------------------------------------
141
void
filter
(
const
char
*
str
);
142
void
startLink
(
const
QCString
&
file
,
143
const
QCString
&anchor);
144
void
endLink
();
145
void
pushEnabled
();
146
void
popEnabled
();
147
void
startMscFile
(
const
QCString
&
fileName
,
const
QCString
&width,
148
const
QCString
&height,
bool
hasCaption);
149
void
endMscFile
(
bool
hasCaption);
150
void
writeMscFile
(
const
QCString
&fileName,
DocVerbatim
*
s
);
151
void
startDiaFile
(
const
QCString
&fileName,
const
QCString
&width,
152
const
QCString
&height,
bool
hasCaption);
153
void
endDiaFile
(
bool
hasCaption);
154
void
writeDiaFile
(
const
QCString
&fileName,
DocVerbatim
*s);
155
void
startDotFile
(
const
QCString
&fileName,
const
QCString
&width,
156
const
QCString
&height,
bool
hasCaption);
157
void
endDotFile
(
bool
hasCaption);
158
void
writeDotFile
(
const
QCString
&fileName,
DocVerbatim
*s);
159
void
writePlantUMLFile
(
const
QCString
&fileName,
DocVerbatim
*s);
160
//--------------------------------------
161
// state variables
162
//--------------------------------------
163
FTextStream
&
m_t
;
164
CodeOutputInterface
&
m_ci
;
165
bool
m_insidePre
;
166
bool
m_hide
;
167
QStack<bool>
m_enabled
;
168
QCString
m_langExt
;
169
};
170
171
#endif
DocHtmlBlockQuote
Definition:
docparser.h:1374
DocURL
Definition:
docparser.h:234
DocWord
Definition:
docparser.h:195
DocWhiteSpace
Definition:
docparser.h:428
DocHRef
Definition:
docparser.h:869
DocText
Definition:
docparser.h:1389
DocbookDocVisitor::endDiaFile
void endDiaFile(bool hasCaption)
Definition:
docbookvisitor.cpp:1313
DocbookDocVisitor::visit
void visit(DocWord *)
Definition:
docbookvisitor.cpp:95
DocbookDocVisitor::startLink
void startLink(const QCString &file, const QCString &anchor)
Definition:
docbookvisitor.cpp:1190
DocHorRuler
Definition:
docparser.h:261
DocbookDocVisitor::startDiaFile
void startDiaFile(const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
Definition:
docbookvisitor.cpp:1290
DocTitle
Definition:
docparser.h:651
DocbookDocVisitor::endLink
void endLink()
Definition:
docbookvisitor.cpp:1197
DocRef
Definition:
docparser.h:821
DocbookDocVisitor::m_langExt
QCString m_langExt
Definition:
docbookvisitor.h:168
DocStyleChange
Definition:
docparser.h:309
DocAutoList
Definition:
docparser.h:616
DocbookDocVisitor::DocbookDocVisitor
DocbookDocVisitor(FTextStream &t, CodeOutputInterface &ci)
Definition:
docbookvisitor.cpp:86
DocCite
Definition:
docparser.h:287
QStack< bool >
DocHtmlCaption
Definition:
docparser.h:1288
DocRoot
Definition:
docparser.h:1400
DocHtmlCell
Definition:
docparser.h:1251
DocIndexEntry
Definition:
docparser.h:577
DocbookDocVisitor::writeMscFile
void writeMscFile(const QCString &fileName, DocVerbatim *s)
Definition:
docbookvisitor.cpp:1215
docvisitor.h
DocbookDocVisitor::writeDotFile
void writeDotFile(const QCString &fileName, DocVerbatim *s)
Definition:
docbookvisitor.cpp:1320
DocSimpleSect
Definition:
docparser.h:1046
FTextStream
Simplified and optimized version of QTextStream.
Definition:
ftextstream.h:11
DocPara
Definition:
docparser.h:1113
qcstring.h
DocbookDocVisitor::startDotFile
void startDotFile(const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
Definition:
docbookvisitor.cpp:1335
DocSymbol
Definition:
docparser.h:344
DocVisitor
Abstract visitor that participates in the visitor pattern.
Definition:
docvisitor.h:90
DocLink
Definition:
docparser.h:800
DocbookDocVisitor::filter
void filter(const char *str)
Definition:
docbookvisitor.cpp:1185
DocVhdlFlow
Definition:
docparser.h:788
DocHtmlDescList
Definition:
docparser.h:921
DocHtmlListItem
Definition:
docparser.h:1219
DocMscFile
Definition:
docparser.h:740
DocVerbatim
Definition:
docparser.h:441
dumpTree.fileName
fileName
Definition:
dumpTree.py:9
DocbookDocVisitor::m_enabled
QStack< bool > m_enabled
Definition:
docbookvisitor.h:167
DocbookDocVisitor::popEnabled
void popEnabled()
Definition:
docbookvisitor.cpp:1207
DocHtmlDescTitle
Definition:
docparser.h:906
DocHtmlHeader
Definition:
docparser.h:889
DocbookDocVisitor::endDotFile
void endDotFile(bool hasCaption)
Definition:
docbookvisitor.cpp:1359
DocbookDocVisitor::m_ci
CodeOutputInterface & m_ci
Definition:
docbookvisitor.h:164
DocHtmlTable
Definition:
docparser.h:1345
reco_momentum_tuples.t
t
Definition:
reco_momentum_tuples.py:25
cache_state.file
file
Definition:
cache_state.py:421
DocbookDocVisitor::m_t
FTextStream & m_t
Definition:
docbookvisitor.h:163
DocDiaFile
Definition:
docparser.h:764
DocHtmlRow
Definition:
docparser.h:1308
DocLineBreak
Definition:
docparser.h:250
DocSecRefList
Definition:
docparser.h:978
DocSecRefItem
Definition:
docparser.h:959
DocbookDocVisitor
Concrete visitor implementation for Docbook output.
Definition:
docbookvisitor.h:30
DocFormula
Definition:
docparser.h:557
DocParamSect
Definition:
docparser.h:1084
DocbookDocVisitor::m_hide
bool m_hide
Definition:
docbookvisitor.h:166
DocImage
Definition:
docparser.h:687
DocParamList
Definition:
docparser.h:1157
qstack.h
DocSection
Definition:
docparser.h:936
DocbookDocVisitor::pushEnabled
void pushEnabled()
Definition:
docbookvisitor.cpp:1202
DocHtmlList
Definition:
docparser.h:1027
DocInternalRef
Definition:
docparser.h:851
DocInclude
Definition:
docparser.h:483
DocbookDocVisitor::writePlantUMLFile
void writePlantUMLFile(const QCString &fileName, DocVerbatim *s)
Definition:
docbookvisitor.cpp:1230
DocParBlock
Definition:
docparser.h:1002
DocbookDocVisitor::visitPost
void visitPost(DocAutoList *)
Definition:
docbookvisitor.cpp:447
DocbookDocVisitor::endMscFile
void endMscFile(bool hasCaption)
Definition:
docbookvisitor.cpp:1268
DocAnchor
Definition:
docparser.h:272
DocbookDocVisitor::startMscFile
void startMscFile(const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
Definition:
docbookvisitor.cpp:1245
DocSimpleSectSep
Definition:
docparser.h:1073
DocSimpleListItem
Definition:
docparser.h:1199
DocbookDocVisitor::visitPre
void visitPre(DocAutoList *)
Definition:
docbookvisitor.cpp:434
DocbookDocVisitor::m_insidePre
bool m_insidePre
Definition:
docbookvisitor.h:165
DocbookDocVisitor::writeDiaFile
void writeDiaFile(const QCString &fileName, DocVerbatim *s)
Definition:
docbookvisitor.cpp:1275
DocHtmlDescData
Definition:
docparser.h:1237
QCString
Definition:
qcstring.h:131
CodeOutputInterface
Definition:
outputgen.h:59
DocLinkedWord
Definition:
docparser.h:209
DocSimpleList
Definition:
docparser.h:1015
DocDotFile
Definition:
docparser.h:716
DocAutoListItem
Definition:
docparser.h:634
s
static QCString * s
Definition:
config.cpp:1042
str
static QCString str
Definition:
fortrancode.cpp:27098
DocInternal
Definition:
docparser.h:990
DocXRefItem
Definition:
docparser.h:664
DocIncOperator
Definition:
docparser.h:522
DocCopy
Definition:
docparser.h:598
Generated by
1.8.11