Doxygen
Loading...
Searching...
No Matches
RTFDocVisitor Class Reference

Concrete visitor implementation for RTF output. More...

#include <src/rtfdocvisitor.h>

Inheritance diagram for RTFDocVisitor:
Collaboration diagram for RTFDocVisitor:

Classes

struct  RTFListItemInfo

Public Member Functions

 RTFDocVisitor (TextStream &t, OutputCodeList &ci, const QCString &langExt, int hierarchyLevel=0)
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 &)
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, bool verbatim=FALSE)
void startLink (const QCString &ref, const QCString &file, const QCString &anchor)
void endLink (const QCString &ref)
QCString getStyle (const QCString &name)
QCString getListTable (const int id)
int indentLevel () const
void incIndentLevel ()
void decIndentLevel ()
void includePicturePreRTF (const QCString &name, bool isTypeRTF, bool hasCaption, bool inlineImage=FALSE)
void includePicturePostRTF (bool isTypeRTF, bool hasCaption, bool inlineImage=FALSE)
void writeDotFile (const QCString &fileName, bool hasCaption, const QCString &srcFile, int srcLine, bool newFile=true)
void writeMscFile (const QCString &fileName, bool hasCaption, const QCString &srcFile, int srcLine, bool newFile=true)
void writeDiaFile (const QCString &fileName, bool hasCaption, const QCString &srcFile, int srcLine, bool newFile=true)
void writePlantUMLFile (const QCString &fileName, bool hasCaption)
void writeMermaidFile (const QCString &fileName, bool hasCaption)

Private Attributes

TextStreamm_t
OutputCodeListm_ci
bool m_insidePre = false
bool m_hide = false
bool m_lastIsPara = false
QCString m_langExt
int m_indentLevel = 0
int m_hierarchyLevel = 0
RTFListItemInfo m_listItemInfo [maxIndentLevels]

Static Private Attributes

static const int maxIndentLevels = 13

Detailed Description

Concrete visitor implementation for RTF output.

Definition at line 31 of file rtfdocvisitor.h.

Constructor & Destructor Documentation

◆ RTFDocVisitor()

RTFDocVisitor::RTFDocVisitor ( TextStream & t,
OutputCodeList & ci,
const QCString & langExt,
int hierarchyLevel = 0 )

Definition at line 60 of file rtfdocvisitor.cpp.

62 : m_t(t), m_ci(ci), m_langExt(langExt), m_hierarchyLevel(hierarchyLevel)
63{
64}
QCString m_langExt
OutputCodeList & m_ci
TextStream & m_t

References m_ci, m_hierarchyLevel, m_langExt, and m_t.

Member Function Documentation

◆ decIndentLevel()

void RTFDocVisitor::decIndentLevel ( )
private

◆ endLink()

void RTFDocVisitor::endLink ( const QCString & ref)
private

Definition at line 1748 of file rtfdocvisitor.cpp.

1749{
1750 if (ref.isEmpty() && Config_getBool(RTF_HYPERLINKS))
1751 {
1752 m_t << "}}}";
1753 }
1754 else
1755 {
1756 m_t << "}";
1757 }
1759}
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:163
#define Config_getBool(name)
Definition config.h:33
#define FALSE
Definition qcstring.h:34

References Config_getBool, FALSE, QCString::isEmpty(), m_lastIsPara, and m_t.

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

◆ filter()

void RTFDocVisitor::filter ( const QCString & str,
bool verbatim = FALSE )
private

Definition at line 1690 of file rtfdocvisitor.cpp.

1691{
1692 if (!str.isEmpty())
1693 {
1694 const char *p=str.data();
1695 while (*p)
1696 {
1697 char c=*p++;
1698 switch (c)
1699 {
1700 case '{': m_t << "\\{"; break;
1701 case '}': m_t << "\\}"; break;
1702 case '\\': m_t << "\\\\"; break;
1703 case '\n': if (verbatim)
1704 {
1705 m_t << "\\par\n";
1706 }
1707 else
1708 {
1709 m_t << '\n';
1710 }
1711 break;
1712 default: m_t << c;
1713 }
1714 }
1715 }
1716}
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:172

References QCString::data(), QCString::isEmpty(), and m_t.

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

◆ getListTable()

QCString RTFDocVisitor::getListTable ( const int id)
private

Definition at line 73 of file rtfdocvisitor.cpp.

74{
75 for (int i=0 ; rtf_Table_Default[i].definition ; i++ )
76 {
77 if ((id == rtf_Table_Default[i].id) && (m_indentLevel == rtf_Table_Default[i].lvl))
78 {
79 return rtf_Table_Default[i].place;
80 }
81 }
82 ASSERT(0);
83 return "";
84}
#define ASSERT(x)
Definition qcstring.h:39
Rtf_Table_Default rtf_Table_Default[]
Definition rtfstyle.cpp:245
const char * definition
Definition rtfstyle.h:50
const char * place
Definition rtfstyle.h:51

References ASSERT, m_indentLevel, and rtf_Table_Default.

Referenced by operator()().

◆ getStyle()

QCString RTFDocVisitor::getStyle ( const QCString & name)
private

Definition at line 66 of file rtfdocvisitor.cpp.

67{
68 QCString n = name + QCString().setNum(indentLevel());
69 StyleData &sd = rtf_Style[n.str()];
70 return sd.reference();
71}
const std::string & str() const
Definition qcstring.h:552
QCString & setNum(short n)
Definition qcstring.h:459
int indentLevel() const
StyleDataMap rtf_Style
Definition rtfstyle.cpp:362
QCString reference() const
Definition rtfstyle.h:69

References indentLevel(), StyleData::reference(), rtf_Style, QCString::setNum(), and QCString::str().

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

◆ incIndentLevel()

void RTFDocVisitor::incIndentLevel ( )
private

Definition at line 91 of file rtfdocvisitor.cpp.

92{
95 {
96 err("Maximum indent level ({}) exceeded while generating RTF output!\n",maxIndentLevels-1);
97 }
98}
static const int maxIndentLevels
#define err(fmt,...)
Definition message.h:127

References err, m_indentLevel, and maxIndentLevels.

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

◆ includePicturePostRTF()

void RTFDocVisitor::includePicturePostRTF ( bool isTypeRTF,
bool hasCaption,
bool inlineImage = FALSE )
private

Definition at line 1220 of file rtfdocvisitor.cpp.

1221{
1222 if (isTypeRTF)
1223 {
1224 if (m_hide) return;
1225 if (inlineImage)
1226 {
1227 if (hasCaption) m_t << " }";
1228 }
1229 else
1230 {
1231 if (hasCaption)
1232 {
1233 m_t << "}\n";
1234 m_t << "\\par}\n";
1235 }
1236 else
1237 {
1238 m_t << "}\n";
1239 }
1240 }
1241 }
1242 else
1243 {
1244 m_hide = popHidden();
1245 }
1246}
bool popHidden()

References m_hide, m_t, and DocVisitor::popHidden().

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

◆ includePicturePreRTF()

void RTFDocVisitor::includePicturePreRTF ( const QCString & name,
bool isTypeRTF,
bool hasCaption,
bool inlineImage = FALSE )
private

Definition at line 1183 of file rtfdocvisitor.cpp.

1184{
1185 if (isTypeRTF)
1186 {
1187 if (!inlineImage)
1188 {
1189 m_t << "\\par\n";
1190 m_t << "{\n";
1191 m_t << rtf_Style_Reset << "\n";
1192 if (hasCaption || m_lastIsPara) m_t << "\\par\n";
1193 m_t << "\\pard \\qc ";
1194 }
1195 m_t << "{ \\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
1196 m_t << name;
1197 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt Image}}\n";
1198 if (!inlineImage)
1199 {
1200 m_t << "\\par\n";
1201 if (hasCaption)
1202 {
1203 m_t << "\\pard \\qc \\b";
1204 m_t << "{Image \\field\\flddirty{\\*\\fldinst { SEQ Image \\\\*Arabic }}{\\fldrslt {\\noproof 1}} ";
1205 }
1207 }
1208 else
1209 {
1210 if (hasCaption) m_t << "{\\comment "; // to prevent caption to be shown
1211 }
1212 }
1213 else // other format -> skip
1214 {
1216 m_hide=TRUE;
1217 }
1218}
void pushHidden(bool hide)
#define TRUE
Definition qcstring.h:37
char rtf_Style_Reset[]
Definition rtfstyle.cpp:49

References m_hide, m_lastIsPara, m_t, DocVisitor::pushHidden(), rtf_Style_Reset, and TRUE.

Referenced by operator()(), writeDiaFile(), writeDotFile(), writeMermaidFile(), writeMscFile(), and writePlantUMLFile().

◆ indentLevel()

int RTFDocVisitor::indentLevel ( ) const
private

Definition at line 86 of file rtfdocvisitor.cpp.

87{
88 return std::min(m_indentLevel,maxIndentLevels-1);
89}

References m_indentLevel, and maxIndentLevels.

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

◆ operator()() [1/59]

void RTFDocVisitor::operator() ( const DocAnchor & anc)

Definition at line 419 of file rtfdocvisitor.cpp.

420{
421 if (m_hide) return;
422 DBG_RTF("{\\comment RTFDocVisitor::visit(DocAnchor)}\n");
423 QCString anchor;
424 if (!anc.file().isEmpty())
425 {
426 anchor+=stripPath(anc.file());
427 }
428 if (!anc.file().isEmpty() && !anc.anchor().isEmpty())
429 {
430 anchor+="_";
431 }
432 if (!anc.anchor().isEmpty())
433 {
434 anchor+=anc.anchor();
435 }
436 m_t << "{\\bkmkstart " << rtfFormatBmkStr(anchor) << "}\n";
437 m_t << "{\\bkmkend " << rtfFormatBmkStr(anchor) << "}\n";
439}
QCString anchor() const
Definition docnode.h:232
QCString file() const
Definition docnode.h:233
#define DBG_RTF(x)
QCString rtfFormatBmkStr(const QCString &name)
Definition rtfgen.cpp:2873
QCString stripPath(const QCString &s)
Definition util.cpp:4952

References DocAnchor::anchor(), DBG_RTF, FALSE, DocAnchor::file(), QCString::isEmpty(), m_hide, m_lastIsPara, m_t, rtfFormatBmkStr(), and stripPath().

◆ operator()() [2/59]

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

Definition at line 642 of file rtfdocvisitor.cpp.

643{
644 if (m_hide) return;
645 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocAutoList &)}\n");
646 m_t << "{\n";
647 int level = indentLevel();
648 m_listItemInfo[level].isEnum = l.isEnumList();
649 m_listItemInfo[level].isCheck = l.isCheckedList();
650 m_listItemInfo[level].type = '1';
651 m_listItemInfo[level].number = 1;
653 visitChildren(l);
654 if (!m_lastIsPara) m_t << "\\par";
655 m_t << "}\n";
657 if (!l.isCheckedList() && indentLevel()==0) m_t << "\\par\n";
658}
bool isCheckedList() const
Definition docnode.h:582
bool isEnumList() const
Definition docnode.h:580
void visitChildren(const T &t)
RTFListItemInfo m_listItemInfo[maxIndentLevels]

References DBG_RTF, FALSE, indentLevel(), DocAutoList::isCheckedList(), DocAutoList::isEnumList(), m_hide, m_lastIsPara, m_listItemInfo, m_t, TRUE, and visitChildren().

◆ operator()() [3/59]

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

Definition at line 660 of file rtfdocvisitor.cpp.

661{
662 static int prevLevel = -1;
663 if (m_hide) return;
664 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocAutoListItem &)}\n");
665 int level = indentLevel();
666 if ((level != prevLevel-1) &&
667 (!(level==prevLevel && level != 0 && m_listItemInfo[level].isCheck)) &&
668 (!m_lastIsPara))
669 m_t << "\\par\n";
670 prevLevel= level;
672 if (m_listItemInfo[level].isEnum)
673 {
674 m_t << getStyle("ListEnum") << "\n";
675 m_t << m_listItemInfo[level].number << ".\\tab ";
676 m_listItemInfo[level].number++;
677 }
678 else
679 {
680 switch (li.itemNumber())
681 {
682 case DocAutoList::Unchecked: // unchecked
683 m_t << getListTable(2) << "\n";
684 break;
685 case DocAutoList::Checked_x: // checked with x
686 case DocAutoList::Checked_X: // checked with X
687 m_t << getListTable(3) << "\n";
688 break;
689 default:
690 m_t << getListTable(1) << "\n";
691 break;
692 }
693 }
695 m_lastIsPara=false;
696 visitChildren(li);
698}
int itemNumber() const
Definition docnode.h:598
QCString getStyle(const QCString &name)
QCString getListTable(const int id)

References DocAutoList::Checked_X, DocAutoList::Checked_x, DBG_RTF, decIndentLevel(), getListTable(), getStyle(), incIndentLevel(), indentLevel(), DocAutoListItem::itemNumber(), m_hide, m_lastIsPara, m_listItemInfo, m_t, rtf_Style_Reset, DocAutoList::Unchecked, and visitChildren().

◆ operator()() [4/59]

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

Definition at line 614 of file rtfdocvisitor.cpp.

615{
616 if (m_hide) return;
617 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocCite &)}\n");
618 auto opt = cite.option();
619 if (!cite.file().isEmpty())
620 {
621 if (!opt.noCite()) startLink(cite.ref(),cite.file(),cite.anchor());
622
623 filter(cite.getText());
624
625 if (!opt.noCite()) endLink(cite.ref());
626 }
627 else
628 {
629 m_t << "{\\b";
630 if (!opt.noPar()) filter("[");
631 filter(cite.target());
632 if (!opt.noPar()) filter("]");
633 m_t << "}";
634 }
635}
QCString getText() const
Definition docnode.cpp:974
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
void startLink(const QCString &ref, const QCString &file, const QCString &anchor)
void filter(const QCString &str, bool verbatim=FALSE)
void endLink(const QCString &ref)

References DocCite::anchor(), DBG_RTF, endLink(), DocCite::file(), filter(), DocCite::getText(), QCString::isEmpty(), m_hide, m_t, DocCite::option(), DocCite::ref(), startLink(), and DocCite::target().

◆ operator()() [5/59]

void RTFDocVisitor::operator() ( const DocDiaFile & df)

Definition at line 1296 of file rtfdocvisitor.cpp.

1297{
1298 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocDiaFile &)}\n");
1299 bool exists = false;
1300 std::string inBuf;
1301 if (readInputFile(df.file(),inBuf))
1302 {
1303 auto fileName = writeFileContents(Config_getString(RTF_OUTPUT)+"/"+stripPath(df.file())+"_", // baseName
1304 ".dia", // extension
1305 inBuf, // contents
1306 exists);
1307 if (!fileName.isEmpty())
1308 {
1309 writeDiaFile(fileName, df.hasCaption(), df.srcFile(), df.srcLine(), !exists);
1310 visitChildren(df);
1312 }
1313 }
1314}
QCString srcFile() const
Definition docnode.h:691
QCString file() const
Definition docnode.h:685
int srcLine() const
Definition docnode.h:692
bool hasCaption() const
Definition docnode.h:687
void includePicturePostRTF(bool isTypeRTF, bool hasCaption, bool inlineImage=FALSE)
void writeDiaFile(const QCString &fileName, bool hasCaption, const QCString &srcFile, int srcLine, bool newFile=true)
#define Config_getString(name)
Definition config.h:32
QCString writeFileContents(const QCString &baseName, const QCString &extension, const QCString &content, bool &exists)
Thread-safe function to write a string to a file.
Definition util.cpp:6982
bool readInputFile(const QCString &fileName, std::string &contents, bool filter, bool isSourceCode)
read a file name fileName and optionally filter and transcode it
Definition util.cpp:5553

References Config_getString, DBG_RTF, DocDiagramFileBase::file(), DocDiagramFileBase::hasCaption(), includePicturePostRTF(), readInputFile(), DocDiagramFileBase::srcFile(), DocDiagramFileBase::srcLine(), stripPath(), visitChildren(), writeDiaFile(), and writeFileContents().

◆ operator()() [6/59]

void RTFDocVisitor::operator() ( const DocDotFile & df)

Definition at line 1257 of file rtfdocvisitor.cpp.

1258{
1259 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocDotFile &)}\n");
1260 bool exists = false;
1261 std::string inBuf;
1262 if (readInputFile(df.file(),inBuf))
1263 {
1264 auto fileName = writeFileContents(Config_getString(RTF_OUTPUT)+"/"+stripPath(df.file())+"_", // baseName
1265 ".dot", // extension
1266 inBuf, // contents
1267 exists);
1268 if (!fileName.isEmpty())
1269 {
1270 writeDotFile(fileName, df.hasCaption(), df.srcFile(), df.srcLine(), !exists);
1271 visitChildren(df);
1273 }
1274 }
1275}
void writeDotFile(const QCString &fileName, bool hasCaption, const QCString &srcFile, int srcLine, bool newFile=true)

References Config_getString, DBG_RTF, DocDiagramFileBase::file(), DocDiagramFileBase::hasCaption(), includePicturePostRTF(), readInputFile(), DocDiagramFileBase::srcFile(), DocDiagramFileBase::srcLine(), stripPath(), visitChildren(), writeDotFile(), and writeFileContents().

◆ operator()() [7/59]

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

Definition at line 158 of file rtfdocvisitor.cpp.

159{
160 if (m_hide) return;
161 DBG_RTF("{\\comment RTFDocVisitor::visit(DocEmoji)}\n");
162 const char *res = EmojiEntityMapper::instance().unicode(s.index());
163 if (res)
164 {
165 const char *p = res;
166 int val = 0;
167 int val1 = 0;
168 while (*p)
169 {
170 switch(*p)
171 {
172 case '&': case '#': case 'x':
173 break;
174 case ';':
175 val1 = val;
176 val = 0xd800 + ( ( val1 - 0x10000 ) & 0xffc00 ) / 0x400 - 0x10000;
177 m_t << "\\u" << val << "?";
178 val = 0xdC00 + ( ( val1 - 0x10000 ) & 0x3ff ) - 0x10000 ;
179 m_t << "\\u" << val << "?";
180 val = 0;
181 break;
182 case '0': case '1': case '2': case '3': case '4':
183 case '5': case '6': case '7': case '8': case '9':
184 val = val * 16 + *p - '0';
185 break;
186 case 'a': case 'b': case 'c': case 'd': case 'e': case 'f':
187 val = val * 16 + *p - 'a' + 10;
188 break;
189 }
190 p++;
191 }
192 }
193 else
194 {
195 m_t << s.name();
196 }
198}
int index() const
Definition docnode.h:345
QCString name() const
Definition docnode.h:344
const char * unicode(int index) const
Access routine to the unicode sequence for the Emoji entity.
Definition emoji.cpp:2016
static EmojiEntityMapper & instance()
Returns the one and only instance of the Emoji entity mapper.
Definition emoji.cpp:1978

References DBG_RTF, FALSE, DocEmoji::index(), EmojiEntityMapper::instance(), m_hide, m_lastIsPara, m_t, DocEmoji::name(), and EmojiEntityMapper::unicode().

◆ operator()() [8/59]

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

Definition at line 581 of file rtfdocvisitor.cpp.

582{
583 if (m_hide) return;
584 DBG_RTF("{\\comment RTFDocVisitor::visit(DocFormula)}\n");
585 bool bDisplay = !f.isInline();
586 if (bDisplay)
587 {
588 m_t << "\\par";
589 m_t << "{";
590 m_t << "\\pard\\plain";
591 m_t << "\\pard";
592 m_t << "\\qc";
593 }
594 m_t << "{ \\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"" << f.relPath() << f.name() << ".png\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt Image}}";
595 if (bDisplay)
596 {
597 m_t << "\\par}";
598 }
600}
QCString name() const
Definition docnode.h:532
bool isInline() const
Definition docnode.h:536
QCString relPath() const
Definition docnode.h:534

References DBG_RTF, FALSE, DocFormula::isInline(), m_hide, m_lastIsPara, m_t, DocFormula::name(), and DocFormula::relPath().

◆ operator()() [9/59]

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

Definition at line 238 of file rtfdocvisitor.cpp.

239{
240 if (m_hide) return;
241 DBG_RTF("{\\comment RTFDocVisitor::visit(DocHorRuler)}\n");
242 m_t << "{\\pard\\widctlpar\\brdrb\\brdrs\\brdrw5\\brsp20 \\adjustright \\par}\n";
244}

References DBG_RTF, m_hide, m_lastIsPara, m_t, and TRUE.

◆ operator()() [10/59]

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

Definition at line 1082 of file rtfdocvisitor.cpp.

1083{
1084 if (m_hide) return;
1085 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHRef &)}\n");
1086 if (Config_getBool(RTF_HYPERLINKS))
1087 {
1088 if (href.url().startsWith("#"))
1089 {
1090 // when starting with # so a local link
1091 QCString cite;
1092 cite = href.file() + "_" + href.url().right(href.url().length()-1);
1093 m_t << "{\\field "
1094 "{\\*\\fldinst "
1095 "{ HYPERLINK \\\\l \"" << rtfFormatBmkStr(cite) << "\" "
1096 "}{}"
1097 "}"
1098 "{\\fldrslt "
1099 "{\\cs37\\ul\\cf2 ";
1100 }
1101 else
1102 {
1103 m_t << "{\\field "
1104 "{\\*\\fldinst "
1105 "{ HYPERLINK \"" << href.url() << "\" "
1106 "}{}"
1107 "}"
1108 "{\\fldrslt "
1109 "{\\cs37\\ul\\cf2 ";
1110 }
1111 }
1112 else
1113 {
1114 m_t << "{\\f2 ";
1115 }
1117 visitChildren(href);
1118 if (Config_getBool(RTF_HYPERLINKS))
1119 {
1120 m_t << "}"
1121 "}"
1122 "}";
1123 }
1124 else
1125 {
1126 m_t << "}";
1127 }
1129}
QCString url() const
Definition docnode.h:839
QCString file() const
Definition docnode.h:840
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition qcstring.h:166
bool startsWith(const char *s) const
Definition qcstring.h:507
QCString right(size_t len) const
Definition qcstring.h:234

References Config_getBool, DBG_RTF, FALSE, DocHRef::file(), QCString::length(), m_hide, m_lastIsPara, m_t, QCString::right(), rtfFormatBmkStr(), QCString::startsWith(), DocHRef::url(), and visitChildren().

◆ operator()() [11/59]

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

Definition at line 1657 of file rtfdocvisitor.cpp.

1658{
1659 if (m_hide) return;
1660 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlBlockQuote &)}\n");
1661 if (!m_lastIsPara) m_t << "\\par\n";
1662 m_t << "{"; // start desc
1664 m_t << rtf_Style_Reset << getStyle("DescContinue");
1665 visitChildren(q);
1666 if (!m_lastIsPara) m_t << "\\par\n";
1668 m_t << "}"; // end desc
1670}

References DBG_RTF, decIndentLevel(), getStyle(), incIndentLevel(), m_hide, m_lastIsPara, m_t, rtf_Style_Reset, TRUE, and visitChildren().

◆ operator()() [12/59]

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

Definition at line 1024 of file rtfdocvisitor.cpp.

1025{
1026 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlCaption &)}\n");
1027 visitChildren(c);
1028 m_t << "}\n\\par\n";
1029}

References DBG_RTF, m_t, and visitChildren().

◆ operator()() [13/59]

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

Definition at line 1065 of file rtfdocvisitor.cpp.

1066{
1067 if (m_hide) return;
1068 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlCell &)}\n");
1069 m_t << "{" << align(c);
1071 visitChildren(c);
1072 m_t << "\\cell }";
1074}
static QCString align(const DocHtmlCell &cell)

References align(), DBG_RTF, FALSE, m_hide, m_lastIsPara, m_t, and visitChildren().

◆ operator()() [14/59]

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

Definition at line 987 of file rtfdocvisitor.cpp.

988{
989 if (m_hide) return;
990 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlDescData &)}\n");
992 m_t << "{" << rtf_Style_Reset << getStyle("DescContinue");
993 visitChildren(dd);
994 m_t << "\\par";
995 m_t << "}\n";
998}

References DBG_RTF, decIndentLevel(), getStyle(), incIndentLevel(), m_hide, m_lastIsPara, m_t, rtf_Style_Reset, TRUE, and visitChildren().

◆ operator()() [15/59]

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

Definition at line 960 of file rtfdocvisitor.cpp.

961{
962 if (m_hide) return;
963 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlDescList &)}\n");
964 //m_t << "{\n";
965 //m_t << rtf_Style_Reset << getStyle("ListContinue");
966 //m_lastIsPara=FALSE;
967 visitChildren(dl);
968 //m_t << "}\n";
969 //m_t << "\\par\n";
970 //m_lastIsPara=TRUE;
971}

References DBG_RTF, m_hide, and visitChildren().

◆ operator()() [16/59]

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

Definition at line 973 of file rtfdocvisitor.cpp.

974{
975 if (m_hide) return;
976 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlDescTitle &)}\n");
977 //m_t << "\\par\n";
978 //m_t << "{\\b ";
979 m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
981 visitChildren(dt);
982 m_t << "\\par\n";
983 m_t << "}\n";
985}

References DBG_RTF, FALSE, m_hide, m_lastIsPara, m_t, rtf_Style, TRUE, and visitChildren().

◆ operator()() [17/59]

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

Definition at line 1139 of file rtfdocvisitor.cpp.

1140{
1141 if (m_hide) return;
1142 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlDetails &)}\n");
1143 if (!m_lastIsPara) m_t << "\\par\n";
1144 auto summary = d.summary();
1145 if (summary)
1146 {
1147 std::visit(*this,*summary);
1148 m_t << "{"; // start desc
1150 m_t << rtf_Style_Reset << getStyle("DescContinue");
1151 }
1152 visitChildren(d);
1153 if (!m_lastIsPara) m_t << "\\par\n";
1154 if (summary)
1155 {
1157 m_t << "}"; // end desc
1158 }
1160}
const DocNodeVariant * summary() const
Definition docnode.h:873

References DBG_RTF, decIndentLevel(), getStyle(), incIndentLevel(), m_hide, m_lastIsPara, m_t, rtf_Style_Reset, DocHtmlDetails::summary(), TRUE, and visitChildren().

◆ operator()() [18/59]

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

Definition at line 1162 of file rtfdocvisitor.cpp.

1163{
1164 if (m_hide) return;
1165 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlHeader &)}\n");
1166 m_t << "{" // start section
1167 << rtf_Style_Reset;
1168 QCString heading;
1169 int level = std::clamp(header.level()+m_hierarchyLevel,SectionType::MinLevel,SectionType::MaxLevel);
1170 heading.sprintf("Heading%d",level);
1171 // set style
1172 m_t << rtf_Style[heading.str()].reference();
1173 // make open table of contents entry that will be closed in visitPost method
1174 m_t << "{\\tc\\tcl" << level << " ";
1176 visitChildren(header);
1177 // close open table of contents entry
1178 m_t << "} \\par";
1179 m_t << "}\n"; // end section
1181}
int level() const
Definition docnode.h:886
QCString & sprintf(const char *format,...)
Definition qcstring.cpp:29
static constexpr int MaxLevel
Definition section.h:39
static constexpr int MinLevel
Definition section.h:32

References DBG_RTF, FALSE, DocHtmlHeader::level(), m_hide, m_hierarchyLevel, m_lastIsPara, m_t, SectionType::MaxLevel, SectionType::MinLevel, rtf_Style, rtf_Style_Reset, QCString::sprintf(), QCString::str(), TRUE, and visitChildren().

◆ operator()() [19/59]

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

Definition at line 877 of file rtfdocvisitor.cpp.

878{
879 if (m_hide) return;
880 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlList &)}\n");
881 m_t << "{\n";
882 int level = indentLevel();
883 m_listItemInfo[level].isEnum = l.type()==DocHtmlList::Ordered;
884 m_listItemInfo[level].isCheck = false;
885 m_listItemInfo[level].number = 1;
886 m_listItemInfo[level].type = '1';
887 for (const auto &opt : l.attribs())
888 {
889 if (opt.name=="type")
890 {
891 m_listItemInfo[level].type = opt.value[0];
892 }
893 if (opt.name=="start")
894 {
895 bool ok = false;
896 int val = opt.value.toInt(&ok);
897 if (ok) m_listItemInfo[level].number = val;
898 }
899 }
901 visitChildren(l);
902 m_t << "\\par" << "}\n";
904}

References DocHtmlList::attribs(), DBG_RTF, FALSE, indentLevel(), m_hide, m_lastIsPara, m_listItemInfo, m_t, DocHtmlList::Ordered, TRUE, DocHtmlList::type(), and visitChildren().

◆ operator()() [20/59]

void RTFDocVisitor::operator() ( const DocHtmlListItem & l)

Definition at line 906 of file rtfdocvisitor.cpp.

907{
908 if (m_hide) return;
909 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlListItem &)}\n");
910 m_t << "\\par\n";
912 int level = indentLevel();
913 if (m_listItemInfo[level].isEnum)
914 {
915 for (const auto &opt : l.attribs())
916 {
917 if (opt.name=="value")
918 {
919 bool ok = false;
920 int val = opt.value.toInt(&ok);
921 if (ok) m_listItemInfo[level].number = val;
922 }
923 }
924 m_t << getStyle("ListEnum") << "\n";
925 switch (m_listItemInfo[level].type)
926 {
927 case '1':
928 m_t << m_listItemInfo[level].number;
929 break;
930 case 'a':
931 m_t << integerToAlpha(m_listItemInfo[level].number,false);
932 break;
933 case 'A':
934 m_t << integerToAlpha(m_listItemInfo[level].number);
935 break;
936 case 'i':
937 m_t << integerToRoman(m_listItemInfo[level].number,false);
938 break;
939 case 'I':
940 m_t << integerToRoman(m_listItemInfo[level].number);
941 break;
942 default:
943 m_t << m_listItemInfo[level].number;
944 break;
945 }
946 m_t << ".\\tab ";
947 m_listItemInfo[level].number++;
948 }
949 else
950 {
951 m_t << getStyle("ListBullet") << "\n";
952 }
955 visitChildren(l);
957 DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlListItem)}\n");
958}
const HtmlAttribList & attribs() const
Definition docnode.h:1176
QCString integerToRoman(int n, bool upper)
Definition util.cpp:6721
QCString integerToAlpha(int n, bool upper)
Definition util.cpp:6705

References DocHtmlListItem::attribs(), DBG_RTF, decIndentLevel(), FALSE, getStyle(), incIndentLevel(), indentLevel(), integerToAlpha(), integerToRoman(), m_hide, m_lastIsPara, m_listItemInfo, m_t, rtf_Style_Reset, and visitChildren().

◆ operator()() [21/59]

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

Definition at line 1031 of file rtfdocvisitor.cpp.

1032{
1033 if (m_hide) return;
1034 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlRow &)}\n");
1035 size_t columnWidth=r.numCells()>0 ? rtf_pageWidth/r.numCells() : 10;
1036 m_t << "\\trowd \\trgaph108\\trleft-108"
1037 "\\trbrdrt\\brdrs\\brdrw10 "
1038 "\\trbrdrl\\brdrs\\brdrw10 "
1039 "\\trbrdrb\\brdrs\\brdrw10 "
1040 "\\trbrdrr\\brdrs\\brdrw10 "
1041 "\\trbrdrh\\brdrs\\brdrw10 "
1042 "\\trbrdrv\\brdrs\\brdrw10 \n";
1043 for (size_t i=0;i<r.numCells();i++)
1044 {
1045 if (r.isHeading())
1046 {
1047 m_t << "\\clcbpat16"; // set cell shading to light grey (color 16 in the clut)
1048 }
1049 m_t << "\\clvertalt\\clbrdrt\\brdrs\\brdrw10 "
1050 "\\clbrdrl\\brdrs\\brdrw10 "
1051 "\\clbrdrb\\brdrs\\brdrw10 "
1052 "\\clbrdrr \\brdrs\\brdrw10 "
1053 "\\cltxlrtb "
1054 "\\cellx" << ((i+1)*columnWidth) << "\n";
1055 }
1056 m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
1058 visitChildren(r);
1059 m_t << "\n";
1060 m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
1061 m_t << "{\\row }\n";
1063}
bool isHeading() const
Definition docnode.cpp:2002
size_t numCells() const
Definition docnode.h:1257
const int rtf_pageWidth
Definition rtfstyle.h:26

References DBG_RTF, FALSE, DocHtmlRow::isHeading(), m_hide, m_lastIsPara, m_t, DocHtmlRow::numCells(), rtf_pageWidth, and visitChildren().

◆ operator()() [22/59]

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

Definition at line 1131 of file rtfdocvisitor.cpp.

1132{
1133 if (m_hide) return;
1134 m_t << "{\\b ";
1135 visitChildren(s);
1136 m_t << "}\\par ";
1137}

References m_hide, m_t, and visitChildren().

◆ operator()() [23/59]

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

Definition at line 1000 of file rtfdocvisitor.cpp.

1001{
1002 if (m_hide) return;
1003 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocHtmlTable &)}\n");
1004 if (!m_lastIsPara) m_t << "\\par\n";
1006 if (t.caption())
1007 {
1008 const DocHtmlCaption &c = std::get<DocHtmlCaption>(*t.caption());
1009 m_t << "\\pard \\qc \\b";
1010 if (!c.file().isEmpty())
1011 {
1012 m_t << "{\\bkmkstart " << rtfFormatBmkStr(stripPath(c.file())+"_"+c.anchor()) << "}\n";
1013 m_t << "{\\bkmkend " << rtfFormatBmkStr(stripPath(c.file())+"_"+c.anchor()) << "}\n";
1014 }
1015 m_t << "{Table \\field\\flddirty{\\*\\fldinst { SEQ Table \\\\*Arabic }}{\\fldrslt {\\noproof 1}} ";
1016 std::visit(*this,*t.caption());
1017 }
1018 visitChildren(t);
1019 m_t << "\\pard\\plain\n";
1020 m_t << "\\par\n";
1022}
QCString anchor() const
Definition docnode.h:1241
QCString file() const
Definition docnode.h:1240
const DocNodeVariant * caption() const
Definition docnode.cpp:2250

References DocHtmlCaption::anchor(), DocHtmlTable::caption(), DBG_RTF, DocHtmlCaption::file(), QCString::isEmpty(), m_hide, m_lastIsPara, m_t, rtfFormatBmkStr(), stripPath(), TRUE, and visitChildren().

◆ operator()() [24/59]

void RTFDocVisitor::operator() ( const DocImage & img)

Definition at line 1248 of file rtfdocvisitor.cpp.

1249{
1250 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocImage &)}\n");
1252 visitChildren(img);
1254}
QCString name() const
Definition docnode.h:648
Type type() const
Definition docnode.h:647
bool isInlineImage() const
Definition docnode.h:654
bool hasCaption() const
Definition docnode.h:649
void includePicturePreRTF(const QCString &name, bool isTypeRTF, bool hasCaption, bool inlineImage=FALSE)

References DBG_RTF, DocImage::hasCaption(), includePicturePostRTF(), includePicturePreRTF(), DocImage::isInlineImage(), DocImage::name(), DocImage::Rtf, DocImage::type(), and visitChildren().

◆ operator()() [25/59]

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

Definition at line 441 of file rtfdocvisitor.cpp.

442{
443 if (m_hide) return;
445 DBG_RTF("{\\comment RTFDocVisitor::visit(DocInclude)}\n");
446 switch(inc.type())
447 {
449 {
450 m_t << "{\n";
451 m_t << "\\par\n";
452 m_t << rtf_Style_Reset << getStyle("CodeExample");
453 FileInfo cfi( inc.file().str() );
454 auto fd = createFileDef( cfi.dirPath(), cfi.fileName() );
456 inc.text(),
457 langExt,
458 inc.stripCodeComments(),
459 CodeParserOptions()
460 .setExample(inc.isExample(),inc.exampleFile())
461 .setFileDef(fd.get())
462 .setInlineFragment(true)
463 );
464 m_t << "\\par";
465 m_t << "}\n";
466 }
467 break;
469 m_t << "{\n";
470 m_t << "\\par\n";
471 m_t << rtf_Style_Reset << getStyle("CodeExample");
473 inc.text(),langExt,
474 inc.stripCodeComments(),
475 CodeParserOptions()
476 .setExample(inc.isExample(),inc.exampleFile())
477 .setInlineFragment(true)
478 .setShowLineNumbers(false)
479 );
480 m_t << "\\par";
481 m_t << "}\n";
482 break;
490 break;
492 m_t << inc.text();
493 break;
495 m_t << "{\n";
496 m_t << "\\par\n";
497 m_t << rtf_Style_Reset << getStyle("CodeExample");
498 filter(inc.text());
499 m_t << "\\par";
500 m_t << "}\n";
501 break;
504 m_t << "{\n";
505 if (!m_lastIsPara) m_t << "\\par\n";
506 m_t << rtf_Style_Reset << getStyle("CodeExample");
508 inc.file(),
509 inc.blockId(),
510 inc.context(),
512 inc.trimLeft(),
514 );
515 m_t << "}";
516 break;
517 }
519}
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)
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:5214

References DocInclude::blockId(), DocInclude::context(), createFileDef(), DBG_RTF, FileInfo::dirPath(), DocInclude::DocbookInclude, DocInclude::DontInclude, DocInclude::DontIncWithLines, DocInclude::exampleFile(), DocInclude::extension(), DocInclude::file(), FileInfo::fileName(), filter(), DocVisitor::getCodeParser(), getLanguageFromFileName(), getStyle(), DocInclude::HtmlInclude, DocInclude::Include, DocInclude::IncWithLines, CodeFragmentManager::instance(), DocInclude::isExample(), DocInclude::LatexInclude, m_ci, m_hide, m_lastIsPara, m_t, DocInclude::ManInclude, CodeParserInterface::parseCode(), CodeFragmentManager::parseCodeFragment(), rtf_Style_Reset, 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 RTFDocVisitor::operator() ( const DocIncOperator & op)

Definition at line 521 of file rtfdocvisitor.cpp.

522{
523 //printf("DocIncOperator: type=%d first=%d, last=%d text='%s'\n",
524 // op.type(),op.isFirst(),op.isLast(),qPrint(op.text()));
525 DBG_RTF("{\\comment RTFDocVisitor::visit(DocIncOperator)}\n");
526 QCString locLangExt = getFileNameExtension(op.includeFileName());
527 if (locLangExt.isEmpty()) locLangExt = m_langExt;
528 SrcLangExt langExt = getLanguageFromFileName(locLangExt);
529 if (op.isFirst())
530 {
531 if (!m_hide)
532 {
533 m_t << "{\n";
534 m_t << "\\par\n";
535 m_t << rtf_Style_Reset << getStyle("CodeExample");
536 }
538 m_hide = TRUE;
539 }
540 if (op.type()!=DocIncOperator::Skip)
541 {
542 m_hide = popHidden();
543 if (!m_hide)
544 {
545 std::unique_ptr<FileDef> fd = nullptr;
546 if (!op.includeFileName().isEmpty())
547 {
548 FileInfo cfi( op.includeFileName().str() );
549 fd = createFileDef( cfi.dirPath(), cfi.fileName() );
550 }
551
552 getCodeParser(locLangExt).parseCode(m_ci,op.context(),op.text(),langExt,
554 CodeParserOptions()
555 .setExample(op.isExample(),op.exampleFile())
556 .setFileDef(fd.get())
557 .setStartLine(op.line())
558 .setShowLineNumbers(op.showLineNo())
559 );
560 }
562 m_hide=TRUE;
563 }
564 if (op.isLast())
565 {
566 m_hide = popHidden();
567 if (!m_hide)
568 {
569 m_t << "\\par";
570 m_t << "}\n";
571 }
573 }
574 else
575 {
576 if (!m_hide) m_t << "\n";
578 }
579}
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
int line() const
Definition docnode.h:497
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
QCString getFileNameExtension(const QCString &fn)
Definition util.cpp:5256

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

◆ operator()() [27/59]

void RTFDocVisitor::operator() ( const DocIndexEntry & i)

Definition at line 602 of file rtfdocvisitor.cpp.

603{
604 if (m_hide) return;
605 DBG_RTF("{\\comment RTFDocVisitor::visit(DocIndexEntry)}\n");
606 m_t << "{\\xe \\v " << i.entry() << "}\n";
608}
QCString entry() const
Definition docnode.h:559

References DBG_RTF, DocIndexEntry::entry(), FALSE, m_hide, m_lastIsPara, and m_t.

◆ operator()() [28/59]

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

Definition at line 1076 of file rtfdocvisitor.cpp.

1077{
1078 if (m_hide) return;
1079 visitChildren(i);
1080}

References m_hide, and visitChildren().

◆ operator()() [29/59]

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

Definition at line 1640 of file rtfdocvisitor.cpp.

1641{
1642 if (m_hide) return;
1643 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocInternalRef &)}\n");
1644 startLink("",ref.file(),ref.anchor());
1645 visitChildren(ref);
1646 endLink("");
1647 m_t << " ";
1648}
QCString file() const
Definition docnode.h:820
QCString anchor() const
Definition docnode.h:822

References DocInternalRef::anchor(), DBG_RTF, endLink(), DocInternalRef::file(), m_hide, m_t, startLink(), and visitChildren().

◆ operator()() [30/59]

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

Definition at line 230 of file rtfdocvisitor.cpp.

231{
232 if (m_hide) return;
233 DBG_RTF("{\\comment RTFDocVisitor::visit(DocLineBreak)}\n");
234 m_t << "\\par\n";
236}

References DBG_RTF, m_hide, m_lastIsPara, m_t, and TRUE.

◆ operator()() [31/59]

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

Definition at line 1349 of file rtfdocvisitor.cpp.

1350{
1351 if (m_hide) return;
1352 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocLink &)}\n");
1353 startLink(lnk.ref(),lnk.file(),lnk.anchor());
1354 visitChildren(lnk);
1355 endLink(lnk.ref());
1356}

References DocLink::anchor(), DBG_RTF, endLink(), DocLink::file(), m_hide, DocLink::ref(), startLink(), and visitChildren().

◆ operator()() [32/59]

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

Definition at line 117 of file rtfdocvisitor.cpp.

118{
119 if (m_hide) return;
120 DBG_RTF("{\\comment RTFDocVisitor::visit(DocLinkedWord)}\n");
121 startLink(w.ref(),w.file(),w.anchor());
122 filter(w.word());
123 endLink(w.ref());
125}
QCString file() const
Definition docnode.h:171
QCString ref() const
Definition docnode.h:173
QCString word() const
Definition docnode.h:170
QCString anchor() const
Definition docnode.h:174

References DocLinkedWord::anchor(), DBG_RTF, endLink(), FALSE, DocLinkedWord::file(), filter(), m_hide, m_lastIsPara, DocLinkedWord::ref(), startLink(), and DocLinkedWord::word().

◆ operator()() [33/59]

void RTFDocVisitor::operator() ( const DocMermaidFile & df)

Definition at line 1334 of file rtfdocvisitor.cpp.

1335{
1336 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocMermaidFile &)}\n");
1337 if (!Config_getBool(DOT_CLEANUP)) copyFile(df.file(),Config_getString(RTF_OUTPUT)+"/"+stripPath(df.file()));
1338 QCString rtfOutput = Config_getString(RTF_OUTPUT);
1339 std::string inBuf;
1340 readInputFile(df.file(),inBuf);
1341 QCString baseName = MermaidManager::instance().writeMermaidSource(
1342 rtfOutput,QCString(),inBuf,MermaidManager::MERM_BITMAP,
1343 df.srcFile(),df.srcLine());
1344 writeMermaidFile(baseName, df.hasCaption());
1345 visitChildren(df);
1347}
QCString writeMermaidSource(const QCString &outDirArg, const QCString &fileName, const QCString &content, OutputFormat format, const QCString &srcFile, int srcLine)
Write a Mermaid source file and register it for CLI rendering.
Definition mermaid.cpp:52
static MermaidManager & instance()
Definition mermaid.cpp:32
void writeMermaidFile(const QCString &fileName, bool hasCaption)
bool copyFile(const QCString &src, const QCString &dest)
Copies the contents of file with name src to the newly created file with name dest.
Definition util.cpp:5880

References Config_getBool, Config_getString, copyFile(), DBG_RTF, DocDiagramFileBase::file(), DocDiagramFileBase::hasCaption(), includePicturePostRTF(), MermaidManager::instance(), MermaidManager::MERM_BITMAP, readInputFile(), DocDiagramFileBase::srcFile(), DocDiagramFileBase::srcLine(), stripPath(), visitChildren(), writeMermaidFile(), and MermaidManager::writeMermaidSource().

◆ operator()() [34/59]

void RTFDocVisitor::operator() ( const DocMscFile & df)

Definition at line 1276 of file rtfdocvisitor.cpp.

1277{
1278 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocMscFile &)}\n");
1279 bool exists = false;
1280 std::string inBuf;
1281 if (readInputFile(df.file(),inBuf))
1282 {
1283 auto fileName = writeFileContents(Config_getString(RTF_OUTPUT)+"/"+stripPath(df.file())+"_", // baseName
1284 ".msc", // extension
1285 inBuf, // contents
1286 exists);
1287 if (!fileName.isEmpty())
1288 {
1289 writeMscFile(fileName, df.hasCaption(), df.srcFile(), df.srcLine(), !exists);
1290 visitChildren(df);
1292 }
1293 }
1294}
void writeMscFile(const QCString &fileName, bool hasCaption, const QCString &srcFile, int srcLine, bool newFile=true)

References Config_getString, DBG_RTF, DocDiagramFileBase::file(), DocDiagramFileBase::hasCaption(), includePicturePostRTF(), readInputFile(), DocDiagramFileBase::srcFile(), DocDiagramFileBase::srcLine(), stripPath(), visitChildren(), writeFileContents(), and writeMscFile().

◆ operator()() [35/59]

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

Definition at line 700 of file rtfdocvisitor.cpp.

701{
702 if (m_hide) return;
703 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocPara &)}\n");
704 visitChildren(p);
705 if (!m_lastIsPara &&
706 !p.isLast() && // omit <p> for last paragraph
707 !(p.parent() && // and for parameters & sections
708 std::get_if<DocParamSect>(p.parent())
709 )
710 )
711 {
712 m_t << "\\par\n";
714 }
715}
DocNodeVariant * parent()
Definition docnode.h:90
bool isLast() const
Definition docnode.h:1097

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

◆ operator()() [36/59]

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

Definition at line 1448 of file rtfdocvisitor.cpp.

1449{
1450 static int columnPos[4][5] =
1451 { { 2, 25, 100, 100, 100 }, // no inout, no type
1452 { 3, 14, 35, 100, 100 }, // inout, no type
1453 { 3, 25, 50, 100, 100 }, // no inout, type
1454 { 4, 14, 35, 55, 100 }, // inout, type
1455 };
1456 int config=0;
1457 if (m_hide) return;
1458 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocParamList &)}\n");
1459
1461 const DocParamSect *sect = std::get_if<DocParamSect>(pl.parent());
1462 if (sect)
1463 {
1464 parentType = sect->type();
1465 }
1466 bool useTable = parentType==DocParamSect::Param ||
1467 parentType==DocParamSect::RetVal ||
1468 parentType==DocParamSect::Exception ||
1469 parentType==DocParamSect::TemplateParam;
1470 if (sect && sect->hasInOutSpecifier()) config+=1;
1471 if (sect && sect->hasTypeSpecifier()) config+=2;
1472 if (useTable)
1473 {
1474 m_t << "\\trowd \\trgaph108\\trleft426\\tblind426"
1475 "\\trbrdrt\\brdrs\\brdrw10\\brdrcf15 "
1476 "\\trbrdrl\\brdrs\\brdrw10\\brdrcf15 "
1477 "\\trbrdrb\\brdrs\\brdrw10\\brdrcf15 "
1478 "\\trbrdrr\\brdrs\\brdrw10\\brdrcf15 "
1479 "\\trbrdrh\\brdrs\\brdrw10\\brdrcf15 "
1480 "\\trbrdrv\\brdrs\\brdrw10\\brdrcf15 "<< "\n";
1481 for (int i=0;i<columnPos[config][0];i++)
1482 {
1483 m_t << "\\clvertalt\\clbrdrt\\brdrs\\brdrw10\\brdrcf15 "
1484 "\\clbrdrl\\brdrs\\brdrw10\\brdrcf15 "
1485 "\\clbrdrb\\brdrs\\brdrw10\\brdrcf15 "
1486 "\\clbrdrr \\brdrs\\brdrw10\\brdrcf15 "
1487 "\\cltxlrtb "
1488 "\\cellx" << (rtf_pageWidth*columnPos[config][i+1]/100) << "\n";
1489 }
1490 m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
1491 }
1492
1493 if (sect && sect->hasInOutSpecifier())
1494 {
1495 if (useTable)
1496 {
1497 m_t << "{";
1498 }
1499
1500 // Put in the direction: in/out/in,out if specified.
1502 {
1503 if (pl.direction()==DocParamSect::In)
1504 {
1505 m_t << "in";
1506 }
1507 else if (pl.direction()==DocParamSect::Out)
1508 {
1509 m_t << "out";
1510 }
1511 else if (pl.direction()==DocParamSect::InOut)
1512 {
1513 m_t << "in,out";
1514 }
1515 }
1516
1517 if (useTable)
1518 {
1519 m_t << "\\cell }";
1520 }
1521 }
1522
1523 if (sect && sect->hasTypeSpecifier())
1524 {
1525 if (useTable)
1526 {
1527 m_t << "{";
1528 }
1529 for (const auto &type : pl.paramTypes())
1530 {
1531 std::visit(*this,type);
1532 }
1533 if (useTable)
1534 {
1535 m_t << "\\cell }";
1536 }
1537 }
1538
1539
1540 if (useTable)
1541 {
1542 m_t << "{";
1543 }
1544
1545 m_t << "{\\i ";
1546 bool first=TRUE;
1547 for (const auto &param : pl.parameters())
1548 {
1549 if (!first) m_t << ","; else first=FALSE;
1550 std::visit(*this,param);
1551 }
1552 m_t << "} ";
1553
1554 if (useTable)
1555 {
1556 m_t << "\\cell }{";
1557 }
1559
1560 for (const auto &par : pl.paragraphs())
1561 {
1562 std::visit(*this,par);
1563 }
1564
1565 if (useTable)
1566 {
1567 m_t << "\\cell }\n";
1568 //m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
1569 m_t << "{\\row }\n";
1570 }
1571 else
1572 {
1573 m_t << "\\par\n";
1574 }
1575
1577}
const DocNodeList & parameters() const
Definition docnode.h:1135
const DocNodeList & paramTypes() const
Definition docnode.h:1136
DocParamSect::Direction direction() const
Definition docnode.h:1139
const DocNodeList & paragraphs() const
Definition docnode.h:1137
bool hasInOutSpecifier() const
Definition docnode.h:1078
bool hasTypeSpecifier() const
Definition docnode.h:1079
Type type() const
Definition docnode.h:1077

References DBG_RTF, DocParamList::direction(), DocParamSect::Exception, FALSE, DocParamSect::hasInOutSpecifier(), DocParamSect::hasTypeSpecifier(), DocParamSect::In, DocParamSect::InOut, m_hide, m_lastIsPara, m_t, DocParamSect::Out, DocParamList::paragraphs(), DocParamSect::Param, DocParamList::parameters(), DocParamList::paramTypes(), DocNode::parent(), DocParamSect::RetVal, rtf_pageWidth, DocParamSect::TemplateParam, TRUE, DocParamSect::type(), DocParamSect::Unknown, and DocParamSect::Unspecified.

◆ operator()() [37/59]

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

Definition at line 1401 of file rtfdocvisitor.cpp.

1402{
1403 if (m_hide) return;
1404 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocParamSect &)}\n");
1405 m_t << "{"; // start param list
1406 if (!m_lastIsPara) m_t << "\\par\n";
1407 //m_t << "{\\b "; // start bold
1408 m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
1409 switch(s.type())
1410 {
1412 m_t << theTranslator->trParameters(); break;
1414 m_t << theTranslator->trReturnValues(); break;
1416 m_t << theTranslator->trExceptions(); break;
1419 default:
1420 ASSERT(0);
1421 }
1422 m_t << "\\par";
1423 m_t << "}\n";
1424 bool useTable = s.type()==DocParamSect::Param ||
1428 if (!useTable)
1429 {
1431 }
1432 m_t << rtf_Style_Reset << getStyle("DescContinue");
1434 visitChildren(s);
1435 //m_t << "\\par\n";
1436 if (!useTable)
1437 {
1439 }
1440 m_t << "}\n";
1441}
virtual QCString trExceptions()=0
virtual QCString trParameters()=0
virtual QCString trTemplateParameters()=0
virtual QCString trReturnValues()=0
Translator * theTranslator
Definition language.cpp:71

References ASSERT, DBG_RTF, decIndentLevel(), DocParamSect::Exception, getStyle(), incIndentLevel(), m_hide, m_lastIsPara, m_t, DocParamSect::Param, DocParamSect::RetVal, rtf_Style, rtf_Style_Reset, DocParamSect::TemplateParam, theTranslator, TRUE, DocParamSect::type(), and visitChildren().

◆ operator()() [38/59]

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

Definition at line 1676 of file rtfdocvisitor.cpp.

1677{
1678 if (m_hide) return;
1679 visitChildren(pb);
1680}

References m_hide, and visitChildren().

◆ operator()() [39/59]

void RTFDocVisitor::operator() ( const DocPlantUmlFile & df)

Definition at line 1316 of file rtfdocvisitor.cpp.

1317{
1318 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocPlantUmlFile &)}\n");
1319 if (!Config_getBool(DOT_CLEANUP)) copyFile(df.file(),Config_getString(RTF_OUTPUT)+"/"+stripPath(df.file()));
1320 QCString rtfOutput = Config_getString(RTF_OUTPUT);
1321 std::string inBuf;
1322 readInputFile(df.file(),inBuf);
1323 auto baseNameVector = PlantumlManager::instance().writePlantUMLSource(
1324 rtfOutput,QCString(),inBuf,PlantumlManager::PUML_BITMAP,
1325 QCString(),df.srcFile(),df.srcLine(),false);
1326 for(const auto &baseName: baseNameVector)
1327 {
1328 writePlantUMLFile(baseName, df.hasCaption());
1329 visitChildren(df);
1331 }
1332}
StringVector writePlantUMLSource(const QCString &outDirArg, const QCString &fileName, const QCString &content, OutputFormat format, const QCString &engine, const QCString &srcFile, int srcLine, bool inlineCode)
Write a PlantUML compatible file.
Definition plantuml.cpp:31
static PlantumlManager & instance()
Definition plantuml.cpp:231
void writePlantUMLFile(const QCString &fileName, bool hasCaption)

References Config_getBool, Config_getString, copyFile(), DBG_RTF, DocDiagramFileBase::file(), DocDiagramFileBase::hasCaption(), includePicturePostRTF(), PlantumlManager::instance(), PlantumlManager::PUML_BITMAP, readInputFile(), DocDiagramFileBase::srcFile(), DocDiagramFileBase::srcLine(), stripPath(), visitChildren(), writePlantUMLFile(), and PlantumlManager::writePlantUMLSource().

◆ operator()() [40/59]

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

Definition at line 1358 of file rtfdocvisitor.cpp.

1359{
1360 if (m_hide) return;
1361 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocRef &)}\n");
1362 // when ref.isSubPage()==TRUE we use ref.file() for HTML and
1363 // ref.anchor() for LaTeX/RTF
1364 if (ref.isSubPage())
1365 {
1366 startLink(ref.ref(),QCString(),ref.anchor());
1367 }
1368 else
1369 {
1370 if (!ref.file().isEmpty()) startLink(ref.ref(),ref.file(),ref.anchor());
1371 }
1372 if (!ref.hasLinkText()) filter(ref.targetTitle());
1373 visitChildren(ref);
1374 if (!ref.file().isEmpty()) endLink(ref.ref());
1375 //m_t << " ";
1376}
QCString anchor() const
Definition docnode.h:794
QCString targetTitle() const
Definition docnode.h:795
bool isSubPage() const
Definition docnode.h:801
QCString file() const
Definition docnode.h:791
QCString ref() const
Definition docnode.h:793
bool hasLinkText() const
Definition docnode.h:797

References DocRef::anchor(), DBG_RTF, endLink(), DocRef::file(), filter(), DocRef::hasLinkText(), QCString::isEmpty(), DocRef::isSubPage(), m_hide, DocRef::ref(), startLink(), DocRef::targetTitle(), and visitChildren().

◆ operator()() [41/59]

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

Definition at line 717 of file rtfdocvisitor.cpp.

718{
719 if (m_hide) return;
720 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocRoot &)}\n");
721 if (r.indent()) incIndentLevel();
722 m_t << "{" << rtf_Style["BodyText"].reference() << "\n";
723 visitChildren(r);
724 if (!m_lastIsPara && !r.singleLine()) m_t << "\\par\n";
725 m_t << "}";
727 if (r.indent()) decIndentLevel();
728}
bool singleLine() const
Definition docnode.h:1325
bool indent() const
Definition docnode.h:1324

References DBG_RTF, decIndentLevel(), incIndentLevel(), DocRoot::indent(), m_hide, m_lastIsPara, m_t, rtf_Style, DocRoot::singleLine(), TRUE, and visitChildren().

◆ operator()() [42/59]

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

Definition at line 1379 of file rtfdocvisitor.cpp.

1380{
1381 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocSecRefItem &)}\n");
1382 visitChildren(ref);
1383}

References DBG_RTF, and visitChildren().

◆ operator()() [43/59]

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

Definition at line 1385 of file rtfdocvisitor.cpp.

1386{
1387 if (m_hide) return;
1388 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocSecRefList &)}\n");
1389 m_t << "{\n";
1391 m_t << rtf_Style_Reset << getStyle("LatexTOC") << "\n";
1392 m_t << "\\par\n";
1394 visitChildren(l);
1396 m_t << "\\par";
1397 m_t << "}\n";
1399}

References DBG_RTF, decIndentLevel(), getStyle(), incIndentLevel(), m_hide, m_lastIsPara, m_t, rtf_Style_Reset, TRUE, and visitChildren().

◆ operator()() [44/59]

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

Definition at line 843 of file rtfdocvisitor.cpp.

844{
845 if (m_hide) return;
846 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocSection &)}\n");
847 if (!m_lastIsPara) m_t << "\\par\n";
848 m_t << "{\\bkmkstart " << rtfFormatBmkStr(stripPath(s.file())+"_"+s.anchor()) << "}\n";
849 m_t << "{\\bkmkend " << rtfFormatBmkStr(stripPath(s.file())+"_"+s.anchor()) << "}\n";
850 m_t << "{{" // start section
852 QCString heading;
853 int level = std::min(s.level()+2+m_hierarchyLevel,4);
854 if (level <= 0)
855 level = 1;
856 heading.sprintf("Heading%d",level);
857 // set style
858 m_t << rtf_Style[heading.str()].reference() << "\n";
859 // make table of contents entry
860 if (s.title())
861 {
862 std::visit(*this,*s.title());
863 }
864 m_t << "\n\\par" << "}\n";
865 m_t << "{\\tc\\tcl" << level << " \\v ";
866 if (s.title())
867 {
868 std::visit(*this,*s.title());
869 }
870 m_t << "}\n";
872 visitChildren(s);
873 m_t << "\\par}\n"; // end section
875}
QCString file() const
Definition docnode.h:931
int level() const
Definition docnode.h:927
QCString anchor() const
Definition docnode.h:929
const DocNodeVariant * title() const
Definition docnode.h:928

References DocSection::anchor(), DBG_RTF, DocSection::file(), DocSection::level(), m_hide, m_hierarchyLevel, m_lastIsPara, m_t, rtf_Style, rtf_Style_Reset, rtfFormatBmkStr(), QCString::sprintf(), QCString::str(), stripPath(), DocSection::title(), TRUE, and visitChildren().

◆ operator()() [45/59]

void RTFDocVisitor::operator() ( const DocSeparator & sep)

Definition at line 1443 of file rtfdocvisitor.cpp.

1444{
1445 m_t << " " << sep.chars() << " ";
1446}
QCString chars() const
Definition docnode.h:369

References DocSeparator::chars(), and m_t.

◆ operator()() [46/59]

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

Definition at line 814 of file rtfdocvisitor.cpp.

815{
816 if (m_hide) return;
817 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocSimpleSect &)}\n");
818 m_t << "{\n";
819 m_listItemInfo[indentLevel()].isEnum = false;
820 m_listItemInfo[indentLevel()].isCheck = false;
822 visitChildren(l);
823 if (!m_lastIsPara) m_t << "\\par\n";
824 m_t << "}\n";
826}

References DBG_RTF, FALSE, indentLevel(), m_hide, m_lastIsPara, m_listItemInfo, m_t, TRUE, and visitChildren().

◆ operator()() [47/59]

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

Definition at line 828 of file rtfdocvisitor.cpp.

829{
830 if (m_hide) return;
831 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocSimpleListItem &)}\n");
832 m_t << "\\par" << rtf_Style_Reset << getStyle("ListBullet") << "\n";
835 if (li.paragraph())
836 {
837 std::visit(*this,*li.paragraph());
838 }
840 DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocSimpleListItem)}\n");
841}
const DocNodeVariant * paragraph() const
Definition docnode.h:1163

References DBG_RTF, decIndentLevel(), FALSE, getStyle(), incIndentLevel(), m_hide, m_lastIsPara, m_t, DocSimpleListItem::paragraph(), and rtf_Style_Reset.

◆ operator()() [48/59]

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

Definition at line 730 of file rtfdocvisitor.cpp.

731{
732 if (m_hide) return;
733 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocSimpleSect &)}\n");
734 if (!m_lastIsPara) m_t << "\\par\n";
735 m_t << "{"; // start desc
736 //m_t << "{\\b "; // start bold
737 m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
738 switch(s.type())
739 {
741 m_t << theTranslator->trSeeAlso(); break;
743 m_t << theTranslator->trReturns(); break;
745 m_t << theTranslator->trAuthor(TRUE,TRUE); break;
747 m_t << theTranslator->trAuthor(TRUE,FALSE); break;
749 m_t << theTranslator->trVersion(); break;
751 m_t << theTranslator->trSince(); break;
753 m_t << theTranslator->trDate(); break;
755 m_t << theTranslator->trNote(); break;
757 m_t << theTranslator->trWarning(); break;
759 m_t << theTranslator->trPrecondition(); break;
761 m_t << theTranslator->trPostcondition(); break;
763 m_t << theTranslator->trCopyright(); break;
765 m_t << theTranslator->trInvariant(); break;
767 m_t << theTranslator->trRemarks(); break;
769 m_t << theTranslator->trAttention(); break;
771 m_t << theTranslator->trImportant(); break;
772 case DocSimpleSect::User: break;
773 case DocSimpleSect::Rcs: break;
774 case DocSimpleSect::Unknown: break;
775 }
776
779 {
780 m_t << "\\par";
781 m_t << "}"; // end bold
782 m_t << rtf_Style_Reset << getStyle("DescContinue");
783 m_t << "{\\s17 \\sa60 \\sb30\n";
784 }
785 else
786 {
787 if (s.title())
788 {
789 std::visit(*this,*s.title());
790 }
791 m_t << "\\par\n";
792 m_t << "}"; // end bold
793 m_t << rtf_Style_Reset << getStyle("DescContinue");
794 }
796 visitChildren(s);
797 if (!m_lastIsPara) m_t << "\\par\n";
800 {
801 m_t << "}"; // end DescContinue
802 }
803 m_t << "}"; // end desc
805}
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, DBG_RTF, decIndentLevel(), FALSE, getStyle(), DocSimpleSect::Important, incIndentLevel(), DocSimpleSect::Invar, m_hide, m_lastIsPara, m_t, DocSimpleSect::Note, DocSimpleSect::Post, DocSimpleSect::Pre, DocSimpleSect::Rcs, DocSimpleSect::Remark, DocSimpleSect::Return, rtf_Style, rtf_Style_Reset, DocSimpleSect::See, DocSimpleSect::Since, theTranslator, DocSimpleSect::title(), TRUE, DocSimpleSect::type(), DocSimpleSect::Unknown, DocSimpleSect::User, DocSimpleSect::Version, visitChildren(), and DocSimpleSect::Warning.

◆ operator()() [49/59]

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

Definition at line 610 of file rtfdocvisitor.cpp.

611{
612}

◆ operator()() [50/59]

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

Definition at line 246 of file rtfdocvisitor.cpp.

247{
248 if (m_hide) return;
250 DBG_RTF("{\\comment RTFDocVisitor::visit(DocStyleChange)}\n");
251 switch (s.style())
252 {
254 if (s.enable()) m_t << "{\\b "; else m_t << "} ";
255 break;
259 if (s.enable()) m_t << "{\\strike "; else m_t << "} ";
260 break;
263 if (s.enable()) m_t << "{\\ul "; else m_t << "} ";
264 break;
266 if (s.enable()) m_t << "{\\i "; else m_t << "} ";
267 break;
271 if (s.enable()) m_t << "{\\f2 "; else m_t << "} ";
272 break;
274 if (s.enable()) m_t << "{\\sub "; else m_t << "} ";
275 break;
277 if (s.enable()) m_t << "{\\super "; else m_t << "} ";
278 break;
280 if (s.enable()) m_t << "{\\qc "; else m_t << "} ";
281 break;
283 if (s.enable()) m_t << "{\\sub "; else m_t << "} ";
284 break;
286 if (s.enable()) m_t << "{\\i "; else m_t << "} ";
287 break;
289 if (s.enable())
290 {
291 m_t << "{\n";
292 m_t << "\\par\n";
293 m_t << rtf_Style_Reset << getStyle("CodeExample");
295 }
296 else
297 {
299 m_t << "\\par";
300 m_t << "}\n";
301 }
303 break;
304 case DocStyleChange::Div: /* HTML only */ break;
305 case DocStyleChange::Span: /* HTML only */ break;
306 }
307}
Style style() const
Definition docnode.h:307
bool enable() const
Definition docnode.h:309

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

◆ operator()() [51/59]

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

Definition at line 142 of file rtfdocvisitor.cpp.

143{
144 if (m_hide) return;
145 DBG_RTF("{\\comment RTFDocVisitor::visit(DocSymbol)}\n");
146 const char *res = HtmlEntityMapper::instance().rtf(s.symbol());
147 if (res)
148 {
149 m_t << res;
150 }
151 else
152 {
153 err("RTF: non supported HTML-entity found: {}\n",HtmlEntityMapper::instance().html(s.symbol(),TRUE));
154 }
156}
HtmlEntityMapper::SymType symbol() const
Definition docnode.h:332
static HtmlEntityMapper & instance()
Returns the one and only instance of the HTML entity mapper.
const char * rtf(SymType symb) const
Access routine to the RTF code of the HTML entity.

References DBG_RTF, err, FALSE, HtmlEntityMapper::instance(), m_hide, m_lastIsPara, m_t, HtmlEntityMapper::rtf(), DocSymbol::symbol(), and TRUE.

◆ operator()() [52/59]

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

Definition at line 1650 of file rtfdocvisitor.cpp.

1651{
1652 if (m_hide) return;
1653 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocText &)}\n");
1654 visitChildren(t);
1655}

References DBG_RTF, m_hide, and visitChildren().

◆ operator()() [53/59]

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

Definition at line 807 of file rtfdocvisitor.cpp.

808{
809 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocTitle &)}\n");
810 if (m_hide) return;
811 visitChildren(t);
812}

References DBG_RTF, m_hide, and visitChildren().

◆ operator()() [54/59]

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

Definition at line 200 of file rtfdocvisitor.cpp.

201{
202 if (m_hide) return;
203 DBG_RTF("{\\comment RTFDocVisitor::visit(DocURL)}\n");
204 if (Config_getBool(RTF_HYPERLINKS))
205 {
206 m_t << "{\\field "
207 "{\\*\\fldinst "
208 "{ HYPERLINK \"";
209 if (u.isEmail()) m_t << "mailto:";
210 m_t << u.url();
211 m_t << "\" }"
212 "{}";
213 m_t << "}"
214 "{\\fldrslt "
215 "{\\cs37\\ul\\cf2 ";
216 filter(u.url());
217 m_t << "}"
218 "}"
219 "}\n";
220 }
221 else
222 {
223 m_t << "{\\f2 ";
224 filter(u.url());
225 m_t << "}";
226 }
228}
QCString url() const
Definition docnode.h:192
bool isEmail() const
Definition docnode.h:193

References Config_getBool, DBG_RTF, FALSE, filter(), DocURL::isEmail(), m_hide, m_lastIsPara, m_t, and DocURL::url().

◆ operator()() [55/59]

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

Definition at line 309 of file rtfdocvisitor.cpp.

310{
311 if (m_hide) return;
312 DBG_RTF("{\\comment RTFDocVisitor::visit(DocVerbatim)}\n");
313 QCString lang = m_langExt;
314 if (!s.language().isEmpty()) // explicit language setting
315 {
316 lang = s.language();
317 }
318 SrcLangExt langExt = getLanguageFromCodeLang(lang);
319 switch(s.type())
320 {
322 m_t << "{\n";
323 m_t << "\\par\n";
324 m_t << rtf_Style_Reset << getStyle("CodeExample");
325 getCodeParser(lang).parseCode(m_ci,s.context(),s.text(),langExt,
326 Config_getBool(STRIP_CODE_COMMENTS),
327 CodeParserOptions().setExample(s.isExample(),s.exampleFile()));
328 //m_t << "\\par\n";
329 m_t << "}\n";
330 break;
332 filter(s.text(),TRUE);
333 break;
335 m_t << "{\n";
336 m_t << "{\\f2 ";
337 filter(s.text(),TRUE);
338 m_t << "}";
339 m_t << "}\n";
340 break;
342 m_t << "{\n";
343 m_t << "\\par\n";
344 m_t << rtf_Style_Reset << getStyle("CodeExample");
345 filter(s.text(),TRUE);
346 //m_t << "\\par\n";
347 m_t << "}\n";
348 break;
350 m_t << s.text();
351 break;
357 /* nothing */
358 break;
359 case DocVerbatim::Dot:
360 {
361 bool exists = false;
362 auto fileName = writeFileContents(Config_getString(RTF_OUTPUT)+"/inline_dotgraph_", // baseName
363 ".dot", // extension
364 s.text(), // contents
365 exists);
366 if (!fileName.isEmpty())
367 {
368 writeDotFile(fileName, s.hasCaption(), s.srcFile(), s.srcLine(), !exists);
369 visitChildren(s);
371 }
372 }
373 break;
374 case DocVerbatim::Msc:
375 {
376 bool exists = false;
377 auto fileName = writeFileContents(Config_getString(RTF_OUTPUT)+"/inline_mscgraph_", // baseName
378 ".msc", // extension
379 "msc {"+s.text()+"}", // contents
380 exists);
381 if (!fileName.isEmpty())
382 {
383 writeMscFile(fileName, s.hasCaption(), s.srcFile(), s.srcLine(), !exists);
384 visitChildren(s);
386 }
387 }
388 break;
390 {
391 QCString rtfOutput = Config_getString(RTF_OUTPUT);
392 auto baseNameVector = PlantumlManager::instance().writePlantUMLSource(
394 s.engine(),s.srcFile(),s.srcLine(),true);
395
396 for (const auto &baseName: baseNameVector)
397 {
398 writePlantUMLFile(baseName, s.hasCaption());
399 visitChildren(s);
401 }
402 }
403 break;
405 {
406 QCString rtfOutput = Config_getString(RTF_OUTPUT);
407 QCString baseName = MermaidManager::instance().writeMermaidSource(
409 s.srcFile(),s.srcLine());
410 writeMermaidFile(baseName, s.hasCaption());
411 visitChildren(s);
413 }
414 break;
415 }
417}
QCString srcFile() const
Definition docnode.h:397
int srcLine() const
Definition docnode.h:398
bool hasCaption() const
Definition docnode.h:390
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
QCString engine() const
Definition docnode.h:393
@ JavaDocLiteral
Definition docnode.h:378
SrcLangExt getLanguageFromCodeLang(QCString &fileName)
Routine to handle the language attribute of the \code command.
Definition util.cpp:5232

References DocVerbatim::Code, Config_getBool, Config_getString, DocVerbatim::context(), DBG_RTF, DocVerbatim::DocbookOnly, DocVerbatim::Dot, DocVerbatim::engine(), DocVerbatim::exampleFile(), FALSE, filter(), DocVisitor::getCodeParser(), getLanguageFromCodeLang(), getStyle(), DocVerbatim::hasCaption(), DocVerbatim::HtmlOnly, includePicturePostRTF(), MermaidManager::instance(), PlantumlManager::instance(), QCString::isEmpty(), DocVerbatim::isExample(), DocVerbatim::JavaDocCode, DocVerbatim::JavaDocLiteral, DocVerbatim::language(), DocVerbatim::LatexOnly, m_ci, m_hide, m_langExt, m_lastIsPara, m_t, DocVerbatim::ManOnly, MermaidManager::MERM_BITMAP, DocVerbatim::Mermaid, DocVerbatim::Msc, CodeParserInterface::parseCode(), DocVerbatim::PlantUML, PlantumlManager::PUML_BITMAP, rtf_Style_Reset, DocVerbatim::RtfOnly, DocVerbatim::srcFile(), DocVerbatim::srcLine(), DocVerbatim::text(), TRUE, DocVerbatim::type(), DocVerbatim::Verbatim, visitChildren(), writeDotFile(), writeFileContents(), writeMermaidFile(), MermaidManager::writeMermaidSource(), writeMscFile(), writePlantUMLFile(), PlantumlManager::writePlantUMLSource(), and DocVerbatim::XmlOnly.

◆ operator()() [56/59]

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

Definition at line 1672 of file rtfdocvisitor.cpp.

1673{
1674}

◆ operator()() [57/59]

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

Definition at line 127 of file rtfdocvisitor.cpp.

128{
129 if (m_hide) return;
130 DBG_RTF("{\\comment RTFDocVisitor::visit(DocWhiteSpace)}\n");
131 if (m_insidePre)
132 {
133 m_t << w.chars();
134 }
135 else
136 {
137 m_t << " ";
138 }
140}
QCString chars() const
Definition docnode.h:358

References DocWhiteSpace::chars(), DBG_RTF, FALSE, m_hide, m_insidePre, m_lastIsPara, and m_t.

◆ operator()() [58/59]

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

Definition at line 109 of file rtfdocvisitor.cpp.

110{
111 if (m_hide) return;
112 DBG_RTF("{\\comment RTFDocVisitor::visit(DocWord)}\n");
113 filter(w.word());
115}
QCString word() const
Definition docnode.h:156

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

◆ operator()() [59/59]

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

Definition at line 1579 of file rtfdocvisitor.cpp.

1580{
1581 if (m_hide) return;
1582 if (x.title().isEmpty()) return;
1583 bool anonymousEnum = x.file()=="@";
1584 DBG_RTF("{\\comment RTFDocVisitor::operator()(const DocXRefItem &)}\n");
1585 if (!m_lastIsPara)
1586 {
1587 m_t << "\\par\n";
1589 }
1590 m_t << "{"; // start param list
1591 //m_t << "{\\b "; // start bold
1592 m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
1593 if (Config_getBool(RTF_HYPERLINKS) && !anonymousEnum)
1594 {
1595 QCString refName;
1596 if (!x.file().isEmpty())
1597 {
1598 refName+=stripPath(x.file());
1599 }
1600 if (!x.file().isEmpty() && !x.anchor().isEmpty())
1601 {
1602 refName+="_";
1603 }
1604 if (!x.anchor().isEmpty())
1605 {
1606 refName+=x.anchor();
1607 }
1608
1609 m_t << "{\\field "
1610 "{\\*\\fldinst "
1611 "{ HYPERLINK \\\\l \"" << rtfFormatBmkStr(refName) << "\" "
1612 "}{}"
1613 "}"
1614 "{\\fldrslt "
1615 "{\\cs37\\ul\\cf2 ";
1616 filter(x.title());
1617 m_t << "}"
1618 "}"
1619 "}";
1620 }
1621 else
1622 {
1623 filter(x.title());
1624 }
1625 m_t << ":";
1626 m_t << "\\par";
1627 m_t << "}"; // end bold
1629 m_t << rtf_Style_Reset << getStyle("DescContinue");
1631 visitChildren(x);
1632 if (x.title().isEmpty()) return;
1633 DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocXRefItem)}\n");
1634 m_t << "\\par\n";
1636 m_t << "}\n"; // end xref item
1638}
QCString anchor() const
Definition docnode.h:625
QCString file() const
Definition docnode.h:624
QCString title() const
Definition docnode.h:626

References DocXRefItem::anchor(), Config_getBool, DBG_RTF, decIndentLevel(), FALSE, DocXRefItem::file(), filter(), getStyle(), incIndentLevel(), QCString::isEmpty(), m_hide, m_lastIsPara, m_t, rtf_Style, rtf_Style_Reset, rtfFormatBmkStr(), stripPath(), DocXRefItem::title(), TRUE, and visitChildren().

◆ startLink()

void RTFDocVisitor::startLink ( const QCString & ref,
const QCString & file,
const QCString & anchor )
private

Definition at line 1718 of file rtfdocvisitor.cpp.

1719{
1720 if (ref.isEmpty() && Config_getBool(RTF_HYPERLINKS))
1721 {
1722 QCString refName;
1723 if (!file.isEmpty())
1724 {
1725 refName+=stripPath(file);
1726 }
1727 if (!file.isEmpty() && !anchor.isEmpty())
1728 {
1729 refName+='_';
1730 }
1731 if (!anchor.isEmpty())
1732 {
1733 refName+=anchor;
1734 }
1735
1736 m_t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \"";
1737 m_t << rtfFormatBmkStr(refName);
1738 m_t << "\" }{}";
1739 m_t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
1740 }
1741 else
1742 {
1743 m_t << "{\\b ";
1744 }
1746}

References Config_getBool, FALSE, QCString::isEmpty(), m_lastIsPara, m_t, rtfFormatBmkStr(), and stripPath().

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

◆ visitChildren()

◆ writeDiaFile()

void RTFDocVisitor::writeDiaFile ( const QCString & fileName,
bool hasCaption,
const QCString & srcFile,
int srcLine,
bool newFile = true )
private

Definition at line 1780 of file rtfdocvisitor.cpp.

1782{
1783 QCString baseName=makeBaseName(fileName,".dia");
1784 QCString outDir = Config_getString(RTF_OUTPUT);
1785 if (newFile) writeDiaGraphFromFile(fileName,outDir,baseName,DiaOutputFormat::BITMAP,srcFile,srcLine);
1786 includePicturePreRTF(baseName + ".png", true, hasCaption);
1787}
void writeDiaGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, DiaOutputFormat format, const QCString &srcFile, int srcLine)
Definition dia.cpp:26
QCString makeBaseName(const QCString &name, const QCString &ext)
Definition util.cpp:4968

References BITMAP, Config_getString, includePicturePreRTF(), makeBaseName(), and writeDiaGraphFromFile().

Referenced by operator()().

◆ writeDotFile()

void RTFDocVisitor::writeDotFile ( const QCString & fileName,
bool hasCaption,
const QCString & srcFile,
int srcLine,
bool newFile = true )
private

Definition at line 1761 of file rtfdocvisitor.cpp.

1763{
1764 QCString baseName=makeBaseName(filename,".dot");
1765 QCString outDir = Config_getString(RTF_OUTPUT);
1766 if (newFile) writeDotGraphFromFile(filename,outDir,baseName,GraphOutputFormat::BITMAP,srcFile,srcLine);
1767 QCString imgExt = getDotImageExtension();
1768 includePicturePreRTF(baseName + "." + imgExt, true, hasCaption);
1769}
void writeDotGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, GraphOutputFormat format, const QCString &srcFile, int srcLine)
Definition dot.cpp:230
QCString getDotImageExtension()
Definition util.cpp:6312

References BITMAP, Config_getString, getDotImageExtension(), includePicturePreRTF(), makeBaseName(), and writeDotGraphFromFile().

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

◆ writeMermaidFile()

void RTFDocVisitor::writeMermaidFile ( const QCString & fileName,
bool hasCaption )
private

Definition at line 1797 of file rtfdocvisitor.cpp.

1798{
1799 QCString baseName=makeBaseName(fileName,".mmd");
1800 QCString outDir = Config_getString(RTF_OUTPUT);
1802 includePicturePreRTF(baseName + ".png", true, hasCaption);
1803}
void generateMermaidOutput(const QCString &baseName, const QCString &outDir, OutputFormat format)
Register a generated Mermaid image with the index.
Definition mermaid.cpp:104

References Config_getString, MermaidManager::generateMermaidOutput(), includePicturePreRTF(), MermaidManager::instance(), makeBaseName(), and MermaidManager::MERM_BITMAP.

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

◆ writeMscFile()

void RTFDocVisitor::writeMscFile ( const QCString & fileName,
bool hasCaption,
const QCString & srcFile,
int srcLine,
bool newFile = true )
private

Definition at line 1771 of file rtfdocvisitor.cpp.

1773{
1774 QCString baseName=makeBaseName(fileName,".msc");
1775 QCString outDir = Config_getString(RTF_OUTPUT);
1776 if (newFile) writeMscGraphFromFile(fileName,outDir,baseName,MscOutputFormat::BITMAP,srcFile,srcLine);
1777 includePicturePreRTF(baseName + ".png", true, hasCaption);
1778}
void writeMscGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, MscOutputFormat format, const QCString &srcFile, int srcLine)
Definition msc.cpp:157

References BITMAP, Config_getString, includePicturePreRTF(), makeBaseName(), and writeMscGraphFromFile().

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

◆ writePlantUMLFile()

void RTFDocVisitor::writePlantUMLFile ( const QCString & fileName,
bool hasCaption )
private

Definition at line 1789 of file rtfdocvisitor.cpp.

1790{
1791 QCString baseName=makeBaseName(fileName,".pu");
1792 QCString outDir = Config_getString(RTF_OUTPUT);
1794 includePicturePreRTF(baseName + ".png", true, hasCaption);
1795}
void generatePlantUMLOutput(const QCString &baseName, const QCString &outDir, OutputFormat format)
Convert a PlantUML file to an image.
Definition plantuml.cpp:202

References Config_getString, PlantumlManager::generatePlantUMLOutput(), includePicturePreRTF(), PlantumlManager::instance(), makeBaseName(), and PlantumlManager::PUML_BITMAP.

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

Member Data Documentation

◆ m_ci

OutputCodeList& RTFDocVisitor::m_ci
private

Definition at line 143 of file rtfdocvisitor.h.

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

◆ m_hide

◆ m_hierarchyLevel

int RTFDocVisitor::m_hierarchyLevel = 0
private

Definition at line 151 of file rtfdocvisitor.h.

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

◆ m_indentLevel

int RTFDocVisitor::m_indentLevel = 0
private

Definition at line 150 of file rtfdocvisitor.h.

Referenced by decIndentLevel(), getListTable(), incIndentLevel(), and indentLevel().

◆ m_insidePre

bool RTFDocVisitor::m_insidePre = false
private

Definition at line 144 of file rtfdocvisitor.h.

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

◆ m_langExt

QCString RTFDocVisitor::m_langExt
private

Definition at line 147 of file rtfdocvisitor.h.

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

◆ m_lastIsPara

◆ m_listItemInfo

RTFListItemInfo RTFDocVisitor::m_listItemInfo[maxIndentLevels]
private

Definition at line 159 of file rtfdocvisitor.h.

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

◆ m_t

◆ maxIndentLevels

const int RTFDocVisitor::maxIndentLevels = 13
staticprivate

Definition at line 149 of file rtfdocvisitor.h.

Referenced by incIndentLevel(), and indentLevel().


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