Doxygen
RTFDocVisitor类 参考

Concrete visitor implementation for RTF output. 更多...

#include <rtfdocvisitor.h>

+ 类 RTFDocVisitor 继承关系图:
+ RTFDocVisitor 的协作图:

struct  RTFListItemInfo
 

Public 成员函数

 RTFDocVisitor (TextStream &t, CodeOutputInterface &ci, const QCString &langExt)
 
void visit (DocWord *)
 
void visit (DocLinkedWord *)
 
void visit (DocWhiteSpace *)
 
void visit (DocSymbol *)
 
void visit (DocEmoji *)
 
void visit (DocURL *)
 
void visit (DocLineBreak *)
 
void visit (DocHorRuler *)
 
void visit (DocStyleChange *)
 
void visit (DocVerbatim *)
 
void visit (DocAnchor *)
 
void visit (DocInclude *)
 
void visit (DocIncOperator *)
 
void visit (DocFormula *)
 
void visit (DocIndexEntry *)
 
void visit (DocSimpleSectSep *)
 
void visit (DocCite *)
 
void visitPre (DocAutoList *)
 
void visitPost (DocAutoList *)
 
void visitPre (DocAutoListItem *)
 
void visitPost (DocAutoListItem *)
 
void visitPre (DocPara *)
 
void visitPost (DocPara *)
 
void visitPre (DocRoot *)
 
void visitPost (DocRoot *)
 
void visitPre (DocSimpleSect *)
 
void visitPost (DocSimpleSect *)
 
void visitPre (DocTitle *)
 
void visitPost (DocTitle *)
 
void visitPre (DocSimpleList *)
 
void visitPost (DocSimpleList *)
 
void visitPre (DocSimpleListItem *)
 
void visitPost (DocSimpleListItem *)
 
void visitPre (DocSection *s)
 
void visitPost (DocSection *)
 
void visitPre (DocHtmlList *s)
 
void visitPost (DocHtmlList *s)
 
void visitPre (DocHtmlListItem *)
 
void visitPost (DocHtmlListItem *)
 
void visitPre (DocHtmlDescList *)
 
void visitPost (DocHtmlDescList *)
 
void visitPre (DocHtmlDescTitle *)
 
void visitPost (DocHtmlDescTitle *)
 
void visitPre (DocHtmlDescData *)
 
void visitPost (DocHtmlDescData *)
 
void visitPre (DocHtmlTable *t)
 
void visitPost (DocHtmlTable *t)
 
void visitPre (DocHtmlCaption *)
 
void visitPost (DocHtmlCaption *)
 
void visitPre (DocHtmlRow *)
 
void visitPost (DocHtmlRow *)
 
void visitPre (DocHtmlCell *)
 
void visitPost (DocHtmlCell *)
 
void visitPre (DocInternal *)
 
void visitPost (DocInternal *)
 
void visitPre (DocHRef *)
 
void visitPost (DocHRef *)
 
void visitPre (DocHtmlHeader *)
 
void visitPost (DocHtmlHeader *)
 
void visitPre (DocImage *)
 
void visitPost (DocImage *)
 
void visitPre (DocDotFile *)
 
void visitPost (DocDotFile *)
 
void visitPre (DocMscFile *)
 
void visitPost (DocMscFile *)
 
void visitPre (DocDiaFile *)
 
void visitPost (DocDiaFile *)
 
void visitPre (DocLink *)
 
void visitPost (DocLink *)
 
void visitPre (DocRef *ref)
 
void visitPost (DocRef *)
 
void visitPre (DocSecRefItem *)
 
void visitPost (DocSecRefItem *)
 
void visitPre (DocSecRefList *)
 
void visitPost (DocSecRefList *)
 
void visitPre (DocParamSect *)
 
void visitPost (DocParamSect *)
 
void visitPre (DocParamList *)
 
void visitPost (DocParamList *)
 
void visitPre (DocXRefItem *)
 
void visitPost (DocXRefItem *)
 
void visitPre (DocInternalRef *)
 
void visitPost (DocInternalRef *)
 
void visitPre (DocText *)
 
void visitPost (DocText *)
 
void visitPre (DocHtmlBlockQuote *)
 
void visitPost (DocHtmlBlockQuote *)
 
void visitPre (DocVhdlFlow *)
 
void visitPost (DocVhdlFlow *)
 
void visitPre (DocParBlock *)
 
void visitPost (DocParBlock *)
 
- Public 成员函数 继承自 DocVisitor
 DocVisitor (int id)
 
virtual ~DocVisitor ()
 
int id () const
 
CodeParserInterfacegetCodeParser (const QCString &langExt)
 
void pushHidden (bool hide)
 
bool popHidden ()
 

Private 成员函数

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)
 
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)
 
void writeDotFile (DocDotFile *)
 
void writeMscFile (const QCString &fileName, bool hasCaption, const QCString &srcFile, int srcLine)
 
void writeMscFile (DocMscFile *)
 
void writeDiaFile (DocDiaFile *)
 
void writePlantUMLFile (const QCString &fileName, bool hasCaption)
 

Private 属性

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

静态 Private 属性

static const int maxIndentLevels = 13
 

详细描述

Concrete visitor implementation for RTF output.

在文件 rtfdocvisitor.h31 行定义.

构造及析构函数说明

◆ RTFDocVisitor()

RTFDocVisitor::RTFDocVisitor ( TextStream t,
CodeOutputInterface ci,
const QCString langExt 
)

在文件 rtfdocvisitor.cpp58 行定义.

60  : DocVisitor(DocVisitor_RTF), m_t(t), m_ci(ci), m_langExt(langExt)
61 {
62 }

成员函数说明

◆ decIndentLevel()

void RTFDocVisitor::decIndentLevel ( )
private

在文件 rtfdocvisitor.cpp85 行定义.

86 {
88 }

引用了 m_indentLevel.

被这些函数引用 visitPost().

◆ endLink()

void RTFDocVisitor::endLink ( const QCString ref)
private

在文件 rtfdocvisitor.cpp1846 行定义.

1847 {
1848  if (ref.isEmpty() && Config_getBool(RTF_HYPERLINKS))
1849  {
1850  m_t << "}}}";
1851  }
1852  else
1853  {
1854  m_t << "}";
1855  }
1857 }

引用了 Config_getBool, FALSE, QCString::isEmpty(), m_lastIsPara , 以及 m_t.

被这些函数引用 visit() , 以及 visitPost().

◆ filter()

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

在文件 rtfdocvisitor.cpp1770 行定义.

1771 {
1772  if (!str.isEmpty())
1773  {
1774  const unsigned char *p=(const unsigned char *)str.data();
1775  unsigned char c;
1776  //unsigned char pc='\0';
1777  while (*p)
1778  {
1779  //static bool MultiByte = FALSE;
1780  c=*p++;
1781 
1782  //if ( MultiByte )
1783  //{
1784  // m_t << getMultiByte( c );
1785  // MultiByte = FALSE;
1786  // continue;
1787  //}
1788  //if ( c >= 0x80 )
1789  //{
1790  // MultiByte = TRUE;
1791  // m_t << getMultiByte( c );
1792  // continue;
1793  //}
1794 
1795  switch (c)
1796  {
1797  case '{': m_t << "\\{"; break;
1798  case '}': m_t << "\\}"; break;
1799  case '\\': m_t << "\\\\"; break;
1800  case '\n': if (verbatim)
1801  {
1802  m_t << "\\par\n";
1803  }
1804  else
1805  {
1806  m_t << '\n';
1807  }
1808  break;
1809  default: m_t << (char)c;
1810  }
1811  //pc = c;
1812  }
1813  }
1814 }

引用了 QCString::data(), QCString::isEmpty() , 以及 m_t.

被这些函数引用 visit() , 以及 visitPre().

◆ getStyle()

QCString RTFDocVisitor::getStyle ( const QCString name)
private

在文件 rtfdocvisitor.cpp64 行定义.

65 {
66  QCString n = name + QCString().setNum(indentLevel());
67  StyleData &sd = rtf_Style[n.str()];
68  return sd.reference();
69 }

引用了 indentLevel(), StyleData::reference(), rtf_Style, QCString::setNum() , 以及 QCString::str().

被这些函数引用 visit(), visitPost() , 以及 visitPre().

◆ incIndentLevel()

void RTFDocVisitor::incIndentLevel ( )
private

在文件 rtfdocvisitor.cpp76 行定义.

77 {
78  m_indentLevel++;
80  {
81  err("Maximum indent level (%d) exceeded while generating RTF output!\n",maxIndentLevels-1);
82  }
83 }

引用了 err(), m_indentLevel , 以及 maxIndentLevels.

被这些函数引用 visitPost() , 以及 visitPre().

◆ includePicturePostRTF()

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

在文件 rtfdocvisitor.cpp1282 行定义.

1283 {
1284  if (isTypeRTF)
1285  {
1286  if (m_hide) return;
1287  if (inlineImage)
1288  {
1289  if (hasCaption) m_t << " }";
1290  }
1291  else
1292  {
1293  if (hasCaption)
1294  {
1295  m_t << "}\n";
1296  m_t << "\\par}\n";
1297  }
1298  else
1299  {
1300  m_t << "}\n";
1301  }
1302  }
1303  }
1304  else
1305  {
1306  m_hide = popHidden();
1307  }
1308 }

引用了 m_hide, m_t , 以及 DocVisitor::popHidden().

被这些函数引用 visit() , 以及 visitPost().

◆ includePicturePreRTF()

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

在文件 rtfdocvisitor.cpp1239 行定义.

1240 {
1241  if (isTypeRTF)
1242  {
1243  if (!inlineImage)
1244  {
1245  m_t << "\\par\n";
1246  m_t << "{\n";
1247  m_t << rtf_Style_Reset << "\n";
1248  if (hasCaption || m_lastIsPara) m_t << "\\par\n";
1249  m_t << "\\pard \\qc ";
1250  }
1251  m_t << "{ \\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
1252  m_t << name;
1253  m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt Image}}\n";
1254  if (!inlineImage)
1255  {
1256  m_t << "\\par\n";
1257  if (hasCaption)
1258  {
1259  m_t << "\\pard \\qc \\b";
1260  m_t << "{Image \\field\\flddirty{\\*\\fldinst { SEQ Image \\\\*Arabic }}{\\fldrslt {\\noproof 1}} ";
1261  }
1263  }
1264  else
1265  {
1266  if (hasCaption) m_t << "{\\comment "; // to prevent caption to be shown
1267  }
1268  }
1269  else // other format -> skip
1270  {
1271  pushHidden(m_hide);
1272  m_hide=TRUE;
1273  }
1274 }

引用了 m_hide, m_lastIsPara, m_t, DocVisitor::pushHidden(), rtf_Style_Reset , 以及 TRUE.

被这些函数引用 visitPre(), writeDiaFile(), writeDotFile(), writeMscFile() , 以及 writePlantUMLFile().

◆ indentLevel()

int RTFDocVisitor::indentLevel ( ) const
private

在文件 rtfdocvisitor.cpp71 行定义.

72 {
73  return std::min(m_indentLevel,maxIndentLevels-1);
74 }

引用了 m_indentLevel , 以及 maxIndentLevels.

被这些函数引用 getStyle(), visitPost() , 以及 visitPre().

◆ startLink()

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

在文件 rtfdocvisitor.cpp1816 行定义.

1817 {
1818  if (ref.isEmpty() && Config_getBool(RTF_HYPERLINKS))
1819  {
1820  QCString refName;
1821  if (!file.isEmpty())
1822  {
1823  refName+=stripPath(file);
1824  }
1825  if (!file.isEmpty() && !anchor.isEmpty())
1826  {
1827  refName+='_';
1828  }
1829  if (!anchor.isEmpty())
1830  {
1831  refName+=anchor;
1832  }
1833 
1834  m_t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \"";
1835  m_t << rtfFormatBmkStr(refName);
1836  m_t << "\" }{}";
1837  m_t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
1838  }
1839  else
1840  {
1841  m_t << "{\\b ";
1842  }
1844 }

引用了 Config_getBool, FALSE, QCString::isEmpty(), m_lastIsPara, m_t, rtfFormatBmkStr() , 以及 stripPath().

被这些函数引用 visit() , 以及 visitPre().

◆ visit() [1/17]

void RTFDocVisitor::visit ( DocAnchor anc)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp406 行定义.

407 {
408  if (m_hide) return;
409  DBG_RTF("{\\comment RTFDocVisitor::visit(DocAnchor)}\n");
410  QCString anchor;
411  if (!anc->file().isEmpty())
412  {
413  anchor+=stripPath(anc->file());
414  }
415  if (!anc->file().isEmpty() && !anc->anchor().isEmpty())
416  {
417  anchor+="_";
418  }
419  if (!anc->anchor().isEmpty())
420  {
421  anchor+=anc->anchor();
422  }
423  m_t << "{\\bkmkstart " << rtfFormatBmkStr(anchor) << "}\n";
424  m_t << "{\\bkmkend " << rtfFormatBmkStr(anchor) << "}\n";
426 }

引用了 DocAnchor::anchor(), DBG_RTF, FALSE, DocAnchor::file(), QCString::isEmpty(), m_hide, m_lastIsPara, m_t, rtfFormatBmkStr() , 以及 stripPath().

◆ visit() [2/17]

void RTFDocVisitor::visit ( DocCite cite)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp636 行定义.

637 {
638  if (m_hide) return;
639  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocCite)}\n");
640  if (!cite->file().isEmpty())
641  {
642  startLink(cite->ref(),cite->file(),cite->anchor());
643  }
644  else
645  {
646  m_t << "{\\b ";
647  }
648  filter(cite->text());
649  if (!cite->file().isEmpty())
650  {
651  endLink(cite->ref());
652  }
653  else
654  {
655  m_t << "}";
656  }
657 }

引用了 DocCite::anchor(), DBG_RTF, endLink(), DocCite::file(), filter(), QCString::isEmpty(), m_hide, m_t, DocCite::ref(), startLink() , 以及 DocCite::text().

◆ visit() [3/17]

void RTFDocVisitor::visit ( DocEmoji s)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp143 行定义.

144 {
145  if (m_hide) return;
146  DBG_RTF("{\\comment RTFDocVisitor::visit(DocEmoji)}\n");
147  const char *res = EmojiEntityMapper::instance()->unicode(s->index());
148  if (res)
149  {
150  const char *p = res;
151  int val = 0;
152  int val1 = 0;
153  while (*p)
154  {
155  switch(*p)
156  {
157  case '&': case '#': case 'x':
158  break;
159  case ';':
160  val1 = val;
161  val = 0xd800 + ( ( val1 - 0x10000 ) & 0xffc00 ) / 0x400 - 0x10000;
162  m_t << "\\u" << val << "?";
163  val = 0xdC00 + ( ( val1 - 0x10000 ) & 0x3ff ) - 0x10000 ;
164  m_t << "\\u" << val << "?";
165  val = 0;
166  break;
167  case '0': case '1': case '2': case '3': case '4':
168  case '5': case '6': case '7': case '8': case '9':
169  val = val * 16 + *p - '0';
170  break;
171  case 'a': case 'b': case 'c': case 'd': case 'e': case 'f':
172  val = val * 16 + *p - 'a' + 10;
173  break;
174  }
175  p++;
176  }
177  }
178  else
179  {
180  m_t << s->name();
181  }
183 }

引用了 DBG_RTF, FALSE, DocEmoji::index(), EmojiEntityMapper::instance(), m_hide, m_lastIsPara, m_t, DocEmoji::name() , 以及 EmojiEntityMapper::unicode().

◆ visit() [4/17]

void RTFDocVisitor::visit ( DocFormula f)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp603 行定义.

604 {
605  if (m_hide) return;
606  DBG_RTF("{\\comment RTFDocVisitor::visit(DocFormula)}\n");
607  bool bDisplay = !f->isInline();
608  if (bDisplay)
609  {
610  m_t << "\\par";
611  m_t << "{";
612  m_t << "\\pard\\plain";
613  m_t << "\\pard";
614  m_t << "\\qc";
615  }
616  m_t << "{ \\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"" << f->relPath() << f->name() << ".png\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt Image}}";
617  if (bDisplay)
618  {
619  m_t << "\\par}";
620  }
622 }

引用了 DBG_RTF, FALSE, DocFormula::isInline(), m_hide, m_lastIsPara, m_t, DocFormula::name() , 以及 DocFormula::relPath().

◆ visit() [5/17]

void RTFDocVisitor::visit ( DocHorRuler )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp223 行定义.

224 {
225  if (m_hide) return;
226  DBG_RTF("{\\comment RTFDocVisitor::visit(DocHorRuler)}\n");
227  m_t << "{\\pard\\widctlpar\\brdrb\\brdrs\\brdrw5\\brsp20 \\adjustright \\par}\n";
229 }

引用了 DBG_RTF, m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visit() [6/17]

void RTFDocVisitor::visit ( DocInclude inc)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp428 行定义.

429 {
430  if (m_hide) return;
431  SrcLangExt langExt = getLanguageFromFileName(inc->extension());
432  DBG_RTF("{\\comment RTFDocVisitor::visit(DocInclude)}\n");
433  switch(inc->type())
434  {
436  {
437  m_t << "{\n";
438  m_t << "\\par\n";
439  m_t << rtf_Style_Reset << getStyle("CodeExample");
440  FileInfo cfi( inc->file().str() );
441  FileDef *fd = createFileDef( cfi.dirPath(), cfi.fileName() );
443  inc->text(),
444  langExt,
445  inc->isExample(),
446  inc->exampleFile(),
447  fd, // fileDef,
448  -1, // start line
449  -1, // end line
450  FALSE, // inline fragment
451  0, // memberDef
452  TRUE // show line numbers
453  );
454  delete fd;
455  m_t << "\\par";
456  m_t << "}\n";
457  }
458  break;
459  case DocInclude::Include:
460  m_t << "{\n";
461  m_t << "\\par\n";
462  m_t << rtf_Style_Reset << getStyle("CodeExample");
464  inc->text(),langExt,inc->isExample(),
465  inc->exampleFile(),
466  0, // fileDef
467  -1, // startLine
468  -1, // endLine
469  TRUE, // inlineFragment
470  0, // memberDef
471  FALSE // show line numbers
472  );
473  m_t << "\\par";
474  m_t << "}\n";
475  break;
483  break;
485  m_t << inc->text();
486  break;
488  m_t << "{\n";
489  m_t << "\\par\n";
490  m_t << rtf_Style_Reset << getStyle("CodeExample");
491  filter(inc->text());
492  m_t << "\\par";
493  m_t << "}\n";
494  break;
495  case DocInclude::Snippet:
496  m_t << "{\n";
497  if (!m_lastIsPara) m_t << "\\par\n";
498  m_t << rtf_Style_Reset << getStyle("CodeExample");
500  inc->context(),
501  extractBlock(inc->text(),inc->blockId()),
502  langExt,
503  inc->isExample(),
504  inc->exampleFile()
505  );
506  m_t << "}";
507  break;
509  {
510  FileInfo cfi( inc->file().str() );
511  FileDef *fd = createFileDef( cfi.dirPath(), cfi.fileName() );
512  m_t << "{\n";
513  if (!m_lastIsPara) m_t << "\\par\n";
514  m_t << rtf_Style_Reset << getStyle("CodeExample");
516  inc->context(),
517  extractBlock(inc->text(),inc->blockId()),
518  langExt,
519  inc->isExample(),
520  inc->exampleFile(),
521  fd,
522  lineBlock(inc->text(),inc->blockId()),
523  -1, // endLine
524  FALSE, // inlineFragment
525  0, // memberDef
526  TRUE // show line number
527  );
528  delete fd;
529  m_t << "}";
530  }
531  break;
534  err("Internal inconsistency: found switch SnippetDoc / IncludeDoc in file: %s"
535  "Please create a bug report\n",__FILE__);
536  break;
537  }
539 }

引用了 DocInclude::blockId(), DocInclude::context(), createFileDef(), DBG_RTF, FileInfo::dirPath(), DocInclude::DocbookInclude, DocInclude::DontInclude, DocInclude::DontIncWithLines, err(), DocInclude::exampleFile(), DocInclude::extension(), extractBlock(), FALSE, DocInclude::file(), FileInfo::fileName(), filter(), DocVisitor::getCodeParser(), getLanguageFromFileName(), getStyle(), DocInclude::HtmlInclude, DocInclude::Include, DocInclude::IncludeDoc, DocInclude::IncWithLines, DocInclude::isExample(), DocInclude::LatexInclude, lineBlock(), m_ci, m_hide, m_lastIsPara, m_t, DocInclude::ManInclude, CodeParserInterface::parseCode(), rtf_Style_Reset, DocInclude::RtfInclude, DocInclude::Snippet, DocInclude::SnippetDoc, DocInclude::SnipWithLines, QCString::str(), DocInclude::text(), TRUE, DocInclude::type(), DocInclude::VerbInclude , 以及 DocInclude::XmlInclude.

◆ visit() [7/17]

void RTFDocVisitor::visit ( DocIncOperator op)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp541 行定义.

542 {
543  //printf("DocIncOperator: type=%d first=%d, last=%d text='%s'\n",
544  // op->type(),op->isFirst(),op->isLast(),qPrint(op->text()));
545  DBG_RTF("{\\comment RTFDocVisitor::visit(DocIncOperator)}\n");
546  QCString locLangExt = getFileNameExtension(op->includeFileName());
547  if (locLangExt.isEmpty()) locLangExt = m_langExt;
548  SrcLangExt langExt = getLanguageFromFileName(locLangExt);
549  if (op->isFirst())
550  {
551  if (!m_hide)
552  {
553  m_t << "{\n";
554  m_t << "\\par\n";
555  m_t << rtf_Style_Reset << getStyle("CodeExample");
556  }
558  m_hide = TRUE;
559  }
560  if (op->type()!=DocIncOperator::Skip)
561  {
562  m_hide = popHidden();
563  if (!m_hide)
564  {
565  FileDef *fd = 0;
566  if (!op->includeFileName().isEmpty())
567  {
568  FileInfo cfi( op->includeFileName().str() );
569  fd = createFileDef( cfi.dirPath(), cfi.fileName() );
570  }
571 
572  getCodeParser(locLangExt).parseCode(m_ci,op->context(),op->text(),langExt,
573  op->isExample(),op->exampleFile(),
574  fd, // fileDef
575  op->line(), // startLine
576  -1, // endLine
577  FALSE, // inline fragment
578  0, // memberDef
579  op->showLineNo() // show line numbers
580  );
581  if (fd) delete fd;
582  }
584  m_hide=TRUE;
585  }
586  if (op->isLast())
587  {
588  m_hide = popHidden();
589  if (!m_hide)
590  {
591  m_t << "\\par";
592  m_t << "}\n";
593  }
595  }
596  else
597  {
598  if (!m_hide) m_t << "\n";
600  }
601 }

引用了 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, DocIncOperator::showLineNo(), DocIncOperator::Skip, QCString::str(), DocIncOperator::text(), TRUE , 以及 DocIncOperator::type().

◆ visit() [8/17]

void RTFDocVisitor::visit ( DocIndexEntry i)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp624 行定义.

625 {
626  if (m_hide) return;
627  DBG_RTF("{\\comment RTFDocVisitor::visit(DocIndexEntry)}\n");
628  m_t << "{\\xe \\v " << i->entry() << "}\n";
630 }

引用了 DBG_RTF, DocIndexEntry::entry(), FALSE, m_hide, m_lastIsPara , 以及 m_t.

◆ visit() [9/17]

void RTFDocVisitor::visit ( DocLineBreak )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp215 行定义.

216 {
217  if (m_hide) return;
218  DBG_RTF("{\\comment RTFDocVisitor::visit(DocLineBreak)}\n");
219  m_t << "\\par\n";
221 }

引用了 DBG_RTF, m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visit() [10/17]

void RTFDocVisitor::visit ( DocLinkedWord w)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp102 行定义.

103 {
104  if (m_hide) return;
105  DBG_RTF("{\\comment RTFDocVisitor::visit(DocLinkedWord)}\n");
106  startLink(w->ref(),w->file(),w->anchor());
107  filter(w->word());
108  endLink(w->ref());
110 }

引用了 DocLinkedWord::anchor(), DBG_RTF, endLink(), FALSE, DocLinkedWord::file(), filter(), m_hide, m_lastIsPara, DocLinkedWord::ref(), startLink() , 以及 DocLinkedWord::word().

◆ visit() [11/17]

void RTFDocVisitor::visit ( DocSimpleSectSep )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp632 行定义.

633 {
634 }

◆ visit() [12/17]

void RTFDocVisitor::visit ( DocStyleChange s)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp231 行定义.

232 {
233  if (m_hide) return;
235  DBG_RTF("{\\comment RTFDocVisitor::visit(DocStyleChange)}\n");
236  switch (s->style())
237  {
239  if (s->enable()) m_t << "{\\b "; else m_t << "} ";
240  break;
241  case DocStyleChange::S:
243  case DocStyleChange::Del:
244  if (s->enable()) m_t << "{\\strike "; else m_t << "} ";
245  break;
247  case DocStyleChange::Ins:
248  if (s->enable()) m_t << "{\\ul "; else m_t << "} ";
249  break;
251  if (s->enable()) m_t << "{\\i "; else m_t << "} ";
252  break;
254  if (s->enable()) m_t << "{\\f2 "; else m_t << "} ";
255  break;
257  if (s->enable()) m_t << "{\\sub "; else m_t << "} ";
258  break;
260  if (s->enable()) m_t << "{\\super "; else m_t << "} ";
261  break;
263  if (s->enable()) m_t << "{\\qc "; else m_t << "} ";
264  break;
266  if (s->enable()) m_t << "{\\sub "; else m_t << "} ";
267  break;
269  if (s->enable())
270  {
271  m_t << "{\n";
272  m_t << "\\par\n";
273  m_t << rtf_Style_Reset << getStyle("CodeExample");
275  }
276  else
277  {
279  m_t << "\\par";
280  m_t << "}\n";
281  }
283  break;
284  case DocStyleChange::Div: /* HTML only */ break;
285  case DocStyleChange::Span: /* HTML only */ break;
286  }
287 }

引用了 DocStyleChange::Bold, DocStyleChange::Center, DocStyleChange::Code, DBG_RTF, DocStyleChange::Del, DocStyleChange::Div, DocStyleChange::enable(), FALSE, getStyle(), DocStyleChange::Ins, DocStyleChange::Italic, 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::Underline.

◆ visit() [13/17]

void RTFDocVisitor::visit ( DocSymbol s)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp127 行定义.

128 {
129  if (m_hide) return;
130  DBG_RTF("{\\comment RTFDocVisitor::visit(DocSymbol)}\n");
131  const char *res = HtmlEntityMapper::instance()->rtf(s->symbol());
132  if (res)
133  {
134  m_t << res;
135  }
136  else
137  {
138  err("RTF: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance()->html(s->symbol(),TRUE));
139  }
141 }

引用了 DBG_RTF, err(), FALSE, HtmlEntityMapper::instance(), m_hide, m_lastIsPara, m_t, HtmlEntityMapper::rtf(), DocSymbol::symbol() , 以及 TRUE.

◆ visit() [14/17]

void RTFDocVisitor::visit ( DocURL u)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp185 行定义.

186 {
187  if (m_hide) return;
188  DBG_RTF("{\\comment RTFDocVisitor::visit(DocURL)}\n");
189  if (Config_getBool(RTF_HYPERLINKS))
190  {
191  m_t << "{\\field "
192  "{\\*\\fldinst "
193  "{ HYPERLINK \"";
194  if (u->isEmail()) m_t << "mailto:";
195  m_t << u->url();
196  m_t << "\" }"
197  "{}";
198  m_t << "}"
199  "{\\fldrslt "
200  "{\\cs37\\ul\\cf2 ";
201  filter(u->url());
202  m_t << "}"
203  "}"
204  "}\n";
205  }
206  else
207  {
208  m_t << "{\\f2 ";
209  filter(u->url());
210  m_t << "}";
211  }
213 }

引用了 Config_getBool, DBG_RTF, FALSE, filter(), DocURL::isEmail(), m_hide, m_lastIsPara, m_t , 以及 DocURL::url().

◆ visit() [15/17]

void RTFDocVisitor::visit ( DocVerbatim s)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp294 行定义.

295 {
296  if (m_hide) return;
297  DBG_RTF("{\\comment RTFDocVisitor::visit(DocVerbatim)}\n");
298  QCString lang = m_langExt;
299  if (!s->language().isEmpty()) // explicit language setting
300  {
301  lang = s->language();
302  }
303  SrcLangExt langExt = getLanguageFromCodeLang(lang);
304  switch(s->type())
305  {
306  case DocVerbatim::Code:
307  m_t << "{\n";
308  m_t << "\\par\n";
309  m_t << rtf_Style_Reset << getStyle("CodeExample");
310  getCodeParser(lang).parseCode(m_ci,s->context(),s->text(),langExt,
311  s->isExample(),s->exampleFile());
312  //m_t << "\\par\n";
313  m_t << "}\n";
314  break;
316  m_t << "{\n";
317  m_t << "\\par\n";
318  m_t << rtf_Style_Reset << getStyle("CodeExample");
319  filter(s->text(),TRUE);
320  //m_t << "\\par\n";
321  m_t << "}\n";
322  break;
324  m_t << s->text();
325  break;
331  /* nothing */
332  break;
333  case DocVerbatim::Dot:
334  {
335  static int dotindex = 1;
336  QCString fileName(4096);
337 
338  fileName.sprintf("%s%d%s",
339  qPrint(Config_getString(RTF_OUTPUT)+"/inline_dotgraph_"),
340  dotindex++,
341  ".dot"
342  );
343  std::ofstream file(fileName.str(),std::ofstream::out | std::ofstream::binary);
344  if (!file.is_open())
345  {
346  err("Could not open file %s for writing\n",qPrint(fileName));
347  }
348  else
349  {
350  QCString stext = s->text();
351  file.write( stext.data(), stext.length() );
352  file.close();
353  }
354 
355  writeDotFile(fileName, s->hasCaption(), s->srcFile(), s->srcLine());
356  visitCaption(this, s->children());
357  includePicturePostRTF(true, s->hasCaption());
358 
359  if (Config_getBool(DOT_CLEANUP)) Dir().remove(fileName.str());
360  }
361  break;
362  case DocVerbatim::Msc:
363  {
364  static int mscindex = 1;
365  QCString baseName(4096);
366 
367  baseName.sprintf("%s%d%s",
368  qPrint(Config_getString(RTF_OUTPUT)+"/inline_mscgraph_"),
369  mscindex++,
370  ".msc"
371  );
372  std::ofstream file(baseName.str(),std::ofstream::out | std::ofstream::binary);
373  if (!file.is_open())
374  {
375  err("Could not open file %s for writing\n",qPrint(baseName));
376  }
377  QCString text = "msc {";
378  text+=s->text();
379  text+="}";
380  file.write( text.data(), text.length() );
381  file.close();
382 
383  writeMscFile(baseName, s->hasCaption(), s->srcFile(), s->srcLine());
384  visitCaption(this, s->children());
385  includePicturePostRTF(true, s->hasCaption());
386 
387  if (Config_getBool(DOT_CLEANUP)) Dir().remove(baseName.str());
388  }
389  break;
391  {
392  static QCString rtfOutput = Config_getString(RTF_OUTPUT);
394  rtfOutput,s->exampleFile(),s->text(),PlantumlManager::PUML_BITMAP,
395  s->engine(),s->srcFile(),s->srcLine());
396 
397  writePlantUMLFile(baseName, s->hasCaption());
398  visitCaption(this, s->children());
399  includePicturePostRTF(true, s->hasCaption());
400  }
401  break;
402  }
404 }

引用了 DocVerbatim::children(), DocVerbatim::Code, Config_getBool, Config_getString, DocVerbatim::context(), QCString::data(), DBG_RTF, DocVerbatim::DocbookOnly, DocVerbatim::Dot, DocVerbatim::engine(), err(), DocVerbatim::exampleFile(), FALSE, filter(), DocVisitor::getCodeParser(), getLanguageFromCodeLang(), getStyle(), DocVerbatim::hasCaption(), DocVerbatim::HtmlOnly, includePicturePostRTF(), PlantumlManager::instance(), QCString::isEmpty(), DocVerbatim::isExample(), DocVerbatim::language(), DocVerbatim::LatexOnly, QCString::length(), m_ci, m_hide, m_langExt, m_lastIsPara, m_t, DocVerbatim::ManOnly, DocVerbatim::Msc, CodeParserInterface::parseCode(), DocVerbatim::PlantUML, PlantumlManager::PUML_BITMAP, qPrint(), Dir::remove(), rtf_Style_Reset, DocVerbatim::RtfOnly, QCString::sprintf(), DocVerbatim::srcFile(), DocVerbatim::srcLine(), QCString::str(), DocVerbatim::text(), TRUE, DocVerbatim::type(), DocVerbatim::Verbatim, visitCaption(), writeDotFile(), writeMscFile(), writePlantUMLFile(), PlantumlManager::writePlantUMLSource() , 以及 DocVerbatim::XmlOnly.

◆ visit() [16/17]

void RTFDocVisitor::visit ( DocWhiteSpace w)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp112 行定义.

113 {
114  if (m_hide) return;
115  DBG_RTF("{\\comment RTFDocVisitor::visit(DocWhiteSpace)}\n");
116  if (m_insidePre)
117  {
118  m_t << w->chars();
119  }
120  else
121  {
122  m_t << " ";
123  }
125 }

引用了 DocWhiteSpace::chars(), DBG_RTF, FALSE, m_hide, m_insidePre, m_lastIsPara , 以及 m_t.

◆ visit() [17/17]

void RTFDocVisitor::visit ( DocWord w)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp94 行定义.

95 {
96  if (m_hide) return;
97  DBG_RTF("{\\comment RTFDocVisitor::visit(DocWord)}\n");
98  filter(w->word());
100 }

引用了 DBG_RTF, FALSE, filter(), m_hide, m_lastIsPara , 以及 DocWord::word().

被这些函数引用 visitPre().

◆ visitPost() [1/37]

void RTFDocVisitor::visitPost ( DocAutoList )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp676 行定义.

677 {
678  if (m_hide) return;
679  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocAutoList)}\n");
680  if (!m_lastIsPara) m_t << "\\par";
681  m_t << "}\n";
683  if (indentLevel()==0) m_t << "\\par\n";
684 }

引用了 DBG_RTF, indentLevel(), m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visitPost() [2/37]

void RTFDocVisitor::visitPost ( DocAutoListItem )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp707 行定义.

708 {
709  decIndentLevel();
710  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocAutoListItem)}\n");
711 }

引用了 DBG_RTF , 以及 decIndentLevel().

◆ visitPost() [3/37]

void RTFDocVisitor::visitPost ( DocDiaFile df)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1339 行定义.

1340 {
1341  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocDiaFile)}\n");
1342  includePicturePostRTF(true, df->hasCaption());
1343 }

引用了 DBG_RTF, DocDiagramFileBase< T >::hasCaption() , 以及 includePicturePostRTF().

◆ visitPost() [4/37]

void RTFDocVisitor::visitPost ( DocDotFile df)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1316 行定义.

1317 {
1318  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocDotFile)}\n");
1319  includePicturePostRTF(true, df->hasCaption());
1320 }

引用了 DBG_RTF, DocDiagramFileBase< T >::hasCaption() , 以及 includePicturePostRTF().

◆ visitPost() [5/37]

void RTFDocVisitor::visitPost ( DocHRef )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1191 行定义.

1192 {
1193  if (m_hide) return;
1194  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHRef)}\n");
1195  if (Config_getBool(RTF_HYPERLINKS))
1196  {
1197  m_t << "}"
1198  "}"
1199  "}";
1200  }
1201  else
1202  {
1203  m_t << "}";
1204  }
1206 }

引用了 Config_getBool, DBG_RTF, FALSE, m_hide, m_lastIsPara , 以及 m_t.

◆ visitPost() [6/37]

void RTFDocVisitor::visitPost ( DocHtmlBlockQuote )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1732 行定义.

1733 {
1734  if (m_hide) return;
1735  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlBlockQuote)}\n");
1736  if (!m_lastIsPara) m_t << "\\par\n";
1737  decIndentLevel();
1738  m_t << "}"; // end desc
1740 }

引用了 DBG_RTF, decIndentLevel(), m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visitPost() [7/37]

void RTFDocVisitor::visitPost ( DocHtmlCaption )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1069 行定义.

1070 {
1071  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlCaption)}\n");
1072  m_t << "}\n\\par\n";
1073 }

引用了 DBG_RTF , 以及 m_t.

◆ visitPost() [8/37]

void RTFDocVisitor::visitPost ( DocHtmlCell )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1122 行定义.

1123 {
1124  if (m_hide) return;
1125  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlCell)}\n");
1126  m_t << "\\cell }";
1128 }

引用了 DBG_RTF, FALSE, m_hide, m_lastIsPara , 以及 m_t.

◆ visitPost() [9/37]

void RTFDocVisitor::visitPost ( DocHtmlDescData )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1035 行定义.

1036 {
1037  if (m_hide) return;
1038  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlDescData)}\n");
1039  m_t << "\\par";
1040  m_t << "}\n";
1041  decIndentLevel();
1043 }

引用了 DBG_RTF, decIndentLevel(), m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visitPost() [10/37]

void RTFDocVisitor::visitPost ( DocHtmlDescList )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp999 行定义.

1000 {
1001  if (m_hide) return;
1002  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlDescList)}\n");
1003  //m_t << "}\n";
1004  //m_t << "\\par\n";
1005  //m_lastIsPara=TRUE;
1006 }

引用了 DBG_RTF , 以及 m_hide.

◆ visitPost() [11/37]

void RTFDocVisitor::visitPost ( DocHtmlDescTitle )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1018 行定义.

1019 {
1020  if (m_hide) return;
1021  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlDescTitle)}\n");
1022  m_t << "\\par\n";
1023  m_t << "}\n";
1025 }

引用了 DBG_RTF, m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visitPost() [12/37]

void RTFDocVisitor::visitPost ( DocHtmlHeader )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1224 行定义.

1225 {
1226  if (m_hide) return;
1227  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlHeader)}\n");
1228  // close open table of contents entry
1229  m_t << "} \\par";
1230  m_t << "}\n"; // end section
1232 }

引用了 DBG_RTF, m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visitPost() [13/37]

void RTFDocVisitor::visitPost ( DocHtmlList s)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp925 行定义.

926 {
927  if (m_hide) return;
928  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlList)}\n");
929  m_t << "\\par" << "}\n";
931 }

引用了 DBG_RTF, m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visitPost() [14/37]

void RTFDocVisitor::visitPost ( DocHtmlListItem )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp984 行定义.

985 {
986  decIndentLevel();
987  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlListItem)}\n");
988 }

引用了 DBG_RTF , 以及 decIndentLevel().

◆ visitPost() [15/37]

void RTFDocVisitor::visitPost ( DocHtmlRow )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1104 行定义.

1105 {
1106  if (m_hide) return;
1107  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlRow)}\n");
1108  m_t << "\n";
1109  m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
1110  m_t << "{\\row }\n";
1112 }

引用了 DBG_RTF, FALSE, m_hide, m_lastIsPara , 以及 m_t.

◆ visitPost() [16/37]

void RTFDocVisitor::visitPost ( DocHtmlTable t)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1053 行定义.

1054 {
1055  if (m_hide) return;
1056  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlTable)}\n");
1057  m_t << "\\pard\\plain\n";
1058  m_t << "\\par\n";
1060 }

引用了 DBG_RTF, m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visitPost() [17/37]

void RTFDocVisitor::visitPost ( DocImage img)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1276 行定义.

1277 {
1278  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocImage)}\n");
1280 }

引用了 DBG_RTF, DocImage::hasCaption(), includePicturePostRTF(), DocImage::isInlineImage(), DocImage::Rtf , 以及 DocImage::type().

◆ visitPost() [18/37]

void RTFDocVisitor::visitPost ( DocInternal )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1144 行定义.

1145 {
1146  if (m_hide) return;
1147  //DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocInternal)}\n");
1148  //m_t << "\\par";
1149  //decIndentLevel();
1150  //m_t << "}"; // end desc
1151  //m_lastIsPara=TRUE;
1152 }

引用了 m_hide.

◆ visitPost() [19/37]

void RTFDocVisitor::visitPost ( DocInternalRef )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1702 行定义.

1703 {
1704  if (m_hide) return;
1705  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocInternalRef)}\n");
1706  endLink("");
1707  m_t << " ";
1708 }

引用了 DBG_RTF, endLink(), m_hide , 以及 m_t.

◆ visitPost() [20/37]

void RTFDocVisitor::visitPost ( DocLink lnk)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1352 行定义.

1353 {
1354  if (m_hide) return;
1355  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocLink)}\n");
1356  endLink(lnk->ref());
1357 }

引用了 DBG_RTF, endLink(), m_hide , 以及 DocLink::ref().

◆ visitPost() [21/37]

void RTFDocVisitor::visitPost ( DocMscFile df)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1327 行定义.

1328 {
1329  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocMscFile)}\n");
1330  includePicturePostRTF(true, df->hasCaption());
1331 }

引用了 DBG_RTF, DocDiagramFileBase< T >::hasCaption() , 以及 includePicturePostRTF().

◆ visitPost() [22/37]

void RTFDocVisitor::visitPost ( DocPara p)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp718 行定义.

719 {
720  if (m_hide) return;
721  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocPara)}\n");
722  if (!m_lastIsPara &&
723  !p->isLast() && // omit <p> for last paragraph
724  !(p->parent() && // and for parameters & sections
726  )
727  )
728  {
729  m_t << "\\par\n";
731  }
732 }

引用了 DBG_RTF, DocPara::isLast(), DocNode::kind(), DocNode::Kind_ParamSect, m_hide, m_lastIsPara, m_t, DocNode::parent() , 以及 TRUE.

◆ visitPost() [23/37]

void RTFDocVisitor::visitPost ( DocParamList pl)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1600 行定义.

1601 {
1602  if (m_hide) return;
1603  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocParamList)}\n");
1604 
1606  //DocParamSect *sect = 0;
1607  if (pl->parent() && pl->parent()->kind()==DocNode::Kind_ParamSect)
1608  {
1609  parentType = ((DocParamSect*)pl->parent())->type();
1610  //sect=(DocParamSect*)pl->parent();
1611  }
1612  bool useTable = parentType==DocParamSect::Param ||
1613  parentType==DocParamSect::RetVal ||
1614  parentType==DocParamSect::Exception ||
1615  parentType==DocParamSect::TemplateParam;
1616  if (useTable)
1617  {
1618  m_t << "\\cell }\n";
1619  //m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
1620  m_t << "{\\row }\n";
1621  }
1622  else
1623  {
1624  m_t << "\\par\n";
1625  }
1626 
1628 }

引用了 DBG_RTF, DocParamSect::Exception, DocNode::kind(), DocNode::Kind_ParamSect, m_hide, m_lastIsPara, m_t, DocParamSect::Param, DocNode::parent(), DocParamSect::RetVal, DocParamSect::TemplateParam, TRUE , 以及 DocParamSect::Unknown.

◆ visitPost() [24/37]

void RTFDocVisitor::visitPost ( DocParamSect s)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1451 行定义.

1452 {
1453  if (m_hide) return;
1454  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocParamSect)}\n");
1455  //m_t << "\\par\n";
1456  bool useTable = s->type()==DocParamSect::Param ||
1457  s->type()==DocParamSect::RetVal ||
1458  s->type()==DocParamSect::Exception ||
1460  if (!useTable)
1461  {
1462  decIndentLevel();
1463  }
1464  m_t << "}\n";
1465 }

引用了 DBG_RTF, decIndentLevel(), DocParamSect::Exception, m_hide, m_t, DocParamSect::Param, DocParamSect::RetVal, DocParamSect::TemplateParam , 以及 DocParamSect::type().

◆ visitPost() [25/37]

void RTFDocVisitor::visitPost ( DocParBlock )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1757 行定义.

1758 {
1759  if (m_hide) return;
1760 }

引用了 m_hide.

◆ visitPost() [26/37]

void RTFDocVisitor::visitPost ( DocRef ref)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1376 行定义.

1377 {
1378  if (m_hide) return;
1379  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocRef)}\n");
1380  if (!ref->file().isEmpty()) endLink(ref->ref());
1381  //m_t << " ";
1382 }

引用了 DBG_RTF, endLink(), DocRef::file(), QCString::isEmpty(), m_hide , 以及 DocRef::ref().

◆ visitPost() [27/37]

void RTFDocVisitor::visitPost ( DocRoot r)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp742 行定义.

743 {
744  if (m_hide) return;
745  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocRoot)}\n");
746  if (!m_lastIsPara && !r->singleLine()) m_t << "\\par\n";
747  m_t << "}";
749  if (r->indent()) decIndentLevel();
750 }

引用了 DBG_RTF, decIndentLevel(), DocRoot::indent(), m_hide, m_lastIsPara, m_t, DocRoot::singleLine() , 以及 TRUE.

◆ visitPost() [28/37]

void RTFDocVisitor::visitPost ( DocSecRefItem )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1390 行定义.

1391 {
1392  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocSecRefItem)}\n");
1393 }

引用了 DBG_RTF.

◆ visitPost() [29/37]

void RTFDocVisitor::visitPost ( DocSecRefList )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1406 行定义.

1407 {
1408  if (m_hide) return;
1409  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocSecRefList)}\n");
1410  decIndentLevel();
1411  m_t << "\\par";
1412  m_t << "}\n";
1414 }

引用了 DBG_RTF, decIndentLevel(), m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visitPost() [30/37]

void RTFDocVisitor::visitPost ( DocSection )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp892 行定义.

893 {
894  if (m_hide) return;
895  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocSection)}\n");
896  m_t << "\\par}\n"; // end section
898 }

引用了 DBG_RTF, m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visitPost() [31/37]

void RTFDocVisitor::visitPost ( DocSimpleList )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp845 行定义.

846 {
847  if (m_hide) return;
848  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocSimpleSect)}\n");
849  if (!m_lastIsPara) m_t << "\\par\n";
850  m_t << "}\n";
852 }

引用了 DBG_RTF, m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visitPost() [32/37]

void RTFDocVisitor::visitPost ( DocSimpleListItem )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp863 行定义.

864 {
865  decIndentLevel();
866  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocSimpleListItem)}\n");
867 }

引用了 DBG_RTF , 以及 decIndentLevel().

◆ visitPost() [33/37]

void RTFDocVisitor::visitPost ( DocSimpleSect s)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp809 行定义.

810 {
811  if (m_hide) return;
812  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocSimpleSect)}\n");
813  if (!m_lastIsPara) m_t << "\\par\n";
814  decIndentLevel();
815  if (s->type()!=DocSimpleSect::User && s->type()!=DocSimpleSect::Rcs) m_t << "}";
816  m_t << "}"; // end desc
818 }

引用了 DBG_RTF, decIndentLevel(), m_hide, m_lastIsPara, m_t, DocSimpleSect::Rcs, TRUE, DocSimpleSect::type() , 以及 DocSimpleSect::User.

◆ visitPost() [34/37]

void RTFDocVisitor::visitPost ( DocText )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1716 行定义.

1717 {
1718  if (m_hide) return;
1719  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocText)}\n");
1720 }

引用了 DBG_RTF , 以及 m_hide.

◆ visitPost() [35/37]

void RTFDocVisitor::visitPost ( DocTitle )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp825 行定义.

826 {
827  if (m_hide) return;
828  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocTitle)}\n");
829  m_t << "\\par\n";
830  m_t << "}"; // end bold
831  incIndentLevel();
832  m_t << rtf_Style_Reset << getStyle("DescContinue");
834 }

引用了 DBG_RTF, FALSE, getStyle(), incIndentLevel(), m_hide, m_lastIsPara, m_t , 以及 rtf_Style_Reset.

◆ visitPost() [36/37]

void RTFDocVisitor::visitPost ( DocVhdlFlow )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1747 行定义.

1748 {
1749  if (m_hide) return;
1750 }

引用了 m_hide.

◆ visitPost() [37/37]

void RTFDocVisitor::visitPost ( DocXRefItem x)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1684 行定义.

1685 {
1686  if (m_hide) return;
1687  if (x->title().isEmpty()) return;
1688  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocXRefItem)}\n");
1689  m_t << "\\par\n";
1690  decIndentLevel();
1691  m_t << "}\n"; // end xref item
1693 }

引用了 DBG_RTF, decIndentLevel(), QCString::isEmpty(), m_hide, m_lastIsPara, m_t, DocXRefItem::title() , 以及 TRUE.

◆ visitPre() [1/37]

void RTFDocVisitor::visitPre ( DocAutoList l)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp664 行定义.

665 {
666  if (m_hide) return;
667  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocAutoList)}\n");
668  m_t << "{\n";
669  int level = indentLevel();
670  m_listItemInfo[level].isEnum = l->isEnumList();
671  m_listItemInfo[level].type = '1';
672  m_listItemInfo[level].number = 1;
674 }

引用了 DBG_RTF, FALSE, indentLevel(), RTFDocVisitor::RTFListItemInfo::isEnum, DocAutoList::isEnumList(), m_hide, m_lastIsPara, m_listItemInfo, m_t, RTFDocVisitor::RTFListItemInfo::number , 以及 RTFDocVisitor::RTFListItemInfo::type.

◆ visitPre() [2/37]

void RTFDocVisitor::visitPre ( DocAutoListItem )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp686 行定义.

687 {
688  if (m_hide) return;
689  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocAutoListItem)}\n");
690  if (!m_lastIsPara) m_t << "\\par\n";
691  m_t << rtf_Style_Reset;
692  int level = indentLevel();
693  if (m_listItemInfo[level].isEnum)
694  {
695  m_t << getStyle("ListEnum") << "\n";
696  m_t << m_listItemInfo[level].number << ".\\tab ";
697  m_listItemInfo[level].number++;
698  }
699  else
700  {
701  m_t << getStyle("ListBullet") << "\n";
702  }
703  incIndentLevel();
705 }

引用了 DBG_RTF, FALSE, getStyle(), incIndentLevel(), indentLevel(), m_hide, m_lastIsPara, m_listItemInfo, m_t, RTFDocVisitor::RTFListItemInfo::number , 以及 rtf_Style_Reset.

◆ visitPre() [3/37]

void RTFDocVisitor::visitPre ( DocDiaFile df)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1333 行定义.

1334 {
1335  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocDiaFile)}\n");
1336  writeDiaFile(df);
1337 }

引用了 DBG_RTF , 以及 writeDiaFile().

◆ visitPre() [4/37]

void RTFDocVisitor::visitPre ( DocDotFile df)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1310 行定义.

1311 {
1312  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocDotFile)}\n");
1313  writeDotFile(df);
1314 }

引用了 DBG_RTF , 以及 writeDotFile().

◆ visitPre() [5/37]

void RTFDocVisitor::visitPre ( DocHRef href)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1154 行定义.

1155 {
1156  if (m_hide) return;
1157  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHRef)}\n");
1158  if (Config_getBool(RTF_HYPERLINKS))
1159  {
1160  if (href->url().startsWith("#"))
1161  {
1162  // when starting with # so a local link
1163  QCString cite;
1164  cite = href->file() + "_" + href->url().right(href->url().length()-1);
1165  m_t << "{\\field "
1166  "{\\*\\fldinst "
1167  "{ HYPERLINK \\\\l \"" << rtfFormatBmkStr(cite) << "\" "
1168  "}{}"
1169  "}"
1170  "{\\fldrslt "
1171  "{\\cs37\\ul\\cf2 ";
1172  }
1173  else
1174  {
1175  m_t << "{\\field "
1176  "{\\*\\fldinst "
1177  "{ HYPERLINK \"" << href->url() << "\" "
1178  "}{}"
1179  "}"
1180  "{\\fldrslt "
1181  "{\\cs37\\ul\\cf2 ";
1182  }
1183  }
1184  else
1185  {
1186  m_t << "{\\f2 ";
1187  }
1189 }

引用了 Config_getBool, DBG_RTF, FALSE, DocHRef::file(), QCString::length(), m_hide, m_lastIsPara, m_t, QCString::right(), rtfFormatBmkStr(), QCString::startsWith() , 以及 DocHRef::url().

◆ visitPre() [6/37]

void RTFDocVisitor::visitPre ( DocHtmlBlockQuote )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1722 行定义.

1723 {
1724  if (m_hide) return;
1725  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlBlockQuote)}\n");
1726  if (!m_lastIsPara) m_t << "\\par\n";
1727  m_t << "{"; // start desc
1728  incIndentLevel();
1729  m_t << rtf_Style_Reset << getStyle("DescContinue");
1730 }

引用了 DBG_RTF, getStyle(), incIndentLevel(), m_hide, m_lastIsPara, m_t , 以及 rtf_Style_Reset.

◆ visitPre() [7/37]

void RTFDocVisitor::visitPre ( DocHtmlCaption )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1062 行定义.

1063 {
1064  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlCaption)}\n");
1065  m_t << "\\pard \\qc \\b";
1066  m_t << "{Table \\field\\flddirty{\\*\\fldinst { SEQ Table \\\\*Arabic }}{\\fldrslt {\\noproof 1}} ";
1067 }

引用了 DBG_RTF , 以及 m_t.

◆ visitPre() [8/37]

void RTFDocVisitor::visitPre ( DocHtmlCell c)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1114 行定义.

1115 {
1116  if (m_hide) return;
1117  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlCell)}\n");
1118  m_t << "{" << align(c);
1120 }

引用了 align(), DBG_RTF, FALSE, m_hide, m_lastIsPara , 以及 m_t.

◆ visitPre() [9/37]

void RTFDocVisitor::visitPre ( DocHtmlDescData )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1027 行定义.

1028 {
1029  if (m_hide) return;
1030  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlDescData)}\n");
1031  incIndentLevel();
1032  m_t << "{" << rtf_Style_Reset << getStyle("DescContinue");
1033 }

引用了 DBG_RTF, getStyle(), incIndentLevel(), m_hide, m_t , 以及 rtf_Style_Reset.

◆ visitPre() [10/37]

void RTFDocVisitor::visitPre ( DocHtmlDescList )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp990 行定义.

991 {
992  if (m_hide) return;
993  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlDescList)}\n");
994  //m_t << "{\n";
995  //m_t << rtf_Style_Reset << getStyle("ListContinue");
996  //m_lastIsPara=FALSE;
997 }

引用了 DBG_RTF , 以及 m_hide.

◆ visitPre() [11/37]

void RTFDocVisitor::visitPre ( DocHtmlDescTitle )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1008 行定义.

1009 {
1010  if (m_hide) return;
1011  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlDescTitle)}\n");
1012  //m_t << "\\par\n";
1013  //m_t << "{\\b ";
1014  m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
1016 }

引用了 DBG_RTF, FALSE, m_hide, m_lastIsPara, m_t , 以及 rtf_Style.

◆ visitPre() [12/37]

void RTFDocVisitor::visitPre ( DocHtmlHeader header)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1208 行定义.

1209 {
1210  if (m_hide) return;
1211  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlHeader)}\n");
1212  m_t << "{" // start section
1213  << rtf_Style_Reset;
1214  QCString heading;
1215  int level = std::min(header->level(),5);
1216  heading.sprintf("Heading%d",level);
1217  // set style
1218  m_t << rtf_Style[heading.str()].reference();
1219  // make open table of contents entry that will be closed in visitPost method
1220  m_t << "{\\tc\\tcl" << level << " ";
1222 }

引用了 DBG_RTF, FALSE, DocHtmlHeader::level(), m_hide, m_lastIsPara, m_t, rtf_Style, rtf_Style_Reset, QCString::sprintf() , 以及 QCString::str().

◆ visitPre() [13/37]

void RTFDocVisitor::visitPre ( DocHtmlList s)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp900 行定义.

901 {
902  if (m_hide) return;
903  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlList)}\n");
904  m_t << "{\n";
905  int level = indentLevel();
906  m_listItemInfo[level].isEnum = l->type()==DocHtmlList::Ordered;
907  m_listItemInfo[level].number = 1;
908  m_listItemInfo[level].type = '1';
909  for (const auto &opt : l->attribs())
910  {
911  if (opt.name=="type")
912  {
913  m_listItemInfo[level].type = opt.value[0];
914  }
915  if (opt.name=="start")
916  {
917  bool ok;
918  int val = opt.value.toInt(&ok);
919  if (ok) m_listItemInfo[level].number = val;
920  }
921  }
923 }

引用了 DocHtmlList::attribs(), DBG_RTF, FALSE, indentLevel(), RTFDocVisitor::RTFListItemInfo::isEnum, m_hide, m_lastIsPara, m_listItemInfo, m_t, RTFDocVisitor::RTFListItemInfo::number, DocHtmlList::Ordered, RTFDocVisitor::RTFListItemInfo::type , 以及 DocHtmlList::type().

◆ visitPre() [14/37]

void RTFDocVisitor::visitPre ( DocHtmlListItem l)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp933 行定义.

934 {
935  if (m_hide) return;
936  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlListItem)}\n");
937  m_t << "\\par\n";
938  m_t << rtf_Style_Reset;
939  int level = indentLevel();
940  if (m_listItemInfo[level].isEnum)
941  {
942  for (const auto &opt : l->attribs())
943  {
944  if (opt.name=="value")
945  {
946  bool ok;
947  int val = opt.value.toInt(&ok);
948  if (ok) m_listItemInfo[level].number = val;
949  }
950  }
951  m_t << getStyle("ListEnum") << "\n";
952  switch (m_listItemInfo[level].type)
953  {
954  case '1':
955  m_t << m_listItemInfo[level].number;
956  break;
957  case 'a':
958  m_t << integerToAlpha(m_listItemInfo[level].number,false);
959  break;
960  case 'A':
961  m_t << integerToAlpha(m_listItemInfo[level].number);
962  break;
963  case 'i':
964  m_t << integerToRoman(m_listItemInfo[level].number,false);
965  break;
966  case 'I':
967  m_t << integerToRoman(m_listItemInfo[level].number);
968  break;
969  default:
970  m_t << m_listItemInfo[level].number;
971  break;
972  }
973  m_t << ".\\tab ";
974  m_listItemInfo[level].number++;
975  }
976  else
977  {
978  m_t << getStyle("ListBullet") << "\n";
979  }
980  incIndentLevel();
982 }

引用了 DocHtmlListItem::attribs(), DBG_RTF, FALSE, getStyle(), incIndentLevel(), indentLevel(), integerToAlpha(), integerToRoman(), m_hide, m_lastIsPara, m_listItemInfo, m_t, RTFDocVisitor::RTFListItemInfo::number , 以及 rtf_Style_Reset.

◆ visitPre() [15/37]

void RTFDocVisitor::visitPre ( DocHtmlRow r)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1075 行定义.

1076 {
1077  if (m_hide) return;
1078  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlRow)}\n");
1079  uint i,columnWidth=(uint)r->numCells()>0 ? rtf_pageWidth/(uint)r->numCells() : 10;
1080  m_t << "\\trowd \\trgaph108\\trleft-108"
1081  "\\trbrdrt\\brdrs\\brdrw10 "
1082  "\\trbrdrl\\brdrs\\brdrw10 "
1083  "\\trbrdrb\\brdrs\\brdrw10 "
1084  "\\trbrdrr\\brdrs\\brdrw10 "
1085  "\\trbrdrh\\brdrs\\brdrw10 "
1086  "\\trbrdrv\\brdrs\\brdrw10 \n";
1087  for (i=0;i<r->numCells();i++)
1088  {
1089  if (r->isHeading())
1090  {
1091  m_t << "\\clcbpat16"; // set cell shading to light grey (color 16 in the clut)
1092  }
1093  m_t << "\\clvertalt\\clbrdrt\\brdrs\\brdrw10 "
1094  "\\clbrdrl\\brdrs\\brdrw10 "
1095  "\\clbrdrb\\brdrs\\brdrw10 "
1096  "\\clbrdrr \\brdrs\\brdrw10 "
1097  "\\cltxlrtb "
1098  "\\cellx" << ((i+1)*columnWidth) << "\n";
1099  }
1100  m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
1102 }

引用了 DBG_RTF, FALSE, DocHtmlRow::isHeading(), m_hide, m_lastIsPara, m_t, DocHtmlRow::numCells() , 以及 rtf_pageWidth.

◆ visitPre() [16/37]

void RTFDocVisitor::visitPre ( DocHtmlTable t)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1045 行定义.

1046 {
1047  if (m_hide) return;
1048  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlTable)}\n");
1049  if (!m_lastIsPara) m_t << "\\par\n";
1051 }

引用了 DBG_RTF, m_hide, m_lastIsPara, m_t , 以及 TRUE.

◆ visitPre() [17/37]

void RTFDocVisitor::visitPre ( DocImage img)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1234 行定义.

1235 {
1236  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocImage)}\n");
1237  includePicturePreRTF(img->name(), img->type()==DocImage::Rtf, img->hasCaption(), img->isInlineImage());
1238 }

引用了 DBG_RTF, DocImage::hasCaption(), includePicturePreRTF(), DocImage::isInlineImage(), DocImage::name(), DocImage::Rtf , 以及 DocImage::type().

◆ visitPre() [18/37]

void RTFDocVisitor::visitPre ( DocInternal )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1130 行定义.

1131 {
1132  if (m_hide) return;
1133  //DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocInternal)}\n");
1134  //m_t << "{"; // start desc
1135  //m_t << "{\\b "; // start bold
1136  //m_t << theTranslator->trForInternalUseOnly();
1137  //m_t << "}"; // end bold
1138  //m_t << "\\par\n";
1139  //incIndentLevel();
1140  //m_t << rtf_Style_Reset << getStyle("DescContinue");
1141  //m_lastIsPara=FALSE;
1142 }

引用了 m_hide.

◆ visitPre() [19/37]

void RTFDocVisitor::visitPre ( DocInternalRef ref)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1695 行定义.

1696 {
1697  if (m_hide) return;
1698  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocInternalRef)}\n");
1699  startLink("",ref->file(),ref->anchor());
1700 }

引用了 DocInternalRef::anchor(), DBG_RTF, DocInternalRef::file(), m_hide , 以及 startLink().

◆ visitPre() [20/37]

void RTFDocVisitor::visitPre ( DocLink lnk)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1345 行定义.

1346 {
1347  if (m_hide) return;
1348  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocLink)}\n");
1349  startLink(lnk->ref(),lnk->file(),lnk->anchor());
1350 }

引用了 DocLink::anchor(), DBG_RTF, DocLink::file(), m_hide, DocLink::ref() , 以及 startLink().

◆ visitPre() [21/37]

void RTFDocVisitor::visitPre ( DocMscFile df)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1321 行定义.

1322 {
1323  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocMscFile)}\n");
1324  writeMscFile(df);
1325 }

引用了 DBG_RTF , 以及 writeMscFile().

◆ visitPre() [22/37]

void RTFDocVisitor::visitPre ( DocPara )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp713 行定义.

714 {
715  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocPara)}\n");
716 }

引用了 DBG_RTF.

◆ visitPre() [23/37]

void RTFDocVisitor::visitPre ( DocParamList pl)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1467 行定义.

1468 {
1469  static int columnPos[4][5] =
1470  { { 2, 25, 100, 100, 100 }, // no inout, no type
1471  { 3, 14, 35, 100, 100 }, // inout, no type
1472  { 3, 25, 50, 100, 100 }, // no inout, type
1473  { 4, 14, 35, 55, 100 }, // inout, type
1474  };
1475  int config=0;
1476  if (m_hide) return;
1477  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocParamList)}\n");
1478 
1480  DocParamSect *sect = 0;
1481  if (pl->parent() && pl->parent()->kind()==DocNode::Kind_ParamSect)
1482  {
1483  parentType = ((DocParamSect*)pl->parent())->type();
1484  sect=(DocParamSect*)pl->parent();
1485  }
1486  bool useTable = parentType==DocParamSect::Param ||
1487  parentType==DocParamSect::RetVal ||
1488  parentType==DocParamSect::Exception ||
1489  parentType==DocParamSect::TemplateParam;
1490  if (sect && sect->hasInOutSpecifier()) config+=1;
1491  if (sect && sect->hasTypeSpecifier()) config+=2;
1492  if (useTable)
1493  {
1494  int i;
1495  m_t << "\\trowd \\trgaph108\\trleft426\\tblind426"
1496  "\\trbrdrt\\brdrs\\brdrw10\\brdrcf15 "
1497  "\\trbrdrl\\brdrs\\brdrw10\\brdrcf15 "
1498  "\\trbrdrb\\brdrs\\brdrw10\\brdrcf15 "
1499  "\\trbrdrr\\brdrs\\brdrw10\\brdrcf15 "
1500  "\\trbrdrh\\brdrs\\brdrw10\\brdrcf15 "
1501  "\\trbrdrv\\brdrs\\brdrw10\\brdrcf15 "<< "\n";
1502  for (i=0;i<columnPos[config][0];i++)
1503  {
1504  m_t << "\\clvertalt\\clbrdrt\\brdrs\\brdrw10\\brdrcf15 "
1505  "\\clbrdrl\\brdrs\\brdrw10\\brdrcf15 "
1506  "\\clbrdrb\\brdrs\\brdrw10\\brdrcf15 "
1507  "\\clbrdrr \\brdrs\\brdrw10\\brdrcf15 "
1508  "\\cltxlrtb "
1509  "\\cellx" << (rtf_pageWidth*columnPos[config][i+1]/100) << "\n";
1510  }
1511  m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
1512  }
1513 
1514  if (sect && sect->hasInOutSpecifier())
1515  {
1516  if (useTable)
1517  {
1518  m_t << "{";
1519  }
1520 
1521  // Put in the direction: in/out/in,out if specified.
1523  {
1524  if (pl->direction()==DocParamSect::In)
1525  {
1526  m_t << "in";
1527  }
1528  else if (pl->direction()==DocParamSect::Out)
1529  {
1530  m_t << "out";
1531  }
1532  else if (pl->direction()==DocParamSect::InOut)
1533  {
1534  m_t << "in,out";
1535  }
1536  }
1537 
1538  if (useTable)
1539  {
1540  m_t << "\\cell }";
1541  }
1542  }
1543 
1544  if (sect && sect->hasTypeSpecifier())
1545  {
1546  if (useTable)
1547  {
1548  m_t << "{";
1549  }
1550  for (const auto &type : pl->paramTypes())
1551  {
1552  if (type->kind()==DocNode::Kind_Word)
1553  {
1554  visit((DocWord*)type.get());
1555  }
1556  else if (type->kind()==DocNode::Kind_LinkedWord)
1557  {
1558  visit((DocLinkedWord*)type.get());
1559  }
1560  else if (type->kind()==DocNode::Kind_Sep)
1561  {
1562  m_t << " " << ((DocSeparator *)type.get())->chars() << " ";
1563  }
1564  }
1565  if (useTable)
1566  {
1567  m_t << "\\cell }";
1568  }
1569  }
1570 
1571 
1572  if (useTable)
1573  {
1574  m_t << "{";
1575  }
1576 
1577  m_t << "{\\i ";
1578  bool first=TRUE;
1579  for (const auto &param : pl->parameters())
1580  {
1581  if (!first) m_t << ","; else first=FALSE;
1582  if (param->kind()==DocNode::Kind_Word)
1583  {
1584  visit((DocWord*)param.get());
1585  }
1586  else if (param->kind()==DocNode::Kind_LinkedWord)
1587  {
1588  visit((DocLinkedWord*)param.get());
1589  }
1590  }
1591  m_t << "} ";
1592 
1593  if (useTable)
1594  {
1595  m_t << "\\cell }{";
1596  }
1598 }

引用了 DBG_RTF, DocParamList::direction(), DocParamSect::Exception, FALSE, DocParamSect::hasInOutSpecifier(), DocParamSect::hasTypeSpecifier(), DocParamSect::In, DocParamSect::InOut, DocNode::kind(), DocNode::Kind_LinkedWord, DocNode::Kind_ParamSect, DocNode::Kind_Sep, DocNode::Kind_Word, m_hide, m_lastIsPara, m_t, DocParamSect::Out, DocParamSect::Param, DocParamList::parameters(), DocParamList::paramTypes(), DocNode::parent(), DocParamSect::RetVal, rtf_pageWidth, DocParamSect::TemplateParam, TRUE, DocParamSect::Unknown, DocParamSect::Unspecified , 以及 visit().

◆ visitPre() [24/37]

void RTFDocVisitor::visitPre ( DocParamSect s)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1416 行定义.

1417 {
1418  if (m_hide) return;
1419  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocParamSect)}\n");
1420  m_t << "{"; // start param list
1421  if (!m_lastIsPara) m_t << "\\par\n";
1422  //m_t << "{\\b "; // start bold
1423  m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
1424  switch(s->type())
1425  {
1426  case DocParamSect::Param:
1427  m_t << theTranslator->trParameters(); break;
1428  case DocParamSect::RetVal:
1429  m_t << theTranslator->trReturnValues(); break;
1431  m_t << theTranslator->trExceptions(); break;
1433  m_t << theTranslator->trTemplateParameters(); break;
1434  default:
1435  ASSERT(0);
1436  }
1437  m_t << "\\par";
1438  m_t << "}\n";
1439  bool useTable = s->type()==DocParamSect::Param ||
1440  s->type()==DocParamSect::RetVal ||
1441  s->type()==DocParamSect::Exception ||
1443  if (!useTable)
1444  {
1445  incIndentLevel();
1446  }
1447  m_t << rtf_Style_Reset << getStyle("DescContinue");
1449 }

引用了 ASSERT, DBG_RTF, DocParamSect::Exception, getStyle(), incIndentLevel(), m_hide, m_lastIsPara, m_t, DocParamSect::Param, DocParamSect::RetVal, rtf_Style, rtf_Style_Reset, DocParamSect::TemplateParam, theTranslator, Translator::trExceptions(), Translator::trParameters(), Translator::trReturnValues(), Translator::trTemplateParameters(), TRUE , 以及 DocParamSect::type().

◆ visitPre() [25/37]

void RTFDocVisitor::visitPre ( DocParBlock )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1752 行定义.

1753 {
1754  if (m_hide) return;
1755 }

引用了 m_hide.

◆ visitPre() [26/37]

void RTFDocVisitor::visitPre ( DocRef ref)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1359 行定义.

1360 {
1361  if (m_hide) return;
1362  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocRef)}\n");
1363  // when ref->isSubPage()==TRUE we use ref->file() for HTML and
1364  // ref->anchor() for LaTeX/RTF
1365  if (ref->isSubPage())
1366  {
1367  startLink(ref->ref(),QCString(),ref->anchor());
1368  }
1369  else
1370  {
1371  if (!ref->file().isEmpty()) startLink(ref->ref(),ref->file(),ref->anchor());
1372  }
1373  if (!ref->hasLinkText()) filter(ref->targetTitle());
1374 }

引用了 DocRef::anchor(), DBG_RTF, DocRef::file(), filter(), DocRef::hasLinkText(), QCString::isEmpty(), DocRef::isSubPage(), m_hide, DocRef::ref(), startLink() , 以及 DocRef::targetTitle().

◆ visitPre() [27/37]

void RTFDocVisitor::visitPre ( DocRoot r)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp734 行定义.

735 {
736  if (m_hide) return;
737  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocRoot)}\n");
738  if (r->indent()) incIndentLevel();
739  m_t << "{" << rtf_Style["BodyText"].reference() << "\n";
740 }

引用了 DBG_RTF, incIndentLevel(), DocRoot::indent(), m_hide, m_t , 以及 rtf_Style.

◆ visitPre() [28/37]

void RTFDocVisitor::visitPre ( DocSecRefItem )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1385 行定义.

1386 {
1387  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocSecRefItem)}\n");
1388 }

引用了 DBG_RTF.

◆ visitPre() [29/37]

void RTFDocVisitor::visitPre ( DocSecRefList )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1395 行定义.

1396 {
1397  if (m_hide) return;
1398  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocSecRefList)}\n");
1399  m_t << "{\n";
1400  incIndentLevel();
1401  m_t << rtf_Style_Reset << getStyle("LatexTOC") << "\n";
1402  m_t << "\\par\n";
1404 }

引用了 DBG_RTF, getStyle(), incIndentLevel(), m_hide, m_lastIsPara, m_t, rtf_Style_Reset , 以及 TRUE.

◆ visitPre() [30/37]

void RTFDocVisitor::visitPre ( DocSection s)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp869 行定义.

870 {
871  if (m_hide) return;
872  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocSection)}\n");
873  if (!m_lastIsPara) m_t << "\\par\n";
874  m_t << "{\\bkmkstart " << rtfFormatBmkStr(stripPath(s->file())+"_"+s->anchor()) << "}\n";
875  m_t << "{\\bkmkend " << rtfFormatBmkStr(stripPath(s->file())+"_"+s->anchor()) << "}\n";
876  m_t << "{{" // start section
877  << rtf_Style_Reset;
878  QCString heading;
879  int level = std::min(s->level()+1,4);
880  heading.sprintf("Heading%d",level);
881  // set style
882  m_t << rtf_Style[heading.str()].reference() << "\n";
883  // make table of contents entry
884  filter(s->title());
885  m_t << "\n\\par" << "}\n";
886  m_t << "{\\tc\\tcl" << level << " \\v ";
887  filter(s->title());
888  m_t << "}\n";
890 }

引用了 DocSection::anchor(), DBG_RTF, DocSection::file(), filter(), DocSection::level(), m_hide, m_lastIsPara, m_t, rtf_Style, rtf_Style_Reset, rtfFormatBmkStr(), QCString::sprintf(), QCString::str(), stripPath(), DocSection::title() , 以及 TRUE.

◆ visitPre() [31/37]

void RTFDocVisitor::visitPre ( DocSimpleList )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp836 行定义.

837 {
838  if (m_hide) return;
839  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocSimpleSect)}\n");
840  m_t << "{\n";
843 }

引用了 DBG_RTF, FALSE, indentLevel(), RTFDocVisitor::RTFListItemInfo::isEnum, m_hide, m_lastIsPara, m_listItemInfo , 以及 m_t.

◆ visitPre() [32/37]

void RTFDocVisitor::visitPre ( DocSimpleListItem )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp854 行定义.

855 {
856  if (m_hide) return;
857  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocSimpleListItem)}\n");
858  m_t << "\\par" << rtf_Style_Reset << getStyle("ListBullet") << "\n";
860  incIndentLevel();
861 }

引用了 DBG_RTF, FALSE, getStyle(), incIndentLevel(), m_hide, m_lastIsPara, m_t , 以及 rtf_Style_Reset.

◆ visitPre() [33/37]

void RTFDocVisitor::visitPre ( DocSimpleSect s)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp752 行定义.

753 {
754  if (m_hide) return;
755  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocSimpleSect)}\n");
756  if (!m_lastIsPara) m_t << "\\par\n";
757  m_t << "{"; // start desc
758  //m_t << "{\\b "; // start bold
759  m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
760  switch(s->type())
761  {
762  case DocSimpleSect::See:
763  m_t << theTranslator->trSeeAlso(); break;
765  m_t << theTranslator->trReturns(); break;
767  m_t << theTranslator->trAuthor(TRUE,TRUE); break;
769  m_t << theTranslator->trAuthor(TRUE,FALSE); break;
771  m_t << theTranslator->trVersion(); break;
773  m_t << theTranslator->trSince(); break;
774  case DocSimpleSect::Date:
775  m_t << theTranslator->trDate(); break;
776  case DocSimpleSect::Note:
777  m_t << theTranslator->trNote(); break;
779  m_t << theTranslator->trWarning(); break;
780  case DocSimpleSect::Pre:
781  m_t << theTranslator->trPrecondition(); break;
782  case DocSimpleSect::Post:
783  m_t << theTranslator->trPostcondition(); break;
785  m_t << theTranslator->trCopyright(); break;
787  m_t << theTranslator->trInvariant(); break;
789  m_t << theTranslator->trRemarks(); break;
791  m_t << theTranslator->trAttention(); break;
792  case DocSimpleSect::User: break;
793  case DocSimpleSect::Rcs: break;
794  case DocSimpleSect::Unknown: break;
795  }
796 
797  // special case 1: user defined title
798  if (s->type()!=DocSimpleSect::User && s->type()!=DocSimpleSect::Rcs)
799  {
800  m_t << "\\par";
801  m_t << "}"; // end bold
802  incIndentLevel();
803  m_t << rtf_Style_Reset << getStyle("DescContinue");
804  m_t << "{\\s17 \\sa60 \\sb30\n";
805  }
807 }

引用了 DocSimpleSect::Attention, DocSimpleSect::Author, DocSimpleSect::Authors, DocSimpleSect::Copyright, DocSimpleSect::Date, DBG_RTF, FALSE, getStyle(), 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, Translator::trAttention(), Translator::trAuthor(), Translator::trCopyright(), Translator::trDate(), Translator::trInvariant(), Translator::trNote(), Translator::trPostcondition(), Translator::trPrecondition(), Translator::trRemarks(), Translator::trReturns(), Translator::trSeeAlso(), Translator::trSince(), TRUE, Translator::trVersion(), Translator::trWarning(), DocSimpleSect::type(), DocSimpleSect::Unknown, DocSimpleSect::User, DocSimpleSect::Version , 以及 DocSimpleSect::Warning.

◆ visitPre() [34/37]

void RTFDocVisitor::visitPre ( DocText )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1710 行定义.

1711 {
1712  if (m_hide) return;
1713  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocText)}\n");
1714 }

引用了 DBG_RTF , 以及 m_hide.

◆ visitPre() [35/37]

void RTFDocVisitor::visitPre ( DocTitle )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp820 行定义.

821 {
822  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocTitle)}\n");
823 }

引用了 DBG_RTF.

◆ visitPre() [36/37]

void RTFDocVisitor::visitPre ( DocVhdlFlow )
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1742 行定义.

1743 {
1744  if (m_hide) return;
1745 }

引用了 m_hide.

◆ visitPre() [37/37]

void RTFDocVisitor::visitPre ( DocXRefItem x)
virtual

实现了 DocVisitor.

在文件 rtfdocvisitor.cpp1630 行定义.

1631 {
1632  if (m_hide) return;
1633  if (x->title().isEmpty()) return;
1634  bool anonymousEnum = x->file()=="@";
1635  DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocXRefItem)}\n");
1636  if (!m_lastIsPara)
1637  {
1638  m_t << "\\par\n";
1640  }
1641  m_t << "{"; // start param list
1642  //m_t << "{\\b "; // start bold
1643  m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
1644  if (Config_getBool(RTF_HYPERLINKS) && !anonymousEnum)
1645  {
1646  QCString refName;
1647  if (!x->file().isEmpty())
1648  {
1649  refName+=stripPath(x->file());
1650  }
1651  if (!x->file().isEmpty() && !x->anchor().isEmpty())
1652  {
1653  refName+="_";
1654  }
1655  if (!x->anchor().isEmpty())
1656  {
1657  refName+=x->anchor();
1658  }
1659 
1660  m_t << "{\\field "
1661  "{\\*\\fldinst "
1662  "{ HYPERLINK \\\\l \"" << rtfFormatBmkStr(refName) << "\" "
1663  "}{}"
1664  "}"
1665  "{\\fldrslt "
1666  "{\\cs37\\ul\\cf2 ";
1667  filter(x->title());
1668  m_t << "}"
1669  "}"
1670  "}";
1671  }
1672  else
1673  {
1674  filter(x->title());
1675  }
1676  m_t << ":";
1677  m_t << "\\par";
1678  m_t << "}"; // end bold
1679  incIndentLevel();
1680  m_t << rtf_Style_Reset << getStyle("DescContinue");
1682 }

引用了 DocXRefItem::anchor(), Config_getBool, DBG_RTF, FALSE, DocXRefItem::file(), filter(), getStyle(), incIndentLevel(), QCString::isEmpty(), m_hide, m_lastIsPara, m_t, rtf_Style, rtf_Style_Reset, rtfFormatBmkStr(), stripPath(), DocXRefItem::title() , 以及 TRUE.

◆ writeDiaFile()

void RTFDocVisitor::writeDiaFile ( DocDiaFile df)
private

在文件 rtfdocvisitor.cpp1896 行定义.

1897 {
1898  QCString baseName=df->file();
1899  int i;
1900  if ((i=baseName.findRev('/'))!=-1)
1901  {
1902  baseName=baseName.right(baseName.length()-i-1);
1903  }
1904  QCString outDir = Config_getString(RTF_OUTPUT);
1905  writeDiaGraphFromFile(df->file(),outDir,baseName,DIA_BITMAP,df->srcFile(),df->srcLine());
1906  includePicturePreRTF(baseName + ".png", true, df->hasCaption());
1907 }

引用了 Config_getString, DIA_BITMAP, DocDiagramFileBase< T >::file(), QCString::findRev(), DocDiagramFileBase< T >::hasCaption(), includePicturePreRTF(), QCString::length(), QCString::right(), DocDiagramFileBase< T >::srcFile(), DocDiagramFileBase< T >::srcLine() , 以及 writeDiaGraphFromFile().

被这些函数引用 visitPre().

◆ writeDotFile() [1/2]

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

在文件 rtfdocvisitor.cpp1863 行定义.

1865 {
1866  QCString baseName=filename;
1867  int i;
1868  if ((i=baseName.findRev('/'))!=-1)
1869  {
1870  baseName=baseName.right(baseName.length()-i-1);
1871  }
1872  QCString outDir = Config_getString(RTF_OUTPUT);
1873  writeDotGraphFromFile(filename,outDir,baseName,GOF_BITMAP,srcFile,srcLine);
1874  QCString imgExt = getDotImageExtension();
1875  includePicturePreRTF(baseName + "." + imgExt, true, hasCaption);
1876 }

引用了 Config_getString, QCString::findRev(), getDotImageExtension(), GOF_BITMAP, includePicturePreRTF(), QCString::length(), QCString::right() , 以及 writeDotGraphFromFile().

被这些函数引用 visit(), visitPre() , 以及 writeDotFile().

◆ writeDotFile() [2/2]

void RTFDocVisitor::writeDotFile ( DocDotFile df)
private

◆ writeMscFile() [1/2]

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

在文件 rtfdocvisitor.cpp1882 行定义.

1884 {
1885  QCString baseName=fileName;
1886  int i;
1887  if ((i=baseName.findRev('/'))!=-1)
1888  {
1889  baseName=baseName.right(baseName.length()-i-1);
1890  }
1891  QCString outDir = Config_getString(RTF_OUTPUT);
1892  writeMscGraphFromFile(fileName,outDir,baseName,MSC_BITMAP,srcFile,srcLine);
1893  includePicturePreRTF(baseName + ".png", true, hasCaption);
1894 }

引用了 Config_getString, QCString::findRev(), includePicturePreRTF(), QCString::length(), MSC_BITMAP, QCString::right() , 以及 writeMscGraphFromFile().

被这些函数引用 visit(), visitPre() , 以及 writeMscFile().

◆ writeMscFile() [2/2]

void RTFDocVisitor::writeMscFile ( DocMscFile df)
private

◆ writePlantUMLFile()

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

在文件 rtfdocvisitor.cpp1909 行定义.

1910 {
1911  QCString baseName=fileName;
1912  int i;
1913  if ((i=baseName.findRev('/'))!=-1)
1914  {
1915  baseName=baseName.right(baseName.length()-i-1);
1916  }
1917  QCString outDir = Config_getString(RTF_OUTPUT);
1919  includePicturePreRTF(baseName + ".png", true, hasCaption);
1920 }

引用了 Config_getString, QCString::findRev(), PlantumlManager::generatePlantUMLOutput(), includePicturePreRTF(), PlantumlManager::instance(), QCString::length(), PlantumlManager::PUML_BITMAP , 以及 QCString::right().

被这些函数引用 visit().

类成员变量说明

◆ m_ci

CodeOutputInterface& RTFDocVisitor::m_ci
private

在文件 rtfdocvisitor.h169 行定义.

被这些函数引用 visit().

◆ m_hide

bool RTFDocVisitor::m_hide = false
private

在文件 rtfdocvisitor.h171 行定义.

被这些函数引用 includePicturePostRTF(), includePicturePreRTF(), visit(), visitPost() , 以及 visitPre().

◆ m_indentLevel

int RTFDocVisitor::m_indentLevel = 0
private

在文件 rtfdocvisitor.h176 行定义.

被这些函数引用 decIndentLevel(), incIndentLevel() , 以及 indentLevel().

◆ m_insidePre

bool RTFDocVisitor::m_insidePre = false
private

在文件 rtfdocvisitor.h170 行定义.

被这些函数引用 visit().

◆ m_langExt

QCString RTFDocVisitor::m_langExt
private

在文件 rtfdocvisitor.h173 行定义.

被这些函数引用 visit().

◆ m_lastIsPara

bool RTFDocVisitor::m_lastIsPara = false
private

在文件 rtfdocvisitor.h172 行定义.

被这些函数引用 endLink(), includePicturePreRTF(), startLink(), visit(), visitPost() , 以及 visitPre().

◆ m_listItemInfo

RTFListItemInfo RTFDocVisitor::m_listItemInfo[maxIndentLevels]
private

在文件 rtfdocvisitor.h183 行定义.

被这些函数引用 visitPre().

◆ m_t

TextStream& RTFDocVisitor::m_t
private

◆ maxIndentLevels

const int RTFDocVisitor::maxIndentLevels = 13
staticprivate

在文件 rtfdocvisitor.h175 行定义.

被这些函数引用 incIndentLevel() , 以及 indentLevel().


该类的文档由以下文件生成:
writeDiaGraphFromFile
void writeDiaGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, DiaOutputFormat format, const QCString &srcFile, int srcLine)
Definition: dia.cpp:26
PlantumlManager::writePlantUMLSource
QCString writePlantUMLSource(const QCString &outDir, const QCString &fileName, const QCString &content, OutputFormat format, const QCString &engine, const QCString &srcFile, int srcLine)
Write a PlantUML compatible file.
Definition: plantuml.cpp:26
getDotImageExtension
QCString getDotImageExtension()
Definition: util.cpp:7032
DocVerbatim::isExample
bool isExample() const
Definition: docparser.h:522
Translator::trCopyright
virtual QCString trCopyright()=0
integerToRoman
QCString integerToRoman(int n, bool upper)
Definition: util.cpp:7363
DocParamList::paramTypes
DocNodeList & paramTypes()
Definition: docparser.h:1239
DocXRefItem::file
QCString file() const
Definition: docparser.h:754
Translator::trPostcondition
virtual QCString trPostcondition()=0
DocImage::isInlineImage
bool isInlineImage() const
Definition: docparser.h:785
DocInclude::HtmlInclude
@ HtmlInclude
Definition: docparser.h:566
DocParamSect::In
@ In
Definition: docparser.h:1160
RTFDocVisitor::startLink
void startLink(const QCString &ref, const QCString &file, const QCString &anchor)
Definition: rtfdocvisitor.cpp:1816
DocSimpleSect::Return
@ Return
Definition: docparser.h:1116
DocVerbatim::text
QCString text() const
Definition: docparser.h:519
DocVisitor::pushHidden
void pushHidden(bool hide)
Definition: docvisitor.cpp:62
DocVisitor::DocVisitor
DocVisitor(int id)
Definition: docvisitor.cpp:32
Translator::trNote
virtual QCString trNote()=0
DocIncOperator::showLineNo
bool showLineNo() const
Definition: docparser.h:629
DocSimpleSect::Warning
@ Warning
Definition: docparser.h:1117
Dir::remove
bool remove(const std::string &path, bool acceptsAbsPath=true) const
Definition: dir.cpp:256
Dir
Class representing a directory in the file system
Definition: dir.h:68
DocNode::Kind_Word
@ Kind_Word
Definition: docparser.h:101
RTFDocVisitor::endLink
void endLink(const QCString &ref)
Definition: rtfdocvisitor.cpp:1846
DocVerbatim::HtmlOnly
@ HtmlOnly
Definition: docparser.h:513
RTFDocVisitor::m_hide
bool m_hide
Definition: rtfdocvisitor.h:171
QCString::length
uint length() const
Returns the length of the string, not counting the 0-terminator.
Definition: qcstring.h:147
DocStyleChange::Center
@ Center
Definition: docparser.h:349
DocImage::hasCaption
bool hasCaption() const
Definition: docparser.h:780
DocVisitor::popHidden
bool popHidden()
Definition: docvisitor.cpp:67
DIA_BITMAP
@ DIA_BITMAP
Definition: dia.h:23
DocParamSect::Out
@ Out
Definition: docparser.h:1160
DocSimpleSect::Unknown
@ Unknown
Definition: docparser.h:1116
DocStyleChange::Strike
@ Strike
Definition: docparser.h:356
DocVerbatim::context
QCString context() const
Definition: docparser.h:520
QCString::findRev
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition: qcstring.cpp:86
DocParamSect::InOut
@ InOut
Definition: docparser.h:1160
Translator::trExceptions
virtual QCString trExceptions()=0
DocInclude::Snippet
@ Snippet
Definition: docparser.h:567
QCString::isEmpty
bool isEmpty() const
Returns TRUE iff the string is empty
Definition: qcstring.h:144
RTFDocVisitor::writePlantUMLFile
void writePlantUMLFile(const QCString &fileName, bool hasCaption)
Definition: rtfdocvisitor.cpp:1909
DocStyleChange::Del
@ Del
Definition: docparser.h:358
DocRef::isSubPage
bool isSubPage() const
Definition: docparser.h:906
DocInclude::isExample
bool isExample() const
Definition: docparser.h:588
DocVerbatim::Msc
@ Msc
Definition: docparser.h:513
MSC_BITMAP
@ MSC_BITMAP
Definition: msc.h:22
DocHRef::file
QCString file() const
Definition: docparser.h:944
DocDiagramFileBase::file
QCString file() const
Definition: docparser.h:809
DocSimpleSect::type
Type type() const
Definition: docparser.h:1122
rtf_Style_Reset
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:49
DocAnchor::anchor
QCString anchor() const
Definition: docparser.h:308
DocInclude::XmlInclude
@ XmlInclude
Definition: docparser.h:568
DocVerbatim::PlantUML
@ PlantUML
Definition: docparser.h:513
DocRef::ref
QCString ref() const
Definition: docparser.h:899
DocLinkedWord::anchor
QCString anchor() const
Definition: docparser.h:242
DocInternalRef::anchor
QCString anchor() const
Definition: docparser.h:927
DocStyleChange::Italic
@ Italic
Definition: docparser.h:347
SrcLangExt
SrcLangExt
Language as given by extension
Definition: types.h:41
Translator::trReturns
virtual QCString trReturns()=0
DocHtmlRow::isHeading
bool isHeading() const
Definition: docparser.h:1382
align
static QCString align(DocHtmlCell *cell)
Definition: rtfdocvisitor.cpp:44
DocVerbatim::Code
@ Code
Definition: docparser.h:513
DocStyleChange::Bold
@ Bold
Definition: docparser.h:346
RTFDocVisitor::writeMscFile
void writeMscFile(const QCString &fileName, bool hasCaption, const QCString &srcFile, int srcLine)
Definition: rtfdocvisitor.cpp:1882
DocRef::targetTitle
QCString targetTitle() const
Definition: docparser.h:901
DocInclude::IncludeDoc
@ IncludeDoc
Definition: docparser.h:567
DocRef::anchor
QCString anchor() const
Definition: docparser.h:900
DocEmoji::name
QCString name() const
Definition: docparser.h:473
DocVerbatim::RtfOnly
@ RtfOnly
Definition: docparser.h:513
QCString::str
std::string str() const
Definition: qcstring.h:442
DocIncOperator::exampleFile
QCString exampleFile() const
Definition: docparser.h:639
DocParamSect::TemplateParam
@ TemplateParam
Definition: docparser.h:1156
DocVerbatim::type
Type type() const
Definition: docparser.h:518
DocIndexEntry::entry
QCString entry() const
Definition: docparser.h:691
DocStyleChange::Span
@ Span
Definition: docparser.h:354
PlantumlManager::instance
static PlantumlManager & instance()
Definition: plantuml.cpp:124
DocXRefItem::anchor
QCString anchor() const
Definition: docparser.h:755
RTFDocVisitor::m_langExt
QCString m_langExt
Definition: rtfdocvisitor.h:173
RTFDocVisitor::m_indentLevel
int m_indentLevel
Definition: rtfdocvisitor.h:176
Translator::trPrecondition
virtual QCString trPrecondition()=0
DocRef::hasLinkText
bool hasLinkText() const
Definition: docparser.h:902
DocStyleChange::Superscript
@ Superscript
Definition: docparser.h:352
err
void err(const char *fmt,...)
Definition: message.cpp:203
DocInclude::text
QCString text() const
Definition: docparser.h:585
DocDiagramFileBase::srcLine
int srcLine() const
Definition: docparser.h:816
DocSimpleSect::Author
@ Author
Definition: docparser.h:1116
DocSimpleSect::Note
@ Note
Definition: docparser.h:1117
DocURL::isEmail
bool isEmail() const
Definition: docparser.h:264
DocInclude::DocbookInclude
@ DocbookInclude
Definition: docparser.h:568
RTFDocVisitor::m_lastIsPara
bool m_lastIsPara
Definition: rtfdocvisitor.h:172
DocImage::name
QCString name() const
Definition: docparser.h:779
DocInclude::DontInclude
@ DontInclude
Definition: docparser.h:566
HtmlEntityMapper::instance
static HtmlEntityMapper * instance()
Returns the one and only instance of the HTML entity mapper
Definition: htmlentity.cpp:341
DocVisitor_RTF
const int DocVisitor_RTF
Definition: docvisitor.h:27
DocInclude::VerbInclude
@ VerbInclude
Definition: docparser.h:566
DocIncOperator::isFirst
bool isFirst() const
Definition: docparser.h:634
DocVerbatim::DocbookOnly
@ DocbookOnly
Definition: docparser.h:513
DocLinkedWord::word
QCString word() const
Definition: docparser.h:237
RTFDocVisitor::incIndentLevel
void incIndentLevel()
Definition: rtfdocvisitor.cpp:76
DocVisitor::getCodeParser
CodeParserInterface & getCodeParser(const QCString &langExt)
Definition: docvisitor.cpp:41
DocSymbol::symbol
SymType symbol() const
Definition: docparser.h:459
DocHtmlList::Ordered
@ Ordered
Definition: docparser.h:1096
DocSimpleSect::User
@ User
Definition: docparser.h:1117
DocRoot::indent
bool indent() const
Definition: docparser.h:1463
Translator::trSeeAlso
virtual QCString trSeeAlso()=0
DocWord
Node representing a word
Definition: docparser.h:217
StyleData
Definition: rtfstyle.h:48
uint
unsigned uint
Definition: qcstring.h:40
rtfFormatBmkStr
QCString rtfFormatBmkStr(const QCString &name)
Definition: util.cpp:5230
extractBlock
QCString extractBlock(const QCString &text, const QCString &marker)
Returns the section of text, in between a pair of markers.
Definition: util.cpp:6453
PlantumlManager::PUML_BITMAP
@ PUML_BITMAP
Definition: plantuml.h:44
EmojiEntityMapper::unicode
const char * unicode(int index) const
Access routine to the unicode sequence for the Emoji entity
Definition: emoji.cpp:1580
DocURL::url
QCString url() const
Definition: docparser.h:261
DocSection::level
int level() const
Definition: docparser.h:1007
createFileDef
FileDef * createFileDef(const QCString &p, const QCString &n, const QCString &ref, const QCString &dn)
Definition: filedef.cpp:190
rtf_Style
StyleDataMap rtf_Style
Definition: rtfstyle.cpp:313
DocNode::kind
virtual Kind kind() const =0
DocInclude::file
QCString file() const
Definition: docparser.h:577
Translator::trVersion
virtual QCString trVersion()=0
writeDotGraphFromFile
void writeDotGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, GraphOutputFormat format, const QCString &srcFile, int srcLine)
Definition: dot.cpp:272
DocParamSect::Unspecified
@ Unspecified
Definition: docparser.h:1160
DocSimpleSect::See
@ See
Definition: docparser.h:1116
RTFDocVisitor::RTFListItemInfo::type
char type
Definition: rtfdocvisitor.h:181
DocIncOperator::isExample
bool isExample() const
Definition: docparser.h:638
DocStyleChange::Ins
@ Ins
Definition: docparser.h:359
DocInclude::SnipWithLines
@ SnipWithLines
Definition: docparser.h:567
DocSimpleSect::Rcs
@ Rcs
Definition: docparser.h:1117
Translator::trAttention
virtual QCString trAttention()=0
DocRoot::singleLine
bool singleLine() const
Definition: docparser.h:1464
theTranslator
Translator * theTranslator
Definition: language.cpp:156
DocSeparator
Node representing a separator
Definition: docparser.h:497
DocCite::ref
QCString ref() const
Definition: docparser.h:328
DocInternalRef::file
QCString file() const
Definition: docparser.h:925
DocIncOperator::Skip
@ Skip
Definition: docparser.h:609
DocVerbatim::exampleFile
QCString exampleFile() const
Definition: docparser.h:523
RTFDocVisitor::visit
void visit(DocWord *)
Definition: rtfdocvisitor.cpp:94
DocVerbatim::ManOnly
@ ManOnly
Definition: docparser.h:513
DocImage::Rtf
@ Rtf
Definition: docparser.h:774
stripPath
QCString stripPath(const QCString &s)
Definition: util.cpp:5318
DocFormula::name
QCString name() const
Definition: docparser.h:663
DocHRef::url
QCString url() const
Definition: docparser.h:943
DocIncOperator::line
int line() const
Definition: docparser.h:628
DocStyleChange::Small
@ Small
Definition: docparser.h:350
Translator::trParameters
virtual QCString trParameters()=0
RTFDocVisitor::writeDotFile
void writeDotFile(const QCString &fileName, bool hasCaption, const QCString &srcFile, int srcLine)
Definition: rtfdocvisitor.cpp:1863
DocSimpleSect::Date
@ Date
Definition: docparser.h:1116
getLanguageFromFileName
SrcLangExt getLanguageFromFileName(const QCString &fileName, SrcLangExt defLang)
Definition: util.cpp:5574
TRUE
#define TRUE
Definition: qcstring.h:36
DocSimpleSect::Authors
@ Authors
Definition: docparser.h:1116
DocParamSect
Node representing a parameter section
Definition: docparser.h:1150
DocInclude::IncWithLines
@ IncWithLines
Definition: docparser.h:567
RTFDocVisitor::indentLevel
int indentLevel() const
Definition: rtfdocvisitor.cpp:71
DocVerbatim::children
const DocNodeList & children() const
Definition: docparser.h:532
DocVerbatim::srcFile
QCString srcFile() const
Definition: docparser.h:534
RTFDocVisitor::maxIndentLevels
static const int maxIndentLevels
Definition: rtfdocvisitor.h:175
integerToAlpha
QCString integerToAlpha(int n, bool upper)
Definition: util.cpp:7347
Translator::trRemarks
virtual QCString trRemarks()=0
RTFDocVisitor::includePicturePreRTF
void includePicturePreRTF(const QCString &name, bool isTypeRTF, bool hasCaption, bool inlineImage=FALSE)
Definition: rtfdocvisitor.cpp:1239
RTFDocVisitor::m_listItemInfo
RTFListItemInfo m_listItemInfo[maxIndentLevels]
Definition: rtfdocvisitor.h:183
lineBlock
int lineBlock(const QCString &text, const QCString &marker)
Returns the line number of the line following the line with the marker.
Definition: util.cpp:6498
DocNode::Kind_ParamSect
@ Kind_ParamSect
Definition: docparser.h:143
DocRef::file
QCString file() const
Definition: docparser.h:897
DocVerbatim::hasCaption
bool hasCaption() const
Definition: docparser.h:527
DocParamSect::type
Type type() const
Definition: docparser.h:1167
RTFDocVisitor::m_ci
CodeOutputInterface & m_ci
Definition: rtfdocvisitor.h:169
DocParamList::direction
DocParamSect::Direction direction() const
Definition: docparser.h:1241
RTFDocVisitor::m_insidePre
bool m_insidePre
Definition: rtfdocvisitor.h:170
DocVerbatim::language
QCString language() const
Definition: docparser.h:525
DocAnchor::file
QCString file() const
Definition: docparser.h:309
DocWord::word
QCString word() const
Definition: docparser.h:221
RTFDocVisitor::decIndentLevel
void decIndentLevel()
Definition: rtfdocvisitor.cpp:85
RTFDocVisitor::writeDiaFile
void writeDiaFile(DocDiaFile *)
Definition: rtfdocvisitor.cpp:1896
DocStyleChange::Subscript
@ Subscript
Definition: docparser.h:351
DocFormula::relPath
QCString relPath() const
Definition: docparser.h:665
DocLinkedWord::ref
QCString ref() const
Definition: docparser.h:241
CodeParserInterface::parseCode
virtual void parseCode(CodeOutputInterface &codeOutIntf, const QCString &scopeName, const QCString &input, SrcLangExt lang, bool isExampleBlock, const QCString &exampleName=QCString(), const FileDef *fileDef=0, int startLine=-1, int endLine=-1, bool inlineFragment=FALSE, const MemberDef *memberDef=0, bool showLineNumbers=TRUE, const Definition *searchCtx=0, bool collectXRefs=TRUE)=0
Parses a source file or fragment with the goal to produce highlighted and cross-referenced output.
QCString::setNum
QCString & setNum(short n)
Definition: qcstring.h:372
Translator::trSince
virtual QCString trSince()=0
DocNode::Kind_Sep
@ Kind_Sep
Definition: docparser.h:154
DocWhiteSpace::chars
QCString chars() const
Definition: docparser.h:490
DocNode::Kind_LinkedWord
@ Kind_LinkedWord
Definition: docparser.h:142
DocXRefItem::title
QCString title() const
Definition: docparser.h:756
Translator::trInvariant
virtual QCString trInvariant()=0
DocParamSect::Exception
@ Exception
Definition: docparser.h:1156
writeMscGraphFromFile
void writeMscGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, MscOutputFormat format, const QCString &srcFile, int srcLine)
Definition: msc.cpp:92
RTFDocVisitor::filter
void filter(const QCString &str, bool verbatim=FALSE)
Definition: rtfdocvisitor.cpp:1770
DocInclude::RtfInclude
@ RtfInclude
Definition: docparser.h:568
DocInclude::SnippetDoc
@ SnippetDoc
Definition: docparser.h:567
DocInclude::LatexInclude
@ LatexInclude
Definition: docparser.h:566
DocParamSect::hasTypeSpecifier
bool hasTypeSpecifier() const
Definition: docparser.h:1169
DocSection::title
QCString title() const
Definition: docparser.h:1008
DocEmoji::index
int index() const
Definition: docparser.h:474
GOF_BITMAP
@ GOF_BITMAP
Definition: dotgraph.h:27
DocCite::anchor
QCString anchor() const
Definition: docparser.h:329
DocVerbatim::engine
QCString engine() const
Definition: docparser.h:530
DocStyleChange::style
Style style() const
Definition: docparser.h:368
DocLinkedWord
Node representing a word that can be linked to something
Definition: docparser.h:231
RTFDocVisitor::m_t
TextStream & m_t
Definition: rtfdocvisitor.h:168
DocStyleChange::Code
@ Code
Definition: docparser.h:348
DocDiagramFileBase::hasCaption
bool hasCaption() const
Definition: docparser.h:811
DocInclude::Include
@ Include
Definition: docparser.h:566
HtmlEntityMapper::rtf
const char * rtf(DocSymbol::SymType symb) const
Access routine to the RTF code of the HTML entity
Definition: htmlentity.cpp:448
Config_getBool
#define Config_getBool(name)
Definition: config.h:33
DocCite::file
QCString file() const
Definition: docparser.h:326
RTFDocVisitor::includePicturePostRTF
void includePicturePostRTF(bool isTypeRTF, bool hasCaption, bool inlineImage=FALSE)
Definition: rtfdocvisitor.cpp:1282
DocDiagramFileBase::srcFile
QCString srcFile() const
Definition: docparser.h:815
DocIncOperator::type
Type type() const
Definition: docparser.h:616
getLanguageFromCodeLang
SrcLangExt getLanguageFromCodeLang(QCString &fileName)
Routine to handle the language attribute of the \code command
Definition: util.cpp:5592
DocParamSect::Type
Type
Definition: docparser.h:1154
DocParamSect::Param
@ Param
Definition: docparser.h:1156
DocSection::file
QCString file() const
Definition: docparser.h:1011
DocAutoList::isEnumList
bool isEnumList() const
Definition: docparser.h:708
DocSimpleSect::Copyright
@ Copyright
Definition: docparser.h:1117
DocParamSect::Unknown
@ Unknown
Definition: docparser.h:1156
DocVerbatim::LatexOnly
@ LatexOnly
Definition: docparser.h:513
QCString::startsWith
bool startsWith(const char *s) const
Definition: qcstring.h:408
FileInfo
Minimal replacement for QFileInfo.
Definition: fileinfo.h:22
qPrint
const char * qPrint(const char *s)
Definition: qcstring.h:589
DocStyleChange::Preformatted
@ Preformatted
Definition: docparser.h:353
Config_getString
#define Config_getString(name)
Definition: config.h:32
DocInclude::blockId
QCString blockId() const
Definition: docparser.h:587
DocHtmlRow::numCells
size_t numCells() const
Definition: docparser.h:1378
DocStyleChange::enable
bool enable() const
Definition: docparser.h:370
DBG_RTF
#define DBG_RTF(x)
Definition: rtfdocvisitor.cpp:42
DocSection::anchor
QCString anchor() const
Definition: docparser.h:1009
RTFDocVisitor::RTFListItemInfo::number
int number
Definition: rtfdocvisitor.h:180
DocSimpleSect::Post
@ Post
Definition: docparser.h:1117
DocSimpleSect::Pre
@ Pre
Definition: docparser.h:1117
DocSimpleSect::Remark
@ Remark
Definition: docparser.h:1117
ASSERT
#define ASSERT(x)
Definition: qcstring.h:44
getFileNameExtension
QCString getFileNameExtension(const QCString &fn)
Definition: util.cpp:5621
DocFormula::isInline
bool isInline()
Definition: docparser.h:668
DocLinkedWord::file
QCString file() const
Definition: docparser.h:239
visitCaption
static void visitCaption(RTFDocVisitor *parent, const DocNodeList &children)
Definition: rtfdocvisitor.cpp:289
QCString::data
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:153
DocStyleChange::Underline
@ Underline
Definition: docparser.h:357
DocIncOperator::includeFileName
QCString includeFileName() const
Definition: docparser.h:640
FileDef
A model of a file symbol.
Definition: filedef.h:73
DocInclude::type
Type type() const
Definition: docparser.h:584
DocVerbatim::XmlOnly
@ XmlOnly
Definition: docparser.h:513
DocParamSect::RetVal
@ RetVal
Definition: docparser.h:1156
DocInclude::DontIncWithLines
@ DontIncWithLines
Definition: docparser.h:568
RTFDocVisitor::RTFListItemInfo::isEnum
bool isEnum
Definition: rtfdocvisitor.h:179
DocIncOperator::context
QCString context() const
Definition: docparser.h:632
DocStyleChange::Div
@ Div
Definition: docparser.h:355
EmojiEntityMapper::instance
static EmojiEntityMapper * instance()
Returns the one and only instance of the Emoji entity mapper
Definition: emoji.cpp:1536
DocNode::parent
DocNode * parent() const
Definition: docparser.h:166
DocInclude::extension
QCString extension() const
Definition: docparser.h:578
DocCite::text
QCString text() const
Definition: docparser.h:330
PlantumlManager::generatePlantUMLOutput
void generatePlantUMLOutput(const QCString &baseName, const QCString &outDir, OutputFormat format)
Convert a PlantUML file to an image.
Definition: plantuml.cpp:91
Translator::trDate
virtual QCString trDate()=0
rtf_pageWidth
const int rtf_pageWidth
Definition: rtfstyle.h:25
DocParamSect::hasInOutSpecifier
bool hasInOutSpecifier() const
Definition: docparser.h:1168
DocParamList::parameters
DocNodeList & parameters()
Definition: docparser.h:1238
DocStyleChange::S
@ S
Definition: docparser.h:360
StyleData::reference
const char * reference() const
Definition: rtfstyle.h:59
DocVerbatim::Verbatim
@ Verbatim
Definition: docparser.h:513
DocImage::type
Type type() const
Definition: docparser.h:778
DocVerbatim::srcLine
int srcLine() const
Definition: docparser.h:535
DocInclude::ManInclude
@ ManInclude
Definition: docparser.h:568
QCString::right
QCString right(size_t len) const
Definition: qcstring.h:217
RTFDocVisitor::getStyle
QCString getStyle(const QCString &name)
Definition: rtfdocvisitor.cpp:64
DocSimpleSect::Invar
@ Invar
Definition: docparser.h:1117
QCString::sprintf
QCString & sprintf(const char *format,...)
Definition: qcstring.cpp:24
DocIncOperator::isLast
bool isLast() const
Definition: docparser.h:635
DocSimpleSect::Version
@ Version
Definition: docparser.h:1116
Translator::trTemplateParameters
virtual QCString trTemplateParameters()=0
DocHtmlHeader::level
int level() const
Definition: docparser.h:962
DocInclude::exampleFile
QCString exampleFile() const
Definition: docparser.h:589
DocIncOperator::text
QCString text() const
Definition: docparser.h:630
FALSE
#define FALSE
Definition: qcstring.h:33
DocSimpleSect::Since
@ Since
Definition: docparser.h:1116
Translator::trReturnValues
virtual QCString trReturnValues()=0
Translator::trAuthor
virtual QCString trAuthor(bool first_capital, bool singular)=0
Translator::trWarning
virtual QCString trWarning()=0
DocSimpleSect::Attention
@ Attention
Definition: docparser.h:1117
DocPara::isLast
bool isLast() const
Definition: docparser.h:1189
DocInclude::context
QCString context() const
Definition: docparser.h:586
DocHtmlListItem::attribs
const HtmlAttribList & attribs() const
Definition: docparser.h:1293
DocVerbatim::Dot
@ Dot
Definition: docparser.h:513
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108