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