Doxygen
Loading...
Searching...
No Matches
printdocvisitor.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 PRINTDOCVISITOR_H
20#define PRINTDOCVISITOR_H
21
22#include "htmlentity.h"
23#include "emoji.h"
24#include "message.h"
25#include "cite.h"
26
27/*! Visitor implementation for pretty printing */
29{
30 public:
32
33 //--------------------------------------
34
35 void operator()(const DocWord &w)
36 {
38 printf("%s",qPrint(w.word()));
39 }
41 {
43 printf("%s",qPrint(w.word()));
44 }
46 {
48 if (m_insidePre)
49 {
50 printf("%s",qPrint(w.chars()));
51 }
52 else
53 {
54 printf(" ");
55 }
56 }
57 void operator()(const DocSymbol &s)
58 {
60 const char *res = HtmlEntityMapper::instance().utf8(s.symbol(),TRUE);
61 if (res)
62 {
63 printf("%s",res);
64 }
65 else
66 {
67 printf("print: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance().html(s.symbol(),TRUE));
68 }
69 }
70 void operator()(const DocEmoji &s)
71 {
73 const char *res = EmojiEntityMapper::instance().name(s.index());
74 if (res)
75 {
76 printf("%s",res);
77 }
78 else
79 {
80 printf("print: non supported emoji found: %s\n",qPrint(s.name()));
81 }
82 }
83 void operator()(const DocURL &u)
84 {
86 printf("%s",qPrint(u.url()));
87 }
89 {
91 printf("<br/>");
92 }
93 void operator()(const DocHorRuler &)
94 {
96 printf("<hr>");
97 }
99 {
100 indent_leaf();
101 switch (s.style())
102 {
104 if (s.enable()) printf("<bold>"); else printf("</bold>");
105 break;
107 if (s.enable()) printf("<s>"); else printf("</s>");
108 break;
110 if (s.enable()) printf("<strike>"); else printf("</strike>");
111 break;
113 if (s.enable()) printf("<del>"); else printf("</del>");
114 break;
116 if (s.enable()) printf("<underline>"); else printf("</underline>");
117 break;
119 if (s.enable()) printf("<ins>"); else printf("</ins>");
120 break;
122 if (s.enable()) printf("<italic>"); else printf("</italic>");
123 break;
125 if (s.enable()) printf("<kbd>"); else printf("</kbd>");
126 break;
128 if (s.enable()) printf("<tt>"); else printf("</tt>");
129 break;
131 if (s.enable()) printf("<code>"); else printf("</code>");
132 break;
134 if (s.enable()) printf("<sub>"); else printf("</sub>");
135 break;
137 if (s.enable()) printf("<sup>"); else printf("</sup>");
138 break;
140 if (s.enable()) printf("<center>"); else printf("</center>");
141 break;
143 if (s.enable()) printf("<small>"); else printf("</small>");
144 break;
146 if (s.enable()) printf("<cite>"); else printf("</cite>");
147 break;
149 if (s.enable()) printf("<pre>"); else printf("</pre>");
150 break;
152 if (s.enable()) printf("<div>"); else printf("</div>");
153 break;
155 if (s.enable()) printf("<span>"); else printf("</span>");
156 break;
157 }
158 }
159 void operator()(const DocVerbatim &s)
160 {
161 indent_leaf();
162 switch(s.type())
163 {
164 case DocVerbatim::Code: printf("<code>"); break;
165 case DocVerbatim::Verbatim: printf("<verbatim>"); break;
166 case DocVerbatim::JavaDocLiteral: printf("<javadocliteral>"); break;
167 case DocVerbatim::JavaDocCode: printf("<javadoccode>"); break;
168 case DocVerbatim::HtmlOnly: printf("<htmlonly>"); break;
169 case DocVerbatim::RtfOnly: printf("<rtfonly>"); break;
170 case DocVerbatim::ManOnly: printf("<manonly>"); break;
171 case DocVerbatim::LatexOnly: printf("<latexonly>"); break;
172 case DocVerbatim::XmlOnly: printf("<xmlonly>"); break;
173 case DocVerbatim::DocbookOnly: printf("<docbookonly>"); break;
174 case DocVerbatim::Dot: printf("<dot>"); break;
175 case DocVerbatim::Msc: printf("<msc>"); break;
176 case DocVerbatim::PlantUML: printf("<plantuml>"); break;
177 }
178 printf("%s",qPrint(s.text()));
179 switch(s.type())
180 {
181 case DocVerbatim::Code: printf("</code>"); break;
182 case DocVerbatim::Verbatim: printf("</verbatim>"); break;
183 case DocVerbatim::JavaDocLiteral: printf("</javadocliteral>"); break;
184 case DocVerbatim::JavaDocCode: printf("</javadoccode>"); break;
185 case DocVerbatim::HtmlOnly: printf("</htmlonly>"); break;
186 case DocVerbatim::RtfOnly: printf("</rtfonly>"); break;
187 case DocVerbatim::ManOnly: printf("</manonly>"); break;
188 case DocVerbatim::LatexOnly: printf("</latexonly>"); break;
189 case DocVerbatim::XmlOnly: printf("</xmlonly>"); break;
190 case DocVerbatim::DocbookOnly: printf("</docbookonly>"); break;
191 case DocVerbatim::Dot: printf("</dot>"); break;
192 case DocVerbatim::Msc: printf("</msc>"); break;
193 case DocVerbatim::PlantUML: printf("</plantuml>"); break;
194 }
195 }
196 void operator()(const DocAnchor &a)
197 {
198 indent_leaf();
199 printf("<anchor name=\"%s\"/>",qPrint(a.anchor()));
200 }
201 void operator()(const DocInclude &inc)
202 {
203 indent_leaf();
204 printf("<include file=\"%s\" type=\"",qPrint(inc.file()));
205 switch(inc.type())
206 {
207 case DocInclude::Include: printf("include"); break;
208 case DocInclude::IncWithLines: printf("incwithlines"); break;
209 case DocInclude::DontInclude: printf("dontinclude"); break;
210 case DocInclude::DontIncWithLines: printf("dontinwithlines"); break;
212 printf("htmlinclude");
213 if (inc.isBlock()) printf(" block=\"yes\"");
214 break;
215 case DocInclude::LatexInclude: printf("latexinclude"); break;
216 case DocInclude::RtfInclude: printf("rtfinclude"); break;
217 case DocInclude::DocbookInclude: printf("docbookinclude"); break;
218 case DocInclude::ManInclude: printf("maninclude"); break;
219 case DocInclude::XmlInclude: printf("xmlinclude"); break;
220 case DocInclude::VerbInclude: printf("verbinclude"); break;
221 case DocInclude::Snippet: printf("snippet"); break;
222 case DocInclude::SnippetWithLines: printf("snipwithlines"); break;
223 }
224 printf("\"/>");
225 }
227 {
228 indent_leaf();
229 printf("<incoperator pattern=\"%s\" type=\"",qPrint(op.pattern()));
230 switch(op.type())
231 {
232 case DocIncOperator::Line: printf("line"); break;
233 case DocIncOperator::Skip: printf("skip"); break;
234 case DocIncOperator::SkipLine: printf("skipline"); break;
235 case DocIncOperator::Until: printf("until"); break;
236 }
237 printf("\"/>");
238 }
239 void operator()(const DocFormula &f)
240 {
241 indent_leaf();
242 printf("<formula name=%s text=%s/>",qPrint(f.name()),qPrint(f.text()));
243 }
245 {
246 indent_leaf();
247 printf("<indexentry>%s</indexentry\n",qPrint(i.entry()));
248 }
250 {
251 indent_leaf();
252 printf("<simplesectsep/>");
253 }
254 void operator()(const DocCite &cite)
255 {
256 indent_leaf();
257 auto opt = cite.option();
258 QCString txt;
259 if (!cite.file().isEmpty())
260 {
261 txt = cite.getText();
262 }
263 else
264 {
265 if (!opt.noPar()) txt += "[";
266 txt += cite.target();
267 if (!opt.noPar()) txt += "]";
268 }
269 printf("<cite ref=\"%s\" file=\"%s\" "
270 "anchor=\"%s\" text=\"%s\""
271 "/>\n",
272 qPrint(cite.ref()),qPrint(cite.file()),qPrint(cite.anchor()),
273 qPrint(txt));
274 }
276 {
277 indent_leaf();
278 printf("<sep/>");
279 }
280
281 //--------------------------------------
282 template<class T>
283 void visitChildren(const T &t)
284 {
285 for (const auto &child : t.children())
286 {
287 std::visit(*this, child);
288 }
289 }
290
291 void operator()(const DocAutoList &l)
292 {
293 indent_pre();
294 if (l.isEnumList())
295 {
296 printf("<ol>\n");
297 }
298 else
299 {
300 printf("<ul>\n");
301 }
302 visitChildren(l);
303 indent_post();
304 if (l.isEnumList())
305 {
306 printf("</ol>\n");
307 }
308 else
309 {
310 printf("</ul>\n");
311 }
312 }
314 {
315 indent_pre();
316 switch (li.itemNumber())
317 {
318 case DocAutoList::Unchecked: // unchecked
319 printf("<li class=\"unchecked\">\n");
320 break;
321 case DocAutoList::Checked_x: // checked with x
322 case DocAutoList::Checked_X: // checked with X
323 printf("<li class=\"checked\">\n");
324 break;
325 default:
326 printf("<li>\n");
327 break;
328 }
329 visitChildren(li);
330 indent_post();
331 printf("</li>\n");
332 }
333 void operator()(const DocPara &p)
334 {
335 indent_pre();
336 printf("<para>\n");
337 visitChildren(p);
338 indent_post();
339 printf("</para>\n");
340 }
341 void operator()(const DocRoot &r)
342 {
343 indent_pre();
344 printf("<root>\n");
345 visitChildren(r);
346 indent_post();
347 printf("</root>\n");
348 }
350 {
351 indent_pre();
352 printf("<simplesect type=");
353 switch(s.type())
354 {
355 case DocSimpleSect::See: printf("see"); break;
356 case DocSimpleSect::Return: printf("return"); break;
357 case DocSimpleSect::Author: printf("author"); break;
358 case DocSimpleSect::Authors: printf("authors"); break;
359 case DocSimpleSect::Version: printf("version"); break;
360 case DocSimpleSect::Since: printf("since"); break;
361 case DocSimpleSect::Date: printf("date"); break;
362 case DocSimpleSect::Note: printf("note"); break;
363 case DocSimpleSect::Warning: printf("warning"); break;
364 case DocSimpleSect::Pre: printf("pre"); break;
365 case DocSimpleSect::Post: printf("post"); break;
366 case DocSimpleSect::Copyright: printf("copyright"); break;
367 case DocSimpleSect::Invar: printf("invar"); break;
368 case DocSimpleSect::Remark: printf("remark"); break;
369 case DocSimpleSect::Attention: printf("attention"); break;
370 case DocSimpleSect::Important: printf("important"); break;
371 case DocSimpleSect::User: printf("user"); break;
372 case DocSimpleSect::Rcs: printf("rcs"); break;
373 case DocSimpleSect::Unknown: printf("unknown"); break;
374 }
375 printf(">\n");
376 if (s.title())
377 {
378 std::visit(*this, *s.title());
379 }
380 visitChildren(s);
381 indent_post();
382 printf("</simplesect>\n");
383 }
384 void operator()(const DocTitle &t)
385 {
386 indent_pre();
387 printf("<title>\n");
388 visitChildren(t);
389 indent_post();
390 printf("</title>\n");
391 }
393 {
394 indent_pre();
395 printf("<ul>\n");
396 visitChildren(l);
397 indent_post();
398 printf("</ul>\n");
399 }
401 {
402 indent_pre();
403 printf("<li>\n");
404 if (li.paragraph())
405 {
406 visit(*this,*li.paragraph());
407 }
408 indent_post();
409 printf("</li>\n");
410 }
411 void operator()(const DocSection &s)
412 {
413 indent_pre();
414 printf("<sect%d>\n",s.level());
415 if (s.title())
416 {
417 std::visit(*this, *s.title());
418 }
419 visitChildren(s);
420 indent_post();
421 printf("</sect%d>\n",s.level());
422 }
423 void operator()(const DocHtmlList &s)
424 {
425 indent_pre();
426 if (s.type()==DocHtmlList::Ordered)
427 {
428 printf("<ol");
429 for (const auto &opt : s.attribs())
430 {
431 printf(" %s=\"%s\"",qPrint(opt.name),qPrint(opt.value));
432 }
433 printf(">\n");
434 }
435 else
436 {
437 printf("<ul>\n");
438 }
439 visitChildren(s);
440 indent_post();
441 if (s.type()==DocHtmlList::Ordered)
442 {
443 printf("</ol>\n");
444 }
445 else
446 {
447 printf("</ul>\n");
448 }
449 }
451 {
452 indent_pre();
453 printf("<li");
454 for (const auto &opt : li.attribs())
455 {
456 printf(" %s=\"%s\"",qPrint(opt.name),qPrint(opt.value));
457 }
458 printf(">\n");
459 visitChildren(li);
460 indent_post();
461 printf("</li>\n");
462 }
464 {
465 indent_pre();
466 printf("<dl>\n");
467 visitChildren(l);
468 indent_post();
469 printf("</dl>\n");
470 }
472 {
473 indent_pre();
474 printf("<dt>\n");
475 visitChildren(dt);
476 indent_post();
477 printf("</dt>\n");
478 }
480 {
481 indent_pre();
482 printf("<dd>\n");
483 visitChildren(dd);
484 indent_post();
485 printf("</dd>\n");
486 }
488 {
489 indent_pre();
490 printf("<table rows=\"%zu\" cols=\"%zu\">\n",
491 t.numRows(),t.numColumns());
492 visitChildren(t);
493 if (t.caption())
494 {
495 std::visit(*this, *t.caption());
496 }
497 indent_post();
498 printf("</table>\n");
499 }
500 void operator()(const DocHtmlRow &tr)
501 {
502 indent_pre();
503 printf("<tr>\n");
504 visitChildren(tr);
505 indent_post();
506 printf("</tr>\n");
507 }
508 void operator()(const DocHtmlCell &c)
509 {
510 indent_pre();
511 printf("<t%c>\n",c.isHeading()?'h':'d');
512 visitChildren(c);
513 indent_post();
514 printf("</t%c>\n",c.isHeading()?'h':'d');
515 }
517 {
518 indent_pre();
519 printf("<caption>\n");
520 visitChildren(c);
521 indent_post();
522 printf("</caption>\n");
523 }
524 void operator()(const DocInternal &i)
525 {
526 indent_pre();
527 printf("<internal>\n");
528 visitChildren(i);
529 indent_post();
530 printf("</internal>\n");
531 }
532 void operator()(const DocHRef &href)
533 {
534 indent_pre();
535 printf("<a url=\"%s\">\n",qPrint(href.url()));
536 visitChildren(href);
537 indent_post();
538 printf("</a>\n");
539 }
540 void operator()(const DocHtmlSummary &summary)
541 {
542 indent_pre();
543 printf("<summary");
544 for (const auto &opt : summary.attribs())
545 {
546 printf(" %s=\"%s\"",qPrint(opt.name),qPrint(opt.value));
547 }
548 printf(">\n");
549 visitChildren(summary);
550 indent_post();
551 printf("</summary>\n");
552 }
554 {
555 indent_pre();
556 printf("<details");
557 for (const auto &opt : details.attribs())
558 {
559 printf(" %s=\"%s\"",qPrint(opt.name),qPrint(opt.value));
560 }
561 printf(">\n");
562 auto summary = details.summary();
563 if (summary)
564 {
565 std::visit(*this,*summary);
566 }
568 indent_post();
569 printf("</details>\n");
570 }
571 void operator()(const DocHtmlHeader &header)
572 {
573 indent_pre();
574 printf("<h%d>\n",header.level());
575 visitChildren(header);
576 indent_post();
577 printf("</h%d>\n",header.level());
578 }
579 void operator()(const DocImage &img)
580 {
581 indent_pre();
582 printf("<image src=\"%s\" type=\"",qPrint(img.name()));
583 switch(img.type())
584 {
585 case DocImage::Html: printf("html"); break;
586 case DocImage::Latex: printf("latex"); break;
587 case DocImage::Rtf: printf("rtf"); break;
588 case DocImage::DocBook: printf("docbook"); break;
589 case DocImage::Xml: printf("xml"); break;
590 }
591 printf("\" %s %s inline=\"%s\">\n",qPrint(img.width()),qPrint(img.height()),img.isInlineImage() ? "yes" : "no");
592 visitChildren(img);
593 indent_post();
594 printf("</image>\n");
595 }
596 void operator()(const DocDotFile &df)
597 {
598 indent_pre();
599 printf("<dotfile src=\"%s\">\n",qPrint(df.name()));
600 visitChildren(df);
601 indent_post();
602 printf("</dotfile>\n");
603 }
604 void operator()(const DocMscFile &df)
605 {
606 indent_pre();
607 printf("<mscfile src=\"%s\">\n",qPrint(df.name()));
608 visitChildren(df);
609 indent_post();
610 printf("</mscfile>\n");
611 }
612 void operator()(const DocDiaFile &df)
613 {
614 indent_pre();
615 printf("<diafile src=\"%s\">\n",qPrint(df.name()));
616 visitChildren(df);
617 indent_post();
618 printf("</diafile>\n");
619 }
621 {
622 indent_pre();
623 printf("<plantumlfile src=\"%s\">\n",qPrint(df.name()));
624 visitChildren(df);
625 indent_post();
626 printf("</plantumlfile>\n");
627 }
628 void operator()(const DocLink &lnk)
629 {
630 indent_pre();
631 printf("<link ref=\"%s\" file=\"%s\" anchor=\"%s\">\n",
632 qPrint(lnk.ref()),qPrint(lnk.file()),qPrint(lnk.anchor()));
633 visitChildren(lnk);
634 indent_post();
635 printf("</link>\n");
636 }
637 void operator()(const DocRef &ref)
638 {
639 indent_pre();
640 printf("<ref ref=\"%s\" file=\"%s\" "
641 "anchor=\"%s\" targetTitle=\"%s\""
642 " hasLinkText=\"%s\" refToAnchor=\"%s\" refToSection=\"%s\" refToTable=\"%s\">\n",
643 qPrint(ref.ref()),qPrint(ref.file()),qPrint(ref.anchor()),
644 qPrint(ref.targetTitle()),ref.hasLinkText()?"yes":"no",
645 ref.refToAnchor()?"yes":"no", ref.refToSection()?"yes":"no",
646 ref.refToTable()?"yes":"no");
647 visitChildren(ref);
648 indent_post();
649 printf("</ref>\n");
650 }
651 void operator()(const DocSecRefItem &ref)
652 {
653 indent_pre();
654 printf("<secrefitem target=\"%s\">\n",qPrint(ref.target()));
655 visitChildren(ref);
656 indent_post();
657 printf("</secrefitem>\n");
658 }
659 void operator()(const DocSecRefList &rl)
660 {
661 indent_pre();
662 printf("<secreflist>\n");
663 visitChildren(rl);
664 indent_post();
665 printf("</secreflist>\n");
666 }
667 void operator()(const DocParamList &pl)
668 {
669 indent_pre();
670 printf("<parameters>");
671 if (!pl.parameters().empty())
672 {
673 printf("<param>");
674 for (const auto &param : pl.parameters())
675 {
676 std::visit(*this,param);
677 }
678 printf("</param>");
679 }
680 printf("\n");
681 indent_post();
682 printf("</parameters>\n");
683 }
684 void operator()(const DocParamSect &ps)
685 {
686 indent_pre();
687 printf("<paramsect type=");
688 switch (ps.type())
689 {
690 case DocParamSect::Param: printf("param"); break;
691 case DocParamSect::RetVal: printf("retval"); break;
692 case DocParamSect::Exception: printf("exception"); break;
693 case DocParamSect::TemplateParam: printf("templateparam"); break;
694 case DocParamSect::Unknown: printf("unknown"); break;
695 }
696 printf(">\n");
697 visitChildren(ps);
698 indent_post();
699 printf("</paramsect>\n");
700 }
701 void operator()(const DocXRefItem &x)
702 {
703 indent_pre();
704 printf("<xrefitem file=\"%s\" anchor=\"%s\" title=\"%s\">\n",
705 qPrint(x.file()),qPrint(x.anchor()),qPrint(x.title()));
706 visitChildren(x);
707 indent_post();
708 printf("</xrefitem>\n");
709 }
711 {
712 indent_pre();
713 printf("<internalref file=%s anchor=%s>\n",qPrint(r.file()),qPrint(r.anchor()));
714 visitChildren(r);
715 indent_post();
716 printf("</internalref>\n");
717 }
718 void operator()(const DocText &t)
719 {
720 indent_pre();
721 printf("<text>\n");
722 visitChildren(t);
723 indent_post();
724 printf("</text>\n");
725 }
727 {
728 indent_pre();
729 printf("<blockquote>\n");
730 visitChildren(q);
731 indent_post();
732 printf("</blockquote>\n");
733 }
734 void operator()(const DocVhdlFlow &vf)
735 {
736 indent_pre();
737 printf("<vhdlflow>\n");
738 visitChildren(vf);
739 indent_post();
740 printf("</vhdlflow>\n");
741 }
742 void operator()(const DocParBlock &pb)
743 {
744 indent_pre();
745 printf("<parblock>\n");
746 visitChildren(pb);
747 indent_post();
748 printf("</parblock>\n");
749 }
750
751 private:
752 // helper functions
753 void indent()
754 {
755 if (m_needsEnter) printf("\n");
756 for (int i=0;i<m_indent;i++) printf(".");
758 }
760 {
761 if (!m_needsEnter) indent();
763 }
765 {
766 indent();
767 m_indent++;
768 }
770 {
771 m_indent--;
772 indent();
773 }
774
775 // member variables
779};
780
781#endif
Node representing an anchor.
Definition docnode.h:229
QCString anchor() const
Definition docnode.h:232
Node representing an auto List.
Definition docnode.h:571
bool isEnumList() const
Definition docnode.h:580
Node representing an item of a auto list.
Definition docnode.h:595
int itemNumber() const
Definition docnode.h:598
Node representing a citation of some bibliographic reference.
Definition docnode.h:245
QCString getText() const
Definition docnode.cpp:939
CiteInfoOption option() const
Definition docnode.h:253
QCString target() const
Definition docnode.h:252
QCString anchor() const
Definition docnode.h:251
QCString ref() const
Definition docnode.h:250
QCString file() const
Definition docnode.h:248
Node representing a dia file.
Definition docnode.h:731
QCString name() const
Definition docnode.h:684
Node representing a dot file.
Definition docnode.h:713
Node representing an emoji.
Definition docnode.h:341
int index() const
Definition docnode.h:345
QCString name() const
Definition docnode.h:344
Node representing an item of a cross-referenced list.
Definition docnode.h:529
QCString text() const
Definition docnode.h:533
QCString name() const
Definition docnode.h:532
Node representing a Hypertext reference.
Definition docnode.h:823
QCString url() const
Definition docnode.h:830
Node representing a horizontal ruler.
Definition docnode.h:216
Node representing an HTML blockquote.
Definition docnode.h:1291
Node representing a HTML table caption.
Definition docnode.h:1228
Node representing a HTML table cell.
Definition docnode.h:1193
bool isHeading() const
Definition docnode.h:1200
Node representing a HTML description data.
Definition docnode.h:1181
Node representing a Html description list.
Definition docnode.h:901
Node representing a Html description item.
Definition docnode.h:888
Node Html details.
Definition docnode.h:857
Node Html heading.
Definition docnode.h:873
int level() const
Definition docnode.h:877
Node representing a Html list.
Definition docnode.h:1000
const HtmlAttribList & attribs() const
Definition docnode.h:1006
Type type() const
Definition docnode.h:1005
Node representing a HTML list item.
Definition docnode.h:1165
const HtmlAttribList & attribs() const
Definition docnode.h:1170
Node representing a HTML table row.
Definition docnode.h:1246
Node Html summary.
Definition docnode.h:844
const HtmlAttribList & attribs() const
Definition docnode.h:848
Node representing a HTML table.
Definition docnode.h:1269
size_t numRows() const
Definition docnode.h:1273
size_t numColumns() const
Definition docnode.h:1278
const DocNodeVariant * caption() const
Definition docnode.cpp:2141
Node representing an image.
Definition docnode.h:642
QCString name() const
Definition docnode.h:648
QCString height() const
Definition docnode.h:651
Type type() const
Definition docnode.h:647
QCString width() const
Definition docnode.h:650
@ DocBook
Definition docnode.h:644
bool isInlineImage() const
Definition docnode.h:654
Node representing a include/dontinclude operator block.
Definition docnode.h:477
Type type() const
Definition docnode.h:485
QCString pattern() const
Definition docnode.h:500
Node representing an included text block from file.
Definition docnode.h:435
bool isBlock() const
Definition docnode.h:458
@ LatexInclude
Definition docnode.h:437
@ SnippetWithLines
Definition docnode.h:438
@ DontIncWithLines
Definition docnode.h:439
@ IncWithLines
Definition docnode.h:438
@ HtmlInclude
Definition docnode.h:437
@ VerbInclude
Definition docnode.h:437
@ DontInclude
Definition docnode.h:437
@ DocbookInclude
Definition docnode.h:439
Type type() const
Definition docnode.h:451
QCString file() const
Definition docnode.h:449
Node representing an entry in the index.
Definition docnode.h:552
QCString entry() const
Definition docnode.h:559
Node representing an internal section of documentation.
Definition docnode.h:969
Node representing an internal reference to some item.
Definition docnode.h:807
QCString file() const
Definition docnode.h:811
QCString anchor() const
Definition docnode.h:813
Node representing a line break.
Definition docnode.h:202
Node representing a word that can be linked to something.
Definition docnode.h:165
QCString word() const
Definition docnode.h:170
Node representing a msc file.
Definition docnode.h:722
Node representing an block of paragraphs.
Definition docnode.h:979
Node representing a paragraph in the documentation tree.
Definition docnode.h:1080
Node representing a parameter list.
Definition docnode.h:1125
const DocNodeList & parameters() const
Definition docnode.h:1129
Node representing a parameter section.
Definition docnode.h:1053
Type type() const
Definition docnode.h:1068
Node representing a uml file.
Definition docnode.h:740
Node representing a reference to some item.
Definition docnode.h:778
QCString anchor() const
Definition docnode.h:785
QCString targetTitle() const
Definition docnode.h:786
bool refToTable() const
Definition docnode.h:791
QCString file() const
Definition docnode.h:782
bool refToAnchor() const
Definition docnode.h:789
QCString ref() const
Definition docnode.h:784
bool refToSection() const
Definition docnode.h:790
bool hasLinkText() const
Definition docnode.h:788
Root node of documentation tree.
Definition docnode.h:1313
Node representing a reference to a section.
Definition docnode.h:935
QCString target() const
Definition docnode.h:938
Node representing a list of section references.
Definition docnode.h:959
Node representing a normal section.
Definition docnode.h:914
int level() const
Definition docnode.h:918
const DocNodeVariant * title() const
Definition docnode.h:919
Node representing a separator.
Definition docnode.h:365
Node representing a simple list.
Definition docnode.h:990
Node representing a simple list item.
Definition docnode.h:1153
const DocNodeVariant * paragraph() const
Definition docnode.h:1157
Node representing a simple section.
Definition docnode.h:1017
Type type() const
Definition docnode.h:1026
const DocNodeVariant * title() const
Definition docnode.h:1033
Node representing a separator between two simple sections of the same type.
Definition docnode.h:1044
Node representing a style change.
Definition docnode.h:268
Style style() const
Definition docnode.h:307
bool enable() const
Definition docnode.h:309
Node representing a special symbol.
Definition docnode.h:328
HtmlEntityMapper::SymType symbol() const
Definition docnode.h:332
Root node of a text fragment.
Definition docnode.h:1304
Node representing a simple section title.
Definition docnode.h:608
Node representing a URL (or email address)
Definition docnode.h:188
QCString url() const
Definition docnode.h:192
Node representing a verbatim, unparsed text fragment.
Definition docnode.h:376
Type type() const
Definition docnode.h:382
QCString text() const
Definition docnode.h:383
@ JavaDocLiteral
Definition docnode.h:378
Node representing a VHDL flow chart.
Definition docnode.h:749
Node representing some amount of white space.
Definition docnode.h:354
QCString chars() const
Definition docnode.h:358
Node representing a word.
Definition docnode.h:153
QCString word() const
Definition docnode.h:156
Node representing an item of a cross-referenced list.
Definition docnode.h:621
QCString anchor() const
Definition docnode.h:625
QCString file() const
Definition docnode.h:624
QCString title() const
Definition docnode.h:626
const char * name(int index) const
Access routine to the name of the Emoji entity.
Definition emoji.cpp:2026
static EmojiEntityMapper & instance()
Returns the one and only instance of the Emoji entity mapper.
Definition emoji.cpp:1978
bool empty() const
checks whether the container is empty
Definition growvector.h:140
static HtmlEntityMapper & instance()
Returns the one and only instance of the HTML entity mapper.
const char * utf8(SymType symb, bool useInPrintf=FALSE) const
Access routine to the UTF8 code of the HTML entity.
void operator()(const DocSeparator &)
void operator()(const DocWord &w)
void operator()(const DocSimpleSect &s)
void operator()(const DocAnchor &a)
void operator()(const DocSymbol &s)
void operator()(const DocInclude &inc)
void operator()(const DocHRef &href)
void operator()(const DocHtmlCaption &c)
void operator()(const DocLinkedWord &w)
void operator()(const DocVerbatim &s)
void operator()(const DocHtmlBlockQuote &q)
void operator()(const DocParamList &pl)
void operator()(const DocDiaFile &df)
void operator()(const DocStyleChange &s)
void operator()(const DocTitle &t)
void operator()(const DocText &t)
void operator()(const DocIndexEntry &i)
void operator()(const DocSimpleSectSep &)
void operator()(const DocSimpleList &l)
void operator()(const DocInternal &i)
void operator()(const DocLink &lnk)
void visitChildren(const T &t)
void operator()(const DocHtmlHeader &header)
void operator()(const DocParamSect &ps)
void operator()(const DocInternalRef &r)
void operator()(const DocHtmlDescData &dd)
void operator()(const DocVhdlFlow &vf)
void operator()(const DocURL &u)
void operator()(const DocHtmlTable &t)
void operator()(const DocIncOperator &op)
void operator()(const DocPlantUmlFile &df)
void operator()(const DocXRefItem &x)
void operator()(const DocSecRefItem &ref)
void operator()(const DocEmoji &s)
void operator()(const DocMscFile &df)
void operator()(const DocSecRefList &rl)
void operator()(const DocRoot &r)
void operator()(const DocHtmlList &s)
void operator()(const DocHorRuler &)
void operator()(const DocHtmlDescTitle &dt)
void operator()(const DocHtmlSummary &summary)
void operator()(const DocDotFile &df)
void operator()(const DocLineBreak &)
void operator()(const DocAutoListItem &li)
void operator()(const DocSection &s)
void operator()(const DocHtmlCell &c)
void operator()(const DocAutoList &l)
void operator()(const DocPara &p)
void operator()(const DocRef &ref)
void operator()(const DocHtmlDetails &details)
void operator()(const DocImage &img)
void operator()(const DocFormula &f)
void operator()(const DocHtmlDescList &l)
void operator()(const DocHtmlRow &tr)
void operator()(const DocWhiteSpace &w)
void operator()(const DocParBlock &pb)
void operator()(const DocSimpleListItem &li)
void operator()(const DocHtmlListItem &li)
void operator()(const DocCite &cite)
This is an alternative implementation of QCString.
Definition qcstring.h:101
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:150
const char * qPrint(const char *s)
Definition qcstring.h:672
#define TRUE
Definition qcstring.h:37
#define FALSE
Definition qcstring.h:34