Doxygen
Loading...
Searching...
No Matches
mandocvisitor.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 MANDOCVISITOR_H
20#define MANDOCVISITOR_H
21
22#include <iostream>
23#include <array>
24
25#include "qcstring.h"
26#include "docvisitor.h"
27#include "docnode.h"
28
29class OutputCodeList;
30class TextStream;
31
32/*! @brief Concrete visitor implementation for LaTeX output. */
34{
35 public:
36 ManDocVisitor(TextStream &t,OutputCodeList &ci,const QCString &langExt);
37
38 //--------------------------------------
39 // visitor functions for leaf nodes
40 //--------------------------------------
41
42 void operator()(const DocWord &);
43 void operator()(const DocLinkedWord &);
44 void operator()(const DocWhiteSpace &);
45 void operator()(const DocSymbol &);
46 void operator()(const DocEmoji &);
47 void operator()(const DocURL &);
48 void operator()(const DocLineBreak &);
49 void operator()(const DocHorRuler &);
50 void operator()(const DocStyleChange &);
51 void operator()(const DocVerbatim &);
52 void operator()(const DocAnchor &);
53 void operator()(const DocInclude &);
54 void operator()(const DocIncOperator &);
55 void operator()(const DocFormula &);
56 void operator()(const DocIndexEntry &);
57 void operator()(const DocSimpleSectSep &);
58 void operator()(const DocCite &);
59 void operator()(const DocSeparator &);
60
61 //--------------------------------------
62 // visitor functions for compound nodes
63 //--------------------------------------
64
65 void operator()(const DocAutoList &);
66 void operator()(const DocAutoListItem &);
67 void operator()(const DocPara &);
68 void operator()(const DocRoot &);
69 void operator()(const DocSimpleSect &);
70 void operator()(const DocTitle &);
71 void operator()(const DocSimpleList &);
72 void operator()(const DocSimpleListItem &);
73 void operator()(const DocSection &s);
74 void operator()(const DocHtmlList &s);
75 void operator()(const DocHtmlListItem &);
76 void operator()(const DocHtmlDescList &);
77 void operator()(const DocHtmlDescTitle &);
78 void operator()(const DocHtmlDescData &);
79 void operator()(const DocHtmlTable &t);
80 void operator()(const DocHtmlCaption &);
81 void operator()(const DocHtmlRow &);
82 void operator()(const DocHtmlCell &);
83 void operator()(const DocInternal &);
84 void operator()(const DocHRef &);
85 void operator()(const DocHtmlSummary &);
86 void operator()(const DocHtmlDetails &);
87 void operator()(const DocHtmlHeader &);
88 void operator()(const DocImage &);
89 void operator()(const DocDotFile &);
90 void operator()(const DocMscFile &);
91 void operator()(const DocDiaFile &);
92 void operator()(const DocPlantUmlFile &);
93 void operator()(const DocLink &lnk);
94 void operator()(const DocRef &ref);
95 void operator()(const DocSecRefItem &);
96 void operator()(const DocSecRefList &);
97 void operator()(const DocParamSect &);
98 void operator()(const DocParamList &);
99 void operator()(const DocXRefItem &);
100 void operator()(const DocInternalRef &);
101 void operator()(const DocText &);
102 void operator()(const DocHtmlBlockQuote &);
103 void operator()(const DocVhdlFlow &);
104 void operator()(const DocParBlock &);
105
106 private:
107 template<class T>
108 void visitChildren(const T &t)
109 {
110 for (const auto &child : t.children())
111 {
112 std::visit(*this, child);
113 }
114 }
115
116 //--------------------------------------
117 // helper functions
118 //--------------------------------------
119
120 void filter(const QCString &str);
121
122 //--------------------------------------
123 // state variables
124 //--------------------------------------
125
129 bool m_hide;
133
135 {
137 char type;
138 };
139 static const int maxIndentLevels = 13;
140
141 std::array<ManListItemInfo,maxIndentLevels> m_listItemInfo;
142};
143
144#endif
Node representing an anchor.
Definition docnode.h:228
Node representing an auto List.
Definition docnode.h:566
Node representing an item of a auto list.
Definition docnode.h:590
Node representing a citation of some bibliographic reference.
Definition docnode.h:244
Node representing a dia file.
Definition docnode.h:725
Node representing a dot file.
Definition docnode.h:707
Node representing an emoji.
Definition docnode.h:336
Node representing an item of a cross-referenced list.
Definition docnode.h:524
Node representing a Hypertext reference.
Definition docnode.h:817
Node representing a horizontal ruler.
Definition docnode.h:215
Node representing an HTML blockquote.
Definition docnode.h:1285
Node representing a HTML table caption.
Definition docnode.h:1222
Node representing a HTML table cell.
Definition docnode.h:1187
Node representing a HTML description data.
Definition docnode.h:1175
Node representing a Html description list.
Definition docnode.h:895
Node representing a Html description item.
Definition docnode.h:882
Node Html details.
Definition docnode.h:851
Node Html heading.
Definition docnode.h:867
Node representing a Html list.
Definition docnode.h:994
Node representing a HTML list item.
Definition docnode.h:1159
Node representing a HTML table row.
Definition docnode.h:1240
Node Html summary.
Definition docnode.h:838
Node representing a HTML table.
Definition docnode.h:1263
Node representing an image.
Definition docnode.h:636
Node representing a include/dontinclude operator block.
Definition docnode.h:472
Node representing an included text block from file.
Definition docnode.h:430
Node representing an entry in the index.
Definition docnode.h:547
Node representing an internal section of documentation.
Definition docnode.h:963
Node representing an internal reference to some item.
Definition docnode.h:801
Node representing a line break.
Definition docnode.h:201
Node representing a word that can be linked to something.
Definition docnode.h:164
Node representing a msc file.
Definition docnode.h:716
Node representing an block of paragraphs.
Definition docnode.h:973
Node representing a paragraph in the documentation tree.
Definition docnode.h:1074
Node representing a parameter list.
Definition docnode.h:1119
Node representing a parameter section.
Definition docnode.h:1047
Node representing a uml file.
Definition docnode.h:734
Node representing a reference to some item.
Definition docnode.h:772
Root node of documentation tree.
Definition docnode.h:1307
Node representing a reference to a section.
Definition docnode.h:929
Node representing a list of section references.
Definition docnode.h:953
Node representing a normal section.
Definition docnode.h:908
Node representing a separator.
Definition docnode.h:360
Node representing a simple list.
Definition docnode.h:984
Node representing a simple list item.
Definition docnode.h:1147
Node representing a simple section.
Definition docnode.h:1011
Node representing a separator between two simple sections of the same type.
Definition docnode.h:1038
Node representing a style change.
Definition docnode.h:264
Node representing a special symbol.
Definition docnode.h:323
Root node of a text fragment.
Definition docnode.h:1298
Node representing a simple section title.
Definition docnode.h:603
Node representing a URL (or email address)
Definition docnode.h:187
Node representing a verbatim, unparsed text fragment.
Definition docnode.h:371
Node representing a VHDL flow chart.
Definition docnode.h:743
Node representing some amount of white space.
Definition docnode.h:349
Node representing a word.
Definition docnode.h:152
Node representing an item of a cross-referenced list.
Definition docnode.h:615
std::array< ManListItemInfo, maxIndentLevels > m_listItemInfo
void filter(const QCString &str)
TextStream & m_t
void operator()(const DocWord &)
OutputCodeList & m_ci
QCString m_langExt
static const int maxIndentLevels
void visitChildren(const T &t)
ManDocVisitor(TextStream &t, OutputCodeList &ci, const QCString &langExt)
Class representing a list of different code generators.
Definition outputlist.h:164
This is an alternative implementation of QCString.
Definition qcstring.h:101
Text streaming class that buffers data.
Definition textstream.h:36