Doxygen
Loading...
Searching...
No Matches
ManDocVisitor Class Referencefinal

Concrete visitor implementation for LaTeX output. More...

#include <src/mandocvisitor.h>

Inheritance diagram for ManDocVisitor:
Collaboration diagram for ManDocVisitor:

Classes

struct  ManListItemInfo

Public Member Functions

 ManDocVisitor (TextStream &t, OutputCodeList &ci, const QCString &langExt)
void operator() (const DocWord &)
void operator() (const DocLinkedWord &)
void operator() (const DocWhiteSpace &)
void operator() (const DocSymbol &)
void operator() (const DocEmoji &)
void operator() (const DocURL &)
void operator() (const DocLineBreak &)
void operator() (const DocHorRuler &)
void operator() (const DocStyleChange &)
void operator() (const DocVerbatim &)
void operator() (const DocAnchor &)
void operator() (const DocInclude &)
void operator() (const DocIncOperator &)
void operator() (const DocFormula &)
void operator() (const DocIndexEntry &)
void operator() (const DocSimpleSectSep &)
void operator() (const DocCite &)
void operator() (const DocSeparator &)
void operator() (const DocAutoList &)
void operator() (const DocAutoListItem &)
void operator() (const DocPara &)
void operator() (const DocRoot &)
void operator() (const DocSimpleSect &)
void operator() (const DocTitle &)
void operator() (const DocSimpleList &)
void operator() (const DocSimpleListItem &)
void operator() (const DocSection &s)
void operator() (const DocHtmlList &s)
void operator() (const DocHtmlListItem &)
void operator() (const DocHtmlDescList &)
void operator() (const DocHtmlDescTitle &)
void operator() (const DocHtmlDescData &)
void operator() (const DocHtmlTable &t)
void operator() (const DocHtmlCaption &)
void operator() (const DocHtmlRow &)
void operator() (const DocHtmlCell &)
void operator() (const DocInternal &)
void operator() (const DocHRef &)
void operator() (const DocHtmlSummary &)
void operator() (const DocHtmlDetails &)
void operator() (const DocHtmlHeader &)
void operator() (const DocImage &)
void operator() (const DocDotFile &)
void operator() (const DocMscFile &)
void operator() (const DocDiaFile &)
void operator() (const DocPlantUmlFile &)
void operator() (const DocMermaidFile &)
void operator() (const DocLink &lnk)
void operator() (const DocRef &ref)
void operator() (const DocSecRefItem &)
void operator() (const DocSecRefList &)
void operator() (const DocParamSect &)
void operator() (const DocParamList &)
void operator() (const DocXRefItem &)
void operator() (const DocInternalRef &)
void operator() (const DocText &)
void operator() (const DocHtmlBlockQuote &)
void operator() (const DocVhdlFlow &)
void operator() (const DocParBlock &)
Public Member Functions inherited from DocVisitor
 DocVisitor ()
virtual ~DocVisitor ()
CodeParserInterfacegetCodeParser (const QCString &langExt)
void pushHidden (bool hide)
bool popHidden ()

Private Member Functions

template<class T>
void visitChildren (const T &t)
void filter (const QCString &str, const bool retainNewline=false, const bool citeEntry=false)

Private Attributes

TextStreamm_t
OutputCodeListm_ci
bool m_insidePre
bool m_hide
bool m_firstCol
int m_indent
QCString m_langExt
std::array< ManListItemInfo, maxIndentLevelsm_listItemInfo

Static Private Attributes

static const int maxIndentLevels = 13

Detailed Description

Concrete visitor implementation for LaTeX output.

Definition at line 33 of file mandocvisitor.h.

Constructor & Destructor Documentation

◆ ManDocVisitor()

ManDocVisitor::ManDocVisitor ( TextStream & t,
OutputCodeList & ci,
const QCString & langExt )

Definition at line 33 of file mandocvisitor.cpp.

36 m_indent(0), m_langExt(langExt)
37{
38}
TextStream & m_t
OutputCodeList & m_ci
QCString m_langExt
#define FALSE
Definition qcstring.h:34

References FALSE, m_ci, m_firstCol, m_hide, m_indent, m_insidePre, m_langExt, and m_t.

Member Function Documentation

◆ filter()

void ManDocVisitor::filter ( const QCString & str,
const bool retainNewline = false,
const bool citeEntry = false )
private

Definition at line 995 of file mandocvisitor.cpp.

996{
997 if (!str.isEmpty())
998 {
999 const char *p=str.data();
1000 char c=0;
1001 bool insideDoubleQuote = false;
1002 while ((c=*p++))
1003 {
1004 switch(c)
1005 {
1006 case '.': m_t << "\\&."; break; // see bug652277
1007 case '\\': m_t << "\\\\"; break;
1008 case '\"': m_t << "\""; insideDoubleQuote = !insideDoubleQuote; break;
1009 case '\n': if (retainNewline || !insideDoubleQuote) m_t << c; break;
1010 case '&': // possibility to have a special symbol
1011 if (!citeEntry) { m_t << c; break;}
1012 p = writeHtmlEntity(m_t, p-1, [](HtmlEntityMapper::SymType symType) { return HtmlEntityMapper::instance().man(symType); }, "&");
1013 break;
1014 default: m_t << c; break;
1015 }
1016 }
1017 }
1018}
static HtmlEntityMapper & instance()
Returns the one and only instance of the HTML entity mapper.
const char * man(SymType symb) const
Access routine to the man code of the HTML entity.
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:167
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition qcstring.h:176
const char * writeHtmlEntity(T &result, const char *s, HtmlEntityMapperFunc &&mapper, const char *fallback)
Definition util.cpp:7034

References QCString::data(), HtmlEntityMapper::instance(), QCString::isEmpty(), m_t, HtmlEntityMapper::man(), and writeHtmlEntity().

Referenced by operator()(), operator()(), operator()(), operator()(), operator()(), and operator()().

◆ operator()() [1/59]

void ManDocVisitor::operator() ( const DocAnchor & )

Definition at line 256 of file mandocvisitor.cpp.

257{
258 /* no support for anchors in man pages */
259}

◆ operator()() [2/59]

void ManDocVisitor::operator() ( const DocAutoList & l)

Definition at line 450 of file mandocvisitor.cpp.

451{
452 if (m_hide) return;
453 m_indent++;
454 visitChildren(l);
455 m_indent--;
456 m_t << ".PP\n";
457}
void visitChildren(const T &t)

References m_hide, m_indent, m_t, and visitChildren().

◆ operator()() [3/59]

void ManDocVisitor::operator() ( const DocAutoListItem & li)

Definition at line 459 of file mandocvisitor.cpp.

460{
461 if (m_hide) return;
462 QCString ws;
463 if (m_indent>0) ws.fill(' ',2*(m_indent-1));
464 if (!m_firstCol) m_t << "\n";
465 m_t << ".IP \"" << ws;
466 const DocAutoList *list = std::get_if<DocAutoList>(li.parent());
467 if (list && list->isEnumList())
468 {
469 m_t << li.itemNumber() << ".\" " << (2*(m_indent+1));
470 }
471 else // bullet list
472 {
473 switch (li.itemNumber())
474 {
475 case DocAutoList::Unchecked: // unchecked
476 m_t << "[ ]\" " << (2*m_indent) + 2;
477 break;
478 case DocAutoList::Checked_x: // checked with x
479 m_t << "[x]\" " << (2*m_indent) + 2;
480 break;
481 case DocAutoList::Checked_X: // checked with X
482 m_t << "[X]\" " << (2*m_indent) + 2;
483 break;
484 default:
485 m_t << "\\(bu\" " << (2*m_indent);
486 break;
487 }
488 }
489 m_t << "\n";
491 visitChildren(li);
492 m_t << "\n";
494}
bool isEnumList() const
Definition docnode.h:580
int itemNumber() const
Definition docnode.h:598
DocNodeVariant * parent()
Definition docnode.h:90
QCString fill(char c, int len=-1)
Fills a string with a predefined character.
Definition qcstring.h:197
#define TRUE
Definition qcstring.h:37

References DocAutoList::Checked_X, DocAutoList::Checked_x, QCString::fill(), DocAutoList::isEnumList(), DocAutoListItem::itemNumber(), m_firstCol, m_hide, m_indent, m_t, DocNode::parent(), TRUE, DocAutoList::Unchecked, and visitChildren().

◆ operator()() [4/59]

void ManDocVisitor::operator() ( const DocCite & cite)

Definition at line 418 of file mandocvisitor.cpp.

419{
420 if (m_hide) return;
421 m_t << "\\fB";
422 auto opt = cite.option();
423 QCString txt;
424 if (!cite.file().isEmpty())
425 {
426 txt = cite.getText();
427 filter(txt, false, true);
428 }
429 else
430 {
431 if (!opt.noPar()) txt += "[";
432 txt += cite.target();
433 if (!opt.noPar()) txt += "]";
434 filter(txt);
435 }
436 m_t << "\\fP";
437}
QCString getText() const
Definition docnode.cpp:973
CiteInfoOption option() const
Definition docnode.h:253
QCString target() const
Definition docnode.h:252
QCString file() const
Definition docnode.h:248
void filter(const QCString &str, const bool retainNewline=false, const bool citeEntry=false)

References DocCite::file(), filter(), DocCite::getText(), QCString::isEmpty(), m_hide, m_t, DocCite::option(), and DocCite::target().

◆ operator()() [5/59]

void ManDocVisitor::operator() ( const DocDiaFile & )

Definition at line 831 of file mandocvisitor.cpp.

832{
833}

◆ operator()() [6/59]

void ManDocVisitor::operator() ( const DocDotFile & )

Definition at line 823 of file mandocvisitor.cpp.

824{
825}

◆ operator()() [7/59]

void ManDocVisitor::operator() ( const DocEmoji & s)

Definition at line 91 of file mandocvisitor.cpp.

92{
93 if (m_hide) return;
94 const char *res = EmojiEntityMapper::instance().name(s.index());
95 if (res)
96 {
97 m_t << res;
98 }
99 else
100 {
101 m_t << s.name();
102 }
104}
int index() const
Definition docnode.h:345
QCString name() const
Definition docnode.h:344
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

References FALSE, DocEmoji::index(), EmojiEntityMapper::instance(), m_firstCol, m_hide, m_t, DocEmoji::name(), and EmojiEntityMapper::name().

◆ operator()() [8/59]

void ManDocVisitor::operator() ( const DocFormula & f)

Definition at line 404 of file mandocvisitor.cpp.

405{
406 if (m_hide) return;
407 m_t << f.text();
408}
QCString text() const
Definition docnode.h:533

References m_hide, m_t, and DocFormula::text().

◆ operator()() [9/59]

void ManDocVisitor::operator() ( const DocHorRuler & )

Definition at line 120 of file mandocvisitor.cpp.

121{
122 if (m_hide) return;
123 if (!m_firstCol) m_t << "\n";
124 m_t << ".PP\n";
126}

References m_firstCol, m_hide, m_t, and TRUE.

◆ operator()() [10/59]

void ManDocVisitor::operator() ( const DocHRef & href)

Definition at line 767 of file mandocvisitor.cpp.

768{
769 if (m_hide) return;
770 m_t << "\\fR";
771 visitChildren(href);
772 m_t << "\\fP";
773}

References m_hide, m_t, and visitChildren().

◆ operator()() [11/59]

void ManDocVisitor::operator() ( const DocHtmlBlockQuote & q)

Definition at line 970 of file mandocvisitor.cpp.

971{
972 if (m_hide) return;
973 if (!m_firstCol)
974 {
975 m_t << "\n";
976 m_t << ".PP\n";
977 }
978 m_t << ".RS 4\n"; // TODO: add support for nested block quotes
979 visitChildren(q);
980 if (!m_firstCol) m_t << "\n";
981 m_t << ".RE\n";
982 m_t << ".PP\n";
984}

References m_firstCol, m_hide, m_t, TRUE, and visitChildren().

◆ operator()() [12/59]

void ManDocVisitor::operator() ( const DocHtmlCaption & c)

Definition at line 747 of file mandocvisitor.cpp.

748{
749 visitChildren(c);
750}

References visitChildren().

◆ operator()() [13/59]

void ManDocVisitor::operator() ( const DocHtmlCell & c)

Definition at line 757 of file mandocvisitor.cpp.

758{
759 visitChildren(c);
760}

References visitChildren().

◆ operator()() [14/59]

void ManDocVisitor::operator() ( const DocHtmlDescData & dd)

Definition at line 734 of file mandocvisitor.cpp.

735{
736 if (!m_firstCol) m_t << "\n";
737 m_t << ".IP \"\" 1c\n";
739 visitChildren(dd);
740}

References m_firstCol, m_t, TRUE, and visitChildren().

◆ operator()() [15/59]

void ManDocVisitor::operator() ( const DocHtmlDescList & dl)

Definition at line 713 of file mandocvisitor.cpp.

714{
715 if (m_hide) return;
716 m_indent+=2;
717 visitChildren(dl);
718 m_indent-=2;
719 if (!m_firstCol) m_t << "\n";
720 m_t << "\n.PP\n";
722}

References m_firstCol, m_hide, m_indent, m_t, TRUE, and visitChildren().

◆ operator()() [16/59]

void ManDocVisitor::operator() ( const DocHtmlDescTitle & dt)

Definition at line 724 of file mandocvisitor.cpp.

725{
726 if (m_hide) return;
727 if (!m_firstCol) m_t << "\n";
728 m_t << "\n.PP";
729 m_t << "\n.IP \"\\fB";
731 visitChildren(dt);
732}

References FALSE, m_firstCol, m_hide, m_t, and visitChildren().

◆ operator()() [17/59]

void ManDocVisitor::operator() ( const DocHtmlDetails & d)

Definition at line 782 of file mandocvisitor.cpp.

783{
784 if (m_hide) return;
785 if (!m_firstCol)
786 {
787 m_t << "\n";
788 m_t << ".PP\n";
789 }
790 auto summary = d.summary();
791 if (summary)
792 {
793 std::visit(*this,*summary);
794 m_t << ".PP\n";
795 m_t << ".RS 4\n";
796 }
797 visitChildren(d);
798 if (!m_firstCol) m_t << "\n";
799 if (summary)
800 {
801 m_t << ".RE\n";
802 }
803 m_t << ".PP\n";
805}
const DocNodeVariant * summary() const
Definition docnode.h:873

References m_firstCol, m_hide, m_t, DocHtmlDetails::summary(), TRUE, and visitChildren().

◆ operator()() [18/59]

void ManDocVisitor::operator() ( const DocHtmlHeader & header)

Definition at line 807 of file mandocvisitor.cpp.

808{
809 if (m_hide) return;
810 if (!m_firstCol) m_t << "\n";
811 if (header.level()==1) m_t << ".SH"; else m_t << ".SS";
812 m_t << " \"";
813 visitChildren(header);
814 m_t << "\"\n";
815 if (header.level()==1) m_t << ".PP\n";
817}
int level() const
Definition docnode.h:886

References DocHtmlHeader::level(), m_firstCol, m_hide, m_t, TRUE, and visitChildren().

◆ operator()() [19/59]

void ManDocVisitor::operator() ( const DocHtmlList & s)

Definition at line 629 of file mandocvisitor.cpp.

630{
631 if (m_hide) return;
632 m_indent++;
633 if (!m_firstCol) m_t << "\n";
634 m_t << ".PD 0\n";
635 m_firstCol=true;
636 int indent = std::min(m_indent,maxIndentLevels-1);
637 m_listItemInfo[indent].number = 1;
638 m_listItemInfo[indent].type = '1';
639 for (const auto &opt : l.attribs())
640 {
641 if (opt.name=="type")
642 {
643 m_listItemInfo[indent].type = opt.value[0];
644 }
645 if (opt.name=="start")
646 {
647 bool ok = false;
648 int val = opt.value.toInt(&ok);
649 if (ok) m_listItemInfo[indent].number = val;
650 }
651 }
652 visitChildren(l);
653 m_indent--;
654 if (!m_firstCol) m_t << "\n";
655 m_t << ".PP\n";
656}
std::array< ManListItemInfo, maxIndentLevels > m_listItemInfo
static const int maxIndentLevels

References DocHtmlList::attribs(), m_firstCol, m_hide, m_indent, m_listItemInfo, m_t, maxIndentLevels, and visitChildren().

◆ operator()() [20/59]

void ManDocVisitor::operator() ( const DocHtmlListItem & li)

Definition at line 658 of file mandocvisitor.cpp.

659{
660 if (m_hide) return;
661 QCString ws;
662 if (m_indent>0) ws.fill(' ',2*(m_indent-1));
663 if (!m_firstCol) m_t << "\n";
664 m_t << ".IP \"" << ws;
665 const DocHtmlList *list = std::get_if<DocHtmlList>(li.parent());
666 if (list && list->type()==DocHtmlList::Ordered)
667 {
668 int indent = std::min(m_indent,maxIndentLevels-1);
669 for (const auto &opt : li.attribs())
670 {
671 if (opt.name=="value")
672 {
673 bool ok = false;
674 int val = opt.value.toInt(&ok);
675 if (ok) m_listItemInfo[indent].number = val;
676 }
677 }
678 switch (m_listItemInfo[indent].type)
679 {
680 case '1':
681 m_t << m_listItemInfo[indent].number;
682 break;
683 case 'a':
684 m_t << integerToAlpha(m_listItemInfo[indent].number,false);
685 break;
686 case 'A':
687 m_t << integerToAlpha(m_listItemInfo[indent].number);
688 break;
689 case 'i':
690 m_t << integerToRoman(m_listItemInfo[indent].number,false);
691 break;
692 case 'I':
693 m_t << integerToRoman(m_listItemInfo[indent].number);
694 break;
695 default:
696 m_t << m_listItemInfo[indent].number;
697 break;
698 }
699 m_t << ".\" " << ((m_indent+1)*2);
700 m_listItemInfo[indent].number++;
701 }
702 else // bullet list
703 {
704 m_t << "\\(bu\" " << (m_indent*2);
705 }
706 m_t << "\n";
708 visitChildren(li);
709 m_t << "\n";
711}
Type type() const
Definition docnode.h:1014
const HtmlAttribList & attribs() const
Definition docnode.h:1175
QCString integerToRoman(int n, bool upper)
Definition util.cpp:6720
QCString integerToAlpha(int n, bool upper)
Definition util.cpp:6704

References DocHtmlListItem::attribs(), QCString::fill(), integerToAlpha(), integerToRoman(), m_firstCol, m_hide, m_indent, m_listItemInfo, m_t, maxIndentLevels, DocHtmlList::Ordered, DocNode::parent(), TRUE, DocHtmlList::type(), and visitChildren().

◆ operator()() [21/59]

void ManDocVisitor::operator() ( const DocHtmlRow & r)

Definition at line 752 of file mandocvisitor.cpp.

753{
754 visitChildren(r);
755}

References visitChildren().

◆ operator()() [22/59]

void ManDocVisitor::operator() ( const DocHtmlSummary & s)

Definition at line 775 of file mandocvisitor.cpp.

776{
777 m_t << "\\fB";
778 visitChildren(s);
779 m_t << "\\fP\n.PP\n";
780}

References m_t, and visitChildren().

◆ operator()() [23/59]

void ManDocVisitor::operator() ( const DocHtmlTable & t)

Definition at line 742 of file mandocvisitor.cpp.

743{
744 visitChildren(t);
745}

References visitChildren().

◆ operator()() [24/59]

void ManDocVisitor::operator() ( const DocImage & )

Definition at line 819 of file mandocvisitor.cpp.

820{
821}

◆ operator()() [25/59]

void ManDocVisitor::operator() ( const DocInclude & inc)

Definition at line 261 of file mandocvisitor.cpp.

262{
263 if (m_hide) return;
265 switch(inc.type())
266 {
268 {
269 if (!m_firstCol) m_t << "\n";
270 m_t << ".PP\n";
271 m_t << ".nf\n";
272 FileInfo cfi( inc.file().str() );
273 auto fd = createFileDef( cfi.dirPath(), cfi.fileName() );
275 inc.text(),
276 langExt,
277 inc.stripCodeComments(),
278 CodeParserOptions()
279 .setExample(inc.isExample(),inc.exampleFile())
280 .setFileDef(fd.get())
281 .setInlineFragment(true)
282 );
283 m_t << ".fi\n";
284 m_t << ".PP\n";
286 }
287 break;
289 if (!m_firstCol) m_t << "\n";
290 m_t << ".PP\n";
291 m_t << ".nf\n";
293 inc.text(),
294 langExt,
295 inc.stripCodeComments(),
296 CodeParserOptions()
297 .setExample(inc.isExample(),inc.exampleFile())
298 .setInlineFragment(true)
299 .setShowLineNumbers(false)
300 );
301 m_t << ".fi\n";
302 m_t << ".PP\n";
304 break;
312 break;
314 m_t << inc.text();
315 break;
317 if (!m_firstCol) m_t << "\n";
318 m_t << ".PP\n";
319 m_t << ".nf\n";
320 m_t << inc.text();
321 if (!m_firstCol) m_t << "\n";
322 m_t << ".fi\n";
323 m_t << ".PP\n";
325 break;
328 if (!m_firstCol) m_t << "\n";
329 m_t << ".PP\n";
330 m_t << ".nf\n";
332 inc.file(),
333 inc.blockId(),
334 inc.context(),
336 inc.trimLeft(),
338 );
339 m_t << ".fi\n";
340 m_t << ".PP\n";
342 break;
343 }
344}
void parseCodeFragment(OutputCodeList &codeOutList, const QCString &fileName, const QCString &blockId, const QCString &scopeName, bool showLineNumbers, bool trimLeft, bool stripCodeComments)
static CodeFragmentManager & instance()
virtual void parseCode(OutputCodeList &codeOutList, const QCString &scopeName, const QCString &input, SrcLangExt lang, bool stripCodeComments, const CodeParserOptions &options)=0
Parses a source file or fragment with the goal to produce highlighted and cross-referenced output.
QCString blockId() const
Definition docnode.h:454
QCString extension() const
Definition docnode.h:450
bool stripCodeComments() const
Definition docnode.h:455
@ 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 exampleFile() const
Definition docnode.h:457
QCString text() const
Definition docnode.h:452
QCString file() const
Definition docnode.h:449
bool trimLeft() const
Definition docnode.h:459
bool isExample() const
Definition docnode.h:456
QCString context() const
Definition docnode.h:453
CodeParserInterface & getCodeParser(const QCString &langExt)
const std::string & str() const
Definition qcstring.h:556
std::unique_ptr< FileDef > createFileDef(const QCString &p, const QCString &n, const QCString &ref, const QCString &dn)
Definition filedef.cpp:268
SrcLangExt
Definition types.h:207
SrcLangExt getLanguageFromFileName(const QCString &fileName, SrcLangExt defLang)
Definition util.cpp:5235

References DocInclude::blockId(), DocInclude::context(), createFileDef(), FileInfo::dirPath(), DocInclude::DocbookInclude, DocInclude::DontInclude, DocInclude::DontIncWithLines, DocInclude::exampleFile(), DocInclude::extension(), DocInclude::file(), FileInfo::fileName(), DocVisitor::getCodeParser(), getLanguageFromFileName(), DocInclude::HtmlInclude, DocInclude::Include, DocInclude::IncWithLines, CodeFragmentManager::instance(), DocInclude::isExample(), DocInclude::LatexInclude, m_ci, m_firstCol, m_hide, m_t, DocInclude::ManInclude, CodeParserInterface::parseCode(), CodeFragmentManager::parseCodeFragment(), DocInclude::RtfInclude, CodeParserOptions::setFileDef(), CodeParserOptions::setInlineFragment(), CodeParserOptions::setShowLineNumbers(), DocInclude::Snippet, DocInclude::SnippetWithLines, QCString::str(), DocInclude::stripCodeComments(), DocInclude::text(), DocInclude::trimLeft(), TRUE, DocInclude::type(), DocInclude::VerbInclude, and DocInclude::XmlInclude.

◆ operator()() [26/59]

void ManDocVisitor::operator() ( const DocIncOperator & op)

Definition at line 346 of file mandocvisitor.cpp.

347{
348 QCString locLangExt = getFileNameExtension(op.includeFileName());
349 if (locLangExt.isEmpty()) locLangExt = m_langExt;
350 SrcLangExt langExt = getLanguageFromFileName(locLangExt);
351 //printf("DocIncOperator: type=%d first=%d, last=%d text='%s'\n",
352 // op.type(),op.isFirst(),op.isLast(),qPrint(op.text()));
353 if (op.isFirst())
354 {
355 if (!m_hide)
356 {
357 if (!m_firstCol) m_t << "\n";
358 m_t << ".PP\n";
359 m_t << ".nf\n";
360 }
362 m_hide = TRUE;
363 }
364 if (op.type()!=DocIncOperator::Skip)
365 {
366 m_hide = popHidden();
367 if (!m_hide)
368 {
369 std::unique_ptr<FileDef> fd;
370 if (!op.includeFileName().isEmpty())
371 {
372 FileInfo cfi( op.includeFileName().str() );
373 fd = createFileDef( cfi.dirPath(), cfi.fileName() );
374 }
375
376 getCodeParser(locLangExt).parseCode(m_ci,op.context(),op.text(),langExt,
378 CodeParserOptions()
379 .setExample(op.isExample(),op.exampleFile())
380 .setFileDef(fd.get())
381 .setShowLineNumbers(op.showLineNo())
382 );
383 }
385 m_hide=TRUE;
386 }
387 if (op.isLast())
388 {
389 m_hide = popHidden();
390 if (!m_hide)
391 {
392 if (!m_firstCol) m_t << "\n";
393 m_t << ".fi\n";
394 m_t << ".PP\n";
396 }
397 }
398 else
399 {
400 if (!m_hide) m_t << "\n";
401 }
402}
bool stripCodeComments() const
Definition docnode.h:506
bool isLast() const
Definition docnode.h:503
QCString includeFileName() const
Definition docnode.h:509
QCString text() const
Definition docnode.h:499
QCString context() const
Definition docnode.h:501
QCString exampleFile() const
Definition docnode.h:508
Type type() const
Definition docnode.h:485
bool isFirst() const
Definition docnode.h:502
bool showLineNo() const
Definition docnode.h:498
bool isExample() const
Definition docnode.h:507
void pushHidden(bool hide)
bool popHidden()
QCString getFileNameExtension(const QCString &fn)
Definition util.cpp:5277

References DocIncOperator::context(), createFileDef(), FileInfo::dirPath(), DocIncOperator::exampleFile(), FileInfo::fileName(), DocVisitor::getCodeParser(), getFileNameExtension(), getLanguageFromFileName(), DocIncOperator::includeFileName(), QCString::isEmpty(), DocIncOperator::isExample(), DocIncOperator::isFirst(), DocIncOperator::isLast(), m_ci, m_firstCol, m_hide, m_langExt, m_t, CodeParserInterface::parseCode(), DocVisitor::popHidden(), DocVisitor::pushHidden(), CodeParserOptions::setFileDef(), CodeParserOptions::setShowLineNumbers(), DocIncOperator::showLineNo(), DocIncOperator::Skip, QCString::str(), DocIncOperator::stripCodeComments(), DocIncOperator::text(), TRUE, and DocIncOperator::type().

◆ operator()() [27/59]

void ManDocVisitor::operator() ( const DocIndexEntry & )

Definition at line 410 of file mandocvisitor.cpp.

411{
412}

◆ operator()() [28/59]

void ManDocVisitor::operator() ( const DocInternal & i)

Definition at line 762 of file mandocvisitor.cpp.

763{
764 visitChildren(i);
765}

References visitChildren().

◆ operator()() [29/59]

void ManDocVisitor::operator() ( const DocInternalRef & ref)

Definition at line 957 of file mandocvisitor.cpp.

958{
959 if (m_hide) return;
960 m_t << "\\fB";
961 visitChildren(ref);
962 m_t << "\\fP";
963}

References m_hide, m_t, and visitChildren().

◆ operator()() [30/59]

void ManDocVisitor::operator() ( const DocLineBreak & )

Definition at line 113 of file mandocvisitor.cpp.

114{
115 if (m_hide) return;
116 m_t << "\n.br\n";
118}

References m_firstCol, m_hide, m_t, and TRUE.

◆ operator()() [31/59]

void ManDocVisitor::operator() ( const DocLink & lnk)

Definition at line 843 of file mandocvisitor.cpp.

844{
845 if (m_hide) return;
846 m_t << "\\fB";
847 visitChildren(dl);
848 m_t << "\\fP";
849}

References m_hide, m_t, and visitChildren().

◆ operator()() [32/59]

void ManDocVisitor::operator() ( const DocLinkedWord & w)

Definition at line 51 of file mandocvisitor.cpp.

52{
53 if (m_hide) return;
54 m_t << "\\fB";
55 filter(w.word());
56 m_t << "\\fP";
58}
QCString word() const
Definition docnode.h:170

References FALSE, filter(), m_firstCol, m_hide, m_t, and DocLinkedWord::word().

◆ operator()() [33/59]

void ManDocVisitor::operator() ( const DocMermaidFile & )

Definition at line 839 of file mandocvisitor.cpp.

840{
841}

◆ operator()() [34/59]

void ManDocVisitor::operator() ( const DocMscFile & )

Definition at line 827 of file mandocvisitor.cpp.

828{
829}

◆ operator()() [35/59]

void ManDocVisitor::operator() ( const DocPara & p)

Definition at line 496 of file mandocvisitor.cpp.

497{
498 if (m_hide) return;
499 visitChildren(p);
500 if (!p.isLast() && // omit <p> for last paragraph
501 !(p.parent() && // and for parameter sections
502 std::get_if<DocParamSect>(p.parent())
503 )
504 )
505 {
506 if (!m_firstCol) m_t << "\n";
507 m_t << "\n.PP\n";
509 }
510}
bool isLast() const
Definition docnode.h:1097

References DocPara::isLast(), m_firstCol, m_hide, m_t, DocNode::parent(), TRUE, and visitChildren().

◆ operator()() [36/59]

void ManDocVisitor::operator() ( const DocParamList & pl)

Definition at line 914 of file mandocvisitor.cpp.

915{
916 if (m_hide) return;
917 m_t << "\\fI";
918 bool first=TRUE;
919 for (const auto &param : pl.parameters())
920 {
921 if (!first) m_t << ","; else first=FALSE;
922 std::visit(*this,param);
923 }
924 m_t << "\\fP ";
925 for (const auto &par : pl.paragraphs())
926 {
927 std::visit(*this,par);
928 }
929 if (!pl.isLast())
930 {
931 if (!m_firstCol) m_t << "\n";
932 m_t << ".br\n";
933 }
934}
const DocNodeList & parameters() const
Definition docnode.h:1134
bool isLast() const
Definition docnode.h:1142
const DocNodeList & paragraphs() const
Definition docnode.h:1136

References FALSE, DocParamList::isLast(), m_firstCol, m_hide, m_t, DocParamList::paragraphs(), DocParamList::parameters(), and TRUE.

◆ operator()() [37/59]

void ManDocVisitor::operator() ( const DocParamSect & s)

Definition at line 883 of file mandocvisitor.cpp.

884{
885 if (m_hide) return;
886 if (!m_firstCol)
887 {
888 m_t << "\n";
889 m_t << ".PP\n";
890 }
891 m_t << "\\fB";
892 switch(s.type())
893 {
895 m_t << theTranslator->trParameters(); break;
897 m_t << theTranslator->trReturnValues(); break;
899 m_t << theTranslator->trExceptions(); break;
902 default:
903 ASSERT(0);
904 }
905 m_t << "\\fP\n";
906 m_t << ".RS 4\n";
907 visitChildren(s);
908 if (!m_firstCol) m_t << "\n";
909 m_t << ".RE\n";
910 m_t << ".PP\n";
912}
Type type() const
Definition docnode.h:1077
virtual QCString trExceptions()=0
virtual QCString trParameters()=0
virtual QCString trTemplateParameters()=0
virtual QCString trReturnValues()=0
Translator * theTranslator
Definition language.cpp:71
#define ASSERT(x)
Definition qcstring.h:39

References ASSERT, DocParamSect::Exception, m_firstCol, m_hide, m_t, DocParamSect::Param, DocParamSect::RetVal, DocParamSect::TemplateParam, theTranslator, TRUE, DocParamSect::type(), and visitChildren().

◆ operator()() [38/59]

void ManDocVisitor::operator() ( const DocParBlock & pb)

Definition at line 990 of file mandocvisitor.cpp.

991{
992 visitChildren(pb);
993}

References visitChildren().

◆ operator()() [39/59]

void ManDocVisitor::operator() ( const DocPlantUmlFile & )

Definition at line 835 of file mandocvisitor.cpp.

836{
837}

◆ operator()() [40/59]

void ManDocVisitor::operator() ( const DocRef & ref)

Definition at line 851 of file mandocvisitor.cpp.

852{
853 if (m_hide) return;
854 m_t << "\\fB";
855 if (!ref.hasLinkText()) filter(ref.targetTitle());
856 visitChildren(ref);
857 m_t << "\\fP";
858}
QCString targetTitle() const
Definition docnode.h:795
bool hasLinkText() const
Definition docnode.h:797

References filter(), DocRef::hasLinkText(), m_hide, m_t, DocRef::targetTitle(), and visitChildren().

◆ operator()() [41/59]

void ManDocVisitor::operator() ( const DocRoot & r)

Definition at line 512 of file mandocvisitor.cpp.

513{
514 visitChildren(r);
515}

References visitChildren().

◆ operator()() [42/59]

void ManDocVisitor::operator() ( const DocSecRefItem & ref)

Definition at line 860 of file mandocvisitor.cpp.

861{
862 if (m_hide) return;
863 QCString ws;
864 if (m_indent>0) ws.fill(' ',2*(m_indent-1));
865 if (!m_firstCol) m_t << "\n";
866 m_t << ".IP \"" << ws << "\\(bu\" " << (2*m_indent) << "\n";
868 visitChildren(ref);
869 m_t << "\n";
871}

References QCString::fill(), m_firstCol, m_hide, m_indent, m_t, TRUE, and visitChildren().

◆ operator()() [43/59]

void ManDocVisitor::operator() ( const DocSecRefList & l)

Definition at line 873 of file mandocvisitor.cpp.

874{
875 if (m_hide) return;
876 m_indent++;
877 visitChildren(l);
878 m_indent--;
879 if (!m_firstCol) m_t << "\n";
880 m_t << ".PP\n";
881}

References m_firstCol, m_hide, m_indent, m_t, and visitChildren().

◆ operator()() [44/59]

void ManDocVisitor::operator() ( const DocSection & s)

Definition at line 613 of file mandocvisitor.cpp.

614{
615 if (m_hide) return;
616 if (!m_firstCol) m_t << "\n";
617 if (s.level()==1) m_t << ".SH"; else m_t << ".SS";
618 m_t << " \"";
619 if (s.title())
620 {
621 std::visit(*this,*s.title());
622 }
623 m_t << "\"\n";
624 if (s.level()==1) m_t << ".PP\n";
626 visitChildren(s);
627}
int level() const
Definition docnode.h:927
const DocNodeVariant * title() const
Definition docnode.h:928

References DocSection::level(), m_firstCol, m_hide, m_t, DocSection::title(), TRUE, and visitChildren().

◆ operator()() [45/59]

void ManDocVisitor::operator() ( const DocSeparator & s)

Definition at line 439 of file mandocvisitor.cpp.

440{
441 if (m_hide) return;
442 m_t << s.chars();
443}
QCString chars() const
Definition docnode.h:369

References DocSeparator::chars(), m_hide, and m_t.

◆ operator()() [46/59]

void ManDocVisitor::operator() ( const DocSimpleList & l)

Definition at line 585 of file mandocvisitor.cpp.

586{
587 if (m_hide) return;
588 m_indent++;
589 if (!m_firstCol) m_t << "\n";
590 m_t << ".PD 0\n";
591 m_firstCol=true;
592 visitChildren(l);
593 m_indent--;
594 m_t << ".PP\n";
595}

References m_firstCol, m_hide, m_indent, m_t, and visitChildren().

◆ operator()() [47/59]

void ManDocVisitor::operator() ( const DocSimpleListItem & li)

Definition at line 597 of file mandocvisitor.cpp.

598{
599 if (m_hide) return;
600 QCString ws;
601 if (m_indent>0) ws.fill(' ',2*(m_indent-1));
602 if (!m_firstCol) m_t << "\n";
603 m_t << ".IP \"" << ws << "\\(bu\" " << m_indent << "\n";
605 if (li.paragraph())
606 {
607 visit(*this,*li.paragraph());
608 }
609 m_t << "\n";
611}
const DocNodeVariant * paragraph() const
Definition docnode.h:1162

References QCString::fill(), m_firstCol, m_hide, m_indent, m_t, DocSimpleListItem::paragraph(), and TRUE.

◆ operator()() [48/59]

void ManDocVisitor::operator() ( const DocSimpleSect & s)

Definition at line 517 of file mandocvisitor.cpp.

518{
519 if (m_hide) return;
520 if (!m_firstCol)
521 {
522 m_t << "\n";
523 m_t << ".PP\n";
524 }
525 m_t << "\\fB";
526 switch(s.type())
527 {
529 m_t << theTranslator->trSeeAlso(); break;
531 m_t << theTranslator->trReturns(); break;
533 m_t << theTranslator->trAuthor(TRUE,TRUE); break;
535 m_t << theTranslator->trAuthor(TRUE,FALSE); break;
537 m_t << theTranslator->trVersion(); break;
539 m_t << theTranslator->trSince(); break;
541 m_t << theTranslator->trDate(); break;
543 m_t << theTranslator->trNote(); break;
545 m_t << theTranslator->trWarning(); break;
547 m_t << theTranslator->trPrecondition(); break;
549 m_t << theTranslator->trPostcondition(); break;
551 m_t << theTranslator->trCopyright(); break;
553 m_t << theTranslator->trInvariant(); break;
555 m_t << theTranslator->trRemarks(); break;
557 m_t << theTranslator->trAttention(); break;
559 m_t << theTranslator->trImportant(); break;
560 case DocSimpleSect::User: break;
561 case DocSimpleSect::Rcs: break;
562 case DocSimpleSect::Unknown: break;
563 }
564
565 // special case 1: user defined title
566 if (s.title())
567 {
568 std::visit(*this,*s.title());
569 }
570 m_t << "\\fP\n";
571 m_t << ".RS 4\n";
572 visitChildren(s);
573 if (!m_firstCol) m_t << "\n";
574 m_t << ".RE\n";
575 m_t << ".PP\n";
577}
Type type() const
Definition docnode.h:1035
const DocNodeVariant * title() const
Definition docnode.h:1042
virtual QCString trPrecondition()=0
virtual QCString trSince()=0
virtual QCString trVersion()=0
virtual QCString trReturns()=0
virtual QCString trRemarks()=0
virtual QCString trNote()=0
virtual QCString trPostcondition()=0
virtual QCString trAttention()=0
virtual QCString trCopyright()=0
virtual QCString trDate()=0
virtual QCString trAuthor(bool first_capital, bool singular)=0
virtual QCString trWarning()=0
virtual QCString trSeeAlso()=0
virtual QCString trImportant()=0
virtual QCString trInvariant()=0

References DocSimpleSect::Attention, DocSimpleSect::Author, DocSimpleSect::Authors, DocSimpleSect::Copyright, DocSimpleSect::Date, FALSE, DocSimpleSect::Important, DocSimpleSect::Invar, m_firstCol, m_hide, m_t, DocSimpleSect::Note, DocSimpleSect::Post, DocSimpleSect::Pre, DocSimpleSect::Rcs, DocSimpleSect::Remark, DocSimpleSect::Return, DocSimpleSect::See, DocSimpleSect::Since, theTranslator, DocSimpleSect::title(), TRUE, DocSimpleSect::type(), DocSimpleSect::Unknown, DocSimpleSect::User, DocSimpleSect::Version, visitChildren(), and DocSimpleSect::Warning.

◆ operator()() [49/59]

void ManDocVisitor::operator() ( const DocSimpleSectSep & )

Definition at line 414 of file mandocvisitor.cpp.

415{
416}

◆ operator()() [50/59]

void ManDocVisitor::operator() ( const DocStyleChange & s)

Definition at line 128 of file mandocvisitor.cpp.

129{
130 if (m_hide) return;
131 switch (s.style())
132 {
134 if (s.enable()) m_t << "\\fB"; else m_t << "\\fP";
136 break;
140 /* not supported */
141 break;
142 case DocStyleChange::Underline: //underline is shown as emphasis
144 if (s.enable()) m_t << "\\fI"; else m_t << "\\fP";
146 break;
148 if (s.enable()) m_t << "\\fI"; else m_t << "\\fP";
150 break;
154 if (s.enable()) m_t << "\\fR"; else m_t << "\\fP";
156 break;
158 if (s.enable()) m_t << "\\*<"; else m_t << "\\*> ";
160 break;
162 if (s.enable()) m_t << "\\*{"; else m_t << "\\*} ";
164 break;
166 /* not supported */
167 break;
169 /* not supported */
170 break;
172 /* not supported */
173 break;
175 if (s.enable())
176 {
177 if (!m_firstCol) m_t << "\n";
178 m_t << ".PP\n";
179 m_t << ".nf\n";
181 }
182 else
183 {
185 if (!m_firstCol) m_t << "\n";
186 m_t << ".fi\n";
187 m_t << ".PP\n";
189 }
190 break;
191 case DocStyleChange::Div: /* HTML only */ break;
192 case DocStyleChange::Span: /* HTML only */ break;
193 }
194}
Style style() const
Definition docnode.h:307
bool enable() const
Definition docnode.h:309

References DocStyleChange::Bold, DocStyleChange::Center, DocStyleChange::Cite, DocStyleChange::Code, DocStyleChange::Del, DocStyleChange::Div, DocStyleChange::enable(), FALSE, DocStyleChange::Ins, DocStyleChange::Italic, DocStyleChange::Kbd, m_firstCol, m_hide, m_insidePre, m_t, DocStyleChange::Preformatted, DocStyleChange::S, DocStyleChange::Small, DocStyleChange::Span, DocStyleChange::Strike, DocStyleChange::style(), DocStyleChange::Subscript, DocStyleChange::Superscript, TRUE, DocStyleChange::Typewriter, and DocStyleChange::Underline.

◆ operator()() [51/59]

void ManDocVisitor::operator() ( const DocSymbol & s)

Definition at line 75 of file mandocvisitor.cpp.

76{
77 if (m_hide) return;
78 const char *res = HtmlEntityMapper::instance().man(s.symbol());
79 if (res)
80 {
81 m_t << res;
82 }
83 else
84 {
85 // no error or warning to be supplied
86 // err("man: non supported HTML-entity found: &{};\n",get_symbol_item(s->symbol()));
87 }
89}
HtmlEntityMapper::SymType symbol() const
Definition docnode.h:332

References FALSE, HtmlEntityMapper::instance(), m_firstCol, m_hide, m_t, HtmlEntityMapper::man(), and DocSymbol::symbol().

◆ operator()() [52/59]

void ManDocVisitor::operator() ( const DocText & t)

Definition at line 965 of file mandocvisitor.cpp.

966{
967 visitChildren(t);
968}

References visitChildren().

◆ operator()() [53/59]

void ManDocVisitor::operator() ( const DocTitle & t)

Definition at line 579 of file mandocvisitor.cpp.

580{
581 if (m_hide) return;
582 visitChildren(t);
583}

References m_hide, and visitChildren().

◆ operator()() [54/59]

void ManDocVisitor::operator() ( const DocURL & u)

Definition at line 106 of file mandocvisitor.cpp.

107{
108 if (m_hide) return;
109 m_t << u.url();
111}
QCString url() const
Definition docnode.h:192

References FALSE, m_firstCol, m_hide, m_t, and DocURL::url().

◆ operator()() [55/59]

void ManDocVisitor::operator() ( const DocVerbatim & s)

Definition at line 196 of file mandocvisitor.cpp.

197{
198 if (m_hide) return;
199 QCString lang = m_langExt;
200 if (!s.language().isEmpty()) // explicit language setting
201 {
202 lang = s.language();
203 }
204 SrcLangExt langExt = getLanguageFromCodeLang(lang);
205 switch (s.type())
206 {
208 if (!m_firstCol) m_t << "\n";
209 m_t << ".PP\n";
210 m_t << ".nf\n";
212 langExt,
213 Config_getBool(STRIP_CODE_COMMENTS),
214 CodeParserOptions().setExample(s.isExample(),s.exampleFile())
215 );
216 if (!m_firstCol) m_t << "\n";
217 m_t << ".fi\n";
218 m_t << ".PP\n";
220 break;
222 filter(s.text(),true);
223 break;
225 m_t << "\\fR\n";
226 filter(s.text(),true);
227 m_t << "\\fP\n";
228 break;
230 if (!m_firstCol) m_t << "\n";
231 m_t << ".PP\n";
232 m_t << ".nf\n";
233 filter(s.text(),true);
234 if (!m_firstCol) m_t << "\n";
235 m_t << ".fi\n";
236 m_t << ".PP\n";
238 break;
240 m_t << s.text();
241 break;
247 case DocVerbatim::Dot:
248 case DocVerbatim::Msc:
251 /* nothing */
252 break;
253 }
254}
QCString language() const
Definition docnode.h:388
bool isExample() const
Definition docnode.h:385
QCString context() const
Definition docnode.h:384
Type type() const
Definition docnode.h:382
QCString text() const
Definition docnode.h:383
QCString exampleFile() const
Definition docnode.h:386
@ JavaDocLiteral
Definition docnode.h:378
#define Config_getBool(name)
Definition config.h:33
SrcLangExt getLanguageFromCodeLang(QCString &fileName)
Routine to handle the language attribute of the \code command.
Definition util.cpp:5253

References DocVerbatim::Code, Config_getBool, DocVerbatim::context(), DocVerbatim::DocbookOnly, DocVerbatim::Dot, DocVerbatim::exampleFile(), filter(), DocVisitor::getCodeParser(), getLanguageFromCodeLang(), DocVerbatim::HtmlOnly, QCString::isEmpty(), DocVerbatim::isExample(), DocVerbatim::JavaDocCode, DocVerbatim::JavaDocLiteral, DocVerbatim::language(), DocVerbatim::LatexOnly, m_ci, m_firstCol, m_hide, m_langExt, m_t, DocVerbatim::ManOnly, DocVerbatim::Mermaid, DocVerbatim::Msc, CodeParserInterface::parseCode(), DocVerbatim::PlantUML, DocVerbatim::RtfOnly, DocVerbatim::text(), TRUE, DocVerbatim::type(), DocVerbatim::Verbatim, and DocVerbatim::XmlOnly.

◆ operator()() [56/59]

void ManDocVisitor::operator() ( const DocVhdlFlow & )

Definition at line 986 of file mandocvisitor.cpp.

987{
988}

◆ operator()() [57/59]

void ManDocVisitor::operator() ( const DocWhiteSpace & w)

Definition at line 60 of file mandocvisitor.cpp.

61{
62 if (m_hide) return;
63 if (m_insidePre)
64 {
65 m_t << w.chars();
66 m_firstCol=w.chars().at(w.chars().length()-1)=='\n';
67 }
68 else
69 {
70 m_t << " ";
72 }
73}
QCString chars() const
Definition docnode.h:358
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition qcstring.h:170
char & at(size_t i)
Returns a reference to the character at index i.
Definition qcstring.h:597

References QCString::at(), DocWhiteSpace::chars(), FALSE, QCString::length(), m_firstCol, m_hide, m_insidePre, and m_t.

◆ operator()() [58/59]

void ManDocVisitor::operator() ( const DocWord & w)

Definition at line 44 of file mandocvisitor.cpp.

45{
46 if (m_hide) return;
47 filter(w.word());
49}
QCString word() const
Definition docnode.h:156

References FALSE, filter(), m_firstCol, m_hide, and DocWord::word().

◆ operator()() [59/59]

void ManDocVisitor::operator() ( const DocXRefItem & x)

Definition at line 936 of file mandocvisitor.cpp.

937{
938 if (m_hide) return;
939 if (x.title().isEmpty()) return;
940 if (!m_firstCol)
941 {
942 m_t << "\n";
943 m_t << ".PP\n";
944 }
945 m_t << "\\fB";
946 filter(x.title());
947 m_t << "\\fP\n";
948 m_t << ".RS 4\n";
949 visitChildren(x);
950 if (x.title().isEmpty()) return;
951 if (!m_firstCol) m_t << "\n";
952 m_t << ".RE\n";
953 m_t << ".PP\n";
955}
QCString title() const
Definition docnode.h:626

References filter(), QCString::isEmpty(), m_firstCol, m_hide, m_t, DocXRefItem::title(), TRUE, and visitChildren().

◆ visitChildren()

template<class T>
void ManDocVisitor::visitChildren ( const T & t)
inlineprivate

Member Data Documentation

◆ m_ci

OutputCodeList& ManDocVisitor::m_ci
private

Definition at line 128 of file mandocvisitor.h.

Referenced by ManDocVisitor(), operator()(), operator()(), and operator()().

◆ m_firstCol

◆ m_hide

◆ m_indent

int ManDocVisitor::m_indent
private

◆ m_insidePre

bool ManDocVisitor::m_insidePre
private

Definition at line 129 of file mandocvisitor.h.

Referenced by ManDocVisitor(), operator()(), and operator()().

◆ m_langExt

QCString ManDocVisitor::m_langExt
private

Definition at line 133 of file mandocvisitor.h.

Referenced by ManDocVisitor(), operator()(), and operator()().

◆ m_listItemInfo

std::array<ManListItemInfo,maxIndentLevels> ManDocVisitor::m_listItemInfo
private

Definition at line 142 of file mandocvisitor.h.

Referenced by operator()(), and operator()().

◆ m_t

◆ maxIndentLevels

const int ManDocVisitor::maxIndentLevels = 13
staticprivate

Definition at line 140 of file mandocvisitor.h.

Referenced by operator()(), and operator()().


The documentation for this class was generated from the following files: