#include <printdocvisitor.h>
Concrete visitor implementation for pretty printing
在文件 printdocvisitor.h 第 28 行定义.
◆ PrintDocVisitor()
PrintDocVisitor::PrintDocVisitor |
( |
| ) |
|
|
inline |
◆ indent()
void PrintDocVisitor::indent |
( |
| ) |
|
|
inlineprivate |
◆ indent_leaf()
void PrintDocVisitor::indent_leaf |
( |
| ) |
|
|
inlineprivate |
◆ indent_post()
void PrintDocVisitor::indent_post |
( |
| ) |
|
|
inlineprivate |
◆ indent_pre()
void PrintDocVisitor::indent_pre |
( |
| ) |
|
|
inlineprivate |
◆ visit() [1/17]
◆ visit() [2/17]
void PrintDocVisitor::visit |
( |
DocCite * |
cite | ) |
|
|
inlinevirtual |
◆ visit() [3/17]
void PrintDocVisitor::visit |
( |
DocEmoji * |
s | ) |
|
|
inlinevirtual |
◆ visit() [4/17]
◆ visit() [5/17]
实现了 DocVisitor.
在文件 printdocvisitor.h 第 110 行定义.
111 if (s->enable()) printf(
"<strike>");
else printf(
"</strike>");
114 if (s->enable()) printf(
"<del>");
else printf(
"</del>");
◆ visit() [6/17]
实现了 DocVisitor.
在文件 printdocvisitor.h 第 205 行定义.
205 : printf(
"docbookinclude");
break;
213 err(
"Internal inconsistency: found switch SnippetDoc / IncludeDoc in file: %s"
214 "Please create a bug report\n",__FILE__);
222 printf(
"<incoperator pattern=\"%s\" type=\"",
qPrint(op->
pattern()));
◆ visit() [7/17]
◆ visit() [8/17]
◆ visit() [9/17]
◆ visit() [10/17]
◆ visit() [11/17]
◆ visit() [12/17]
实现了 DocVisitor.
在文件 printdocvisitor.h 第 115 行定义.
117 if (s->
enable()) printf(
"<underline>");
else printf(
"</underline>");
120 if (s->
enable()) printf(
"<ins>");
else printf(
"</ins>");
123 if (s->
enable()) printf(
"<italic>");
else printf(
"</italic>");
126 if (s->
enable()) printf(
"<code>");
else printf(
"</code>");
129 if (s->
enable()) printf(
"<sub>");
else printf(
"</sub>");
132 if (s->
enable()) printf(
"<sup>");
else printf(
"</sup>");
135 if (s->
enable()) printf(
"<center>");
else printf(
"</center>");
138 if (s->
enable()) printf(
"<small>");
else printf(
"</small>");
141 if (s->
enable()) printf(
"<pre>");
else printf(
"</pre>");
144 if (s->
enable()) printf(
"<div>");
else printf(
"</div>");
147 if (s->
enable()) printf(
"<span>");
else printf(
"</span>");
◆ visit() [13/17]
◆ visit() [14/17]
void PrintDocVisitor::visit |
( |
DocURL * |
u | ) |
|
|
inlinevirtual |
◆ visit() [15/17]
◆ visit() [16/17]
◆ visit() [17/17]
void PrintDocVisitor::visit |
( |
DocWord * |
w | ) |
|
|
inlinevirtual |
◆ visitPost() [1/37]
◆ visitPost() [2/37]
◆ visitPost() [3/37]
◆ visitPost() [4/37]
◆ visitPost() [5/37]
void PrintDocVisitor::visitPost |
( |
DocHRef * |
| ) |
|
|
inlinevirtual |
◆ visitPost() [6/37]
◆ visitPost() [7/37]
◆ visitPost() [8/37]
◆ visitPost() [9/37]
◆ visitPost() [10/37]
◆ visitPost() [11/37]
◆ visitPost() [12/37]
◆ visitPost() [13/37]
◆ visitPost() [14/37]
◆ visitPost() [15/37]
◆ visitPost() [16/37]
◆ visitPost() [17/37]
void PrintDocVisitor::visitPost |
( |
DocImage * |
| ) |
|
|
inlinevirtual |
◆ visitPost() [18/37]
◆ visitPost() [19/37]
◆ visitPost() [20/37]
void PrintDocVisitor::visitPost |
( |
DocLink * |
| ) |
|
|
inlinevirtual |
◆ visitPost() [21/37]
◆ visitPost() [22/37]
void PrintDocVisitor::visitPost |
( |
DocPara * |
| ) |
|
|
inlinevirtual |
◆ visitPost() [23/37]
◆ visitPost() [24/37]
◆ visitPost() [25/37]
◆ visitPost() [26/37]
void PrintDocVisitor::visitPost |
( |
DocRef * |
| ) |
|
|
inlinevirtual |
◆ visitPost() [27/37]
void PrintDocVisitor::visitPost |
( |
DocRoot * |
| ) |
|
|
inlinevirtual |
◆ visitPost() [28/37]
◆ visitPost() [29/37]
◆ visitPost() [30/37]
◆ visitPost() [31/37]
◆ visitPost() [32/37]
◆ visitPost() [33/37]
◆ visitPost() [34/37]
void PrintDocVisitor::visitPost |
( |
DocText * |
| ) |
|
|
inlinevirtual |
◆ visitPost() [35/37]
void PrintDocVisitor::visitPost |
( |
DocTitle * |
| ) |
|
|
inlinevirtual |
◆ visitPost() [36/37]
◆ visitPost() [37/37]
◆ visitPre() [1/37]
◆ visitPre() [2/37]
◆ visitPre() [3/37]
◆ visitPre() [4/37]
◆ visitPre() [5/37]
void PrintDocVisitor::visitPre |
( |
DocHRef * |
href | ) |
|
|
inlinevirtual |
◆ visitPre() [6/37]
◆ visitPre() [7/37]
◆ visitPre() [8/37]
◆ visitPre() [9/37]
◆ visitPre() [10/37]
◆ visitPre() [11/37]
◆ visitPre() [12/37]
◆ visitPre() [13/37]
◆ visitPre() [14/37]
◆ visitPre() [15/37]
◆ visitPre() [16/37]
◆ visitPre() [17/37]
void PrintDocVisitor::visitPre |
( |
DocImage * |
img | ) |
|
|
inlinevirtual |
◆ visitPre() [18/37]
◆ visitPre() [19/37]
◆ visitPre() [20/37]
void PrintDocVisitor::visitPre |
( |
DocLink * |
lnk | ) |
|
|
inlinevirtual |
实现了 DocVisitor.
在文件 printdocvisitor.h 第 598 行定义.
601 ref->refToAnchor()?
"yes":
"no", ref->refToSection()?
"yes":
"no",
602 ref->refToTable()?
"yes":
"no");
◆ visitPre() [21/37]
◆ visitPre() [22/37]
void PrintDocVisitor::visitPre |
( |
DocPara * |
| ) |
|
|
inlinevirtual |
◆ visitPre() [23/37]
◆ visitPre() [24/37]
◆ visitPre() [25/37]
◆ visitPre() [26/37]
void PrintDocVisitor::visitPre |
( |
DocRef * |
ref | ) |
|
|
inlinevirtual |
◆ visitPre() [27/37]
void PrintDocVisitor::visitPre |
( |
DocRoot * |
| ) |
|
|
inlinevirtual |
◆ visitPre() [28/37]
◆ visitPre() [29/37]
◆ visitPre() [30/37]
◆ visitPre() [31/37]
◆ visitPre() [32/37]
◆ visitPre() [33/37]
◆ visitPre() [34/37]
void PrintDocVisitor::visitPre |
( |
DocText * |
| ) |
|
|
inlinevirtual |
◆ visitPre() [35/37]
void PrintDocVisitor::visitPre |
( |
DocTitle * |
| ) |
|
|
inlinevirtual |
◆ visitPre() [36/37]
◆ visitPre() [37/37]
◆ m_indent
int PrintDocVisitor::m_indent |
|
private |
◆ m_insidePre
bool PrintDocVisitor::m_insidePre |
|
private |
◆ m_needsEnter
bool PrintDocVisitor::m_needsEnter |
|
private |
该类的文档由以下文件生成:
Node representing an HTML blockquote
Node representing an item of a auto list
Node representing a Hypertext reference
Node representing a style change
Node representing a verbatim, unparsed text fragment
Node representing a simple section title
Node representing a paragraph in the documentation tree
Node representing a dot file
Node representing a HTML table
Root node of documentation tree
void visitPre(DocAutoList *l)
Node representing a HTML list item
Node representing a VHDL flow chart
Node representing a HTML description data
Node representing a n emoji
Node representing a msc file
Node representing a reference to a section
Node representing an anchor
void err(const char *fmt,...)
Root node of a text fragment
static HtmlEntityMapper * instance()
Returns the one and only instance of the HTML entity mapper
Node representing a include/dontinclude operator block
Node representing a list of section references
Node representing an item of a cross-referenced list
void visitPost(DocAutoList *l)
Node representing an image
Node representing a URL (or email address)
Node representing a HTML table caption
Node representing a parameter list.
Node representing an block of paragraphs
Node representing a separator between two simple sections of the same type.
Node representing a citation of some bibliographic reference
Node representing a parameter section
Node representing a Html list
Node representing a simple section
Node representing a normal section
Node representing a horizontal ruler
Node representing an included text block from file
Node representing an auto List
Node representing an internal section of documentation
Node representing a link to some item
Node representing a dia file
const char * qPrint(const char *s)
Node representing a simple list
Node representing a simple list item
Node representing a HTML table cell
const char * utf8(DocSymbol::SymType symb, bool useInPrintf=FALSE) const
Access routine to the UTF8 code of the HTML entity
const HtmlAttribList & attribs() const