浏览该文件的文档.
19 #ifndef PRINTDOCVISITOR_H
20 #define PRINTDOCVISITOR_H
81 printf(
"print: non supported emoji found: %s\n",
qPrint(s->
name()));
105 if (s->
enable()) printf(
"<bold>");
else printf(
"</bold>");
108 if (s->
enable()) printf(
"<s>");
else printf(
"</s>");
111 if (s->
enable()) printf(
"<strike>");
else printf(
"</strike>");
114 if (s->
enable()) printf(
"<del>");
else printf(
"</del>");
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>");
192 printf(
"<include file=\"%s\" type=\"",
qPrint(inc->
file()));
200 printf(
"htmlinclude");
201 if (inc->
isBlock()) printf(
" block=\"yes\"");
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()));
240 printf(
"<indexentry>%s</indexentry\n",
qPrint(i->
entry()));
245 printf(
"<simplesectsep/>");
250 printf(
"<cite ref=\"%s\" file=\"%s\" "
251 "anchor=\"%s\" text=\"%s\""
316 printf(
"<simplesect type=");
343 printf(
"</simplesect>\n");
353 printf(
"</title>\n");
378 printf(
"<sect%d>\n",s->
level());
383 printf(
"</sect%d>\n",s->
level());
393 printf(
" %s=\"%s\"",
qPrint(opt.name),
qPrint(opt.value));
397 else printf(
"<ul>\n");
409 for (
const auto &opt : s->
attribs())
411 printf(
" %s=\"%s\"",
qPrint(opt.name),
qPrint(opt.value));
465 printf(
"<table rows=\"%zu\" cols=\"%zu\">\n",
471 printf(
"</table>\n");
486 printf(
"<t%c>\n",c->
isHeading()?
'h':
'd');
491 printf(
"</t%c>\n",c->
isHeading()?
'h':
'd');
496 printf(
"<caption>\n");
501 printf(
"</caption>\n");
506 printf(
"<internal>\n");
511 printf(
"</internal>\n");
516 printf(
"<a url=\"%s\">\n",
qPrint(href->
url()));
526 printf(
"<h%d>\n",header->
level());
531 printf(
"</h%d>\n",header->
level());
536 printf(
"<image src=\"%s\" type=\"",
qPrint(img->
name()));
550 printf(
"</image>\n");
555 printf(
"<dotfile src=\"%s\">\n",
qPrint(df->
name()));
560 printf(
"</dotfile>\n");
565 printf(
"<mscfile src=\"%s\">\n",
qPrint(df->
name()));
570 printf(
"</mscfile>\n");
575 printf(
"<diafile src=\"%s\">\n",
qPrint(df->
name()));
580 printf(
"</diafile>\n");
585 printf(
"<link ref=\"%s\" file=\"%s\" anchor=\"%s\">\n",
596 printf(
"<ref ref=\"%s\" file=\"%s\" "
597 "anchor=\"%s\" targetTitle=\"%s\""
598 " hasLinkText=\"%s\" refToAnchor=\"%s\" refToSection=\"%s\" refToTable=\"%s\">\n",
612 printf(
"<secrefitem target=\"%s\">\n",
qPrint(ref->
target()));
617 printf(
"</secrefitem>\n");
622 printf(
"<secreflist>\n");
627 printf(
"</secreflist>\n");
642 printf(
"<parameters>");
669 printf(
"</parameters>\n");
674 printf(
"<paramsect type=");
688 printf(
"</paramsect>\n");
693 printf(
"<xrefitem file=\"%s\" anchor=\"%s\" title=\"%s\">\n",
699 printf(
"</xrefitem>\n");
709 printf(
"</internalref>\n");
724 printf(
"<blockquote>\n");
729 printf(
"</blockquote>\n");
734 printf(
"<vhdlflow>\n");
739 printf(
"</vhdlflow>\n");
744 printf(
"<parblock>\n");
749 printf(
"</parblock>\n");
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
void visitPost(DocLink *)
Node representing a simple section title
Node representing a paragraph in the documentation tree
bool isInlineImage() const
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
size_t numColumns() const
Node representing a VHDL flow chart
Node representing a HTML description data
Node representing a Html description item
Node representing a n emoji
Node representing a msc file
QCString targetTitle() const
Node representing a reference to a section
Node representing an anchor
void err(const char *fmt,...)
Root node of a text fragment
const HtmlAttribList & attribs() const
Abstract visitor that participates in the visitor pattern.
static HtmlEntityMapper * instance()
Returns the one and only instance of the HTML entity mapper
Node representing a Html description list
Node representing a include/dontinclude operator block
Node representing an entry in the index.
Node representing a list of section references
Node representing a line break
Node representing a special symbol
const char * name(int index) const
Access routine to the name of the Emoji entity
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 reference to some item
Node representing a parameter section
const int DocVisitor_Other
Node representing a Html list
void visitPre(DocRef *ref)
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 word that can be linked to something
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 some amount of white space
static EmojiEntityMapper * instance()
Returns the one and only instance of the Emoji entity mapper
Node representing a HTML table cell
Node representing an internal reference to some item
DocNodeList & parameters()
Node representing a HTML table row
bool refToSection() const
const char * utf8(DocSymbol::SymType symb, bool useInPrintf=FALSE) const
Access routine to the UTF8 code of the HTML entity
const HtmlAttribList & attribs() const