Concrete visitor implementation for RTF output.
更多...
#include <rtfdocvisitor.h>
|
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) |
|
Concrete visitor implementation for RTF output.
在文件 rtfdocvisitor.h 第 31 行定义.
◆ RTFDocVisitor()
◆ decIndentLevel()
void RTFDocVisitor::decIndentLevel |
( |
| ) |
|
|
private |
◆ endLink()
void RTFDocVisitor::endLink |
( |
const QCString & |
ref | ) |
|
|
private |
◆ filter()
void RTFDocVisitor::filter |
( |
const QCString & |
str, |
|
|
bool |
verbatim = FALSE |
|
) |
| |
|
private |
◆ getStyle()
◆ incIndentLevel()
void RTFDocVisitor::incIndentLevel |
( |
| ) |
|
|
private |
◆ includePicturePostRTF()
void RTFDocVisitor::includePicturePostRTF |
( |
bool |
isTypeRTF, |
|
|
bool |
hasCaption, |
|
|
bool |
inlineImage = FALSE |
|
) |
| |
|
private |
◆ includePicturePreRTF()
void RTFDocVisitor::includePicturePreRTF |
( |
const QCString & |
name, |
|
|
bool |
isTypeRTF, |
|
|
bool |
hasCaption, |
|
|
bool |
inlineImage = FALSE |
|
) |
| |
|
private |
◆ indentLevel()
int RTFDocVisitor::indentLevel |
( |
| ) |
const |
|
private |
◆ startLink()
◆ visit() [1/17]
◆ visit() [2/17]
void RTFDocVisitor::visit |
( |
DocCite * |
cite | ) |
|
|
virtual |
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 636 行定义.
639 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocCite)}\n");
引用了 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 |
◆ visit() [4/17]
◆ visit() [5/17]
◆ visit() [6/17]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 428 行定义.
432 DBG_RTF(
"{\\comment RTFDocVisitor::visit(DocInclude)}\n");
534 err(
"Internal inconsistency: found switch SnippetDoc / IncludeDoc in file: %s"
535 "Please create a bug report\n",__FILE__);
引用了 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]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 541 行定义.
545 DBG_RTF(
"{\\comment RTFDocVisitor::visit(DocIncOperator)}\n");
引用了 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]
◆ visit() [9/17]
◆ visit() [10/17]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 102 行定义.
105 DBG_RTF(
"{\\comment RTFDocVisitor::visit(DocLinkedWord)}\n");
引用了 DocLinkedWord::anchor(), DBG_RTF, endLink(), FALSE, DocLinkedWord::file(), filter(), m_hide, m_lastIsPara, DocLinkedWord::ref(), startLink() , 以及 DocLinkedWord::word().
◆ visit() [11/17]
◆ visit() [12/17]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 231 行定义.
235 DBG_RTF(
"{\\comment RTFDocVisitor::visit(DocStyleChange)}\n");
引用了 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]
◆ visit() [14/17]
void RTFDocVisitor::visit |
( |
DocURL * |
u | ) |
|
|
virtual |
◆ visit() [15/17]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 294 行定义.
297 DBG_RTF(
"{\\comment RTFDocVisitor::visit(DocVerbatim)}\n");
335 static int dotindex = 1;
338 fileName.sprintf(
"%s%d%s",
343 std::ofstream file(fileName.str(),std::ofstream::out | std::ofstream::binary);
346 err(
"Could not open file %s for writing\n",
qPrint(fileName));
364 static int mscindex = 1;
367 baseName.sprintf(
"%s%d%s",
372 std::ofstream file(baseName.str(),std::ofstream::out | std::ofstream::binary);
375 err(
"Could not open file %s for writing\n",
qPrint(baseName));
引用了 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]
◆ visit() [17/17]
void RTFDocVisitor::visit |
( |
DocWord * |
w | ) |
|
|
virtual |
◆ visitPost() [1/37]
◆ visitPost() [2/37]
◆ visitPost() [3/37]
◆ visitPost() [4/37]
◆ visitPost() [5/37]
void RTFDocVisitor::visitPost |
( |
DocHRef * |
| ) |
|
|
virtual |
◆ visitPost() [6/37]
◆ visitPost() [7/37]
◆ visitPost() [8/37]
◆ visitPost() [9/37]
◆ visitPost() [10/37]
◆ visitPost() [11/37]
◆ visitPost() [12/37]
◆ visitPost() [13/37]
◆ visitPost() [14/37]
◆ visitPost() [15/37]
◆ visitPost() [16/37]
◆ visitPost() [17/37]
void RTFDocVisitor::visitPost |
( |
DocImage * |
img | ) |
|
|
virtual |
◆ visitPost() [18/37]
◆ visitPost() [19/37]
◆ visitPost() [20/37]
void RTFDocVisitor::visitPost |
( |
DocLink * |
lnk | ) |
|
|
virtual |
◆ visitPost() [21/37]
◆ visitPost() [22/37]
void RTFDocVisitor::visitPost |
( |
DocPara * |
p | ) |
|
|
virtual |
◆ visitPost() [23/37]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 1600 行定义.
1603 DBG_RTF(
"{\\comment RTFDocVisitor::visitPost(DocParamList)}\n");
1618 m_t <<
"\\cell }\n";
1620 m_t <<
"{\\row }\n";
引用了 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]
◆ visitPost() [25/37]
◆ visitPost() [26/37]
void RTFDocVisitor::visitPost |
( |
DocRef * |
ref | ) |
|
|
virtual |
◆ visitPost() [27/37]
void RTFDocVisitor::visitPost |
( |
DocRoot * |
r | ) |
|
|
virtual |
◆ visitPost() [28/37]
◆ visitPost() [29/37]
◆ visitPost() [30/37]
◆ visitPost() [31/37]
◆ visitPost() [32/37]
◆ visitPost() [33/37]
◆ visitPost() [34/37]
void RTFDocVisitor::visitPost |
( |
DocText * |
| ) |
|
|
virtual |
◆ visitPost() [35/37]
void RTFDocVisitor::visitPost |
( |
DocTitle * |
| ) |
|
|
virtual |
◆ visitPost() [36/37]
◆ visitPost() [37/37]
◆ visitPre() [1/37]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 664 行定义.
667 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocAutoList)}\n");
引用了 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]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 686 行定义.
689 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocAutoListItem)}\n");
引用了 DBG_RTF, FALSE, getStyle(), incIndentLevel(), indentLevel(), m_hide, m_lastIsPara, m_listItemInfo, m_t, RTFDocVisitor::RTFListItemInfo::number , 以及 rtf_Style_Reset.
◆ visitPre() [3/37]
◆ visitPre() [4/37]
◆ visitPre() [5/37]
void RTFDocVisitor::visitPre |
( |
DocHRef * |
href | ) |
|
|
virtual |
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 1154 行定义.
1157 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocHRef)}\n");
1171 "{\\cs37\\ul\\cf2 ";
1177 "{ HYPERLINK \"" << href->
url() <<
"\" "
1181 "{\\cs37\\ul\\cf2 ";
引用了 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]
◆ visitPre() [7/37]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 1062 行定义.
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}} ";
引用了 DBG_RTF , 以及 m_t.
◆ visitPre() [8/37]
◆ visitPre() [9/37]
◆ visitPre() [10/37]
◆ visitPre() [11/37]
◆ visitPre() [12/37]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 1208 行定义.
1211 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocHtmlHeader)}\n");
1215 int level = std::min(header->
level(),5);
1216 heading.
sprintf(
"Heading%d",level);
1220 m_t <<
"{\\tc\\tcl" << level <<
" ";
引用了 DBG_RTF, FALSE, DocHtmlHeader::level(), m_hide, m_lastIsPara, m_t, rtf_Style, rtf_Style_Reset, QCString::sprintf() , 以及 QCString::str().
◆ visitPre() [13/37]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 900 行定义.
903 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocHtmlList)}\n");
909 for (
const auto &opt : l->attribs())
911 if (opt.name==
"type")
915 if (opt.name==
"start")
918 int val = opt.value.toInt(&ok);
引用了 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]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 933 行定义.
936 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocHtmlListItem)}\n");
942 for (
const auto &opt : l->
attribs())
944 if (opt.name==
"value")
947 int val = opt.value.toInt(&ok);
引用了 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]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 1075 行定义.
1078 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocHtmlRow)}\n");
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";
1091 m_t <<
"\\clcbpat16";
1093 m_t <<
"\\clvertalt\\clbrdrt\\brdrs\\brdrw10 "
1094 "\\clbrdrl\\brdrs\\brdrw10 "
1095 "\\clbrdrb\\brdrs\\brdrw10 "
1096 "\\clbrdrr \\brdrs\\brdrw10 "
1098 "\\cellx" << ((i+1)*columnWidth) <<
"\n";
1100 m_t <<
"\\pard \\widctlpar\\intbl\\adjustright\n";
引用了 DBG_RTF, FALSE, DocHtmlRow::isHeading(), m_hide, m_lastIsPara, m_t, DocHtmlRow::numCells() , 以及 rtf_pageWidth.
◆ visitPre() [16/37]
◆ visitPre() [17/37]
void RTFDocVisitor::visitPre |
( |
DocImage * |
img | ) |
|
|
virtual |
◆ visitPre() [18/37]
◆ visitPre() [19/37]
◆ visitPre() [20/37]
void RTFDocVisitor::visitPre |
( |
DocLink * |
lnk | ) |
|
|
virtual |
◆ visitPre() [21/37]
◆ visitPre() [22/37]
void RTFDocVisitor::visitPre |
( |
DocPara * |
| ) |
|
|
virtual |
◆ visitPre() [23/37]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 1467 行定义.
1469 static int columnPos[4][5] =
1470 { { 2, 25, 100, 100, 100 },
1471 { 3, 14, 35, 100, 100 },
1472 { 3, 25, 50, 100, 100 },
1473 { 4, 14, 35, 55, 100 },
1477 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocParamList)}\n");
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++)
1504 m_t <<
"\\clvertalt\\clbrdrt\\brdrs\\brdrw10\\brdrcf15 "
1505 "\\clbrdrl\\brdrs\\brdrw10\\brdrcf15 "
1506 "\\clbrdrb\\brdrs\\brdrw10\\brdrcf15 "
1507 "\\clbrdrr \\brdrs\\brdrw10\\brdrcf15 "
1509 "\\cellx" << (
rtf_pageWidth*columnPos[config][i+1]/100) <<
"\n";
1511 m_t <<
"\\pard \\widctlpar\\intbl\\adjustright\n";
1581 if (!first)
m_t <<
",";
else first=
FALSE;
引用了 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]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 1416 行定义.
1419 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocParamSect)}\n");
1423 m_t <<
"{" <<
rtf_Style[
"Heading5"].reference() <<
"\n";
引用了 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]
◆ visitPre() [26/37]
void RTFDocVisitor::visitPre |
( |
DocRef * |
ref | ) |
|
|
virtual |
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 1359 行定义.
1362 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocRef)}\n");
引用了 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 |
◆ visitPre() [28/37]
◆ visitPre() [29/37]
◆ visitPre() [30/37]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 869 行定义.
872 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocSection)}\n");
879 int level = std::min(s->
level()+1,4);
880 heading.
sprintf(
"Heading%d",level);
885 m_t <<
"\n\\par" <<
"}\n";
886 m_t <<
"{\\tc\\tcl" << level <<
" \\v ";
引用了 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]
◆ visitPre() [32/37]
◆ visitPre() [33/37]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 752 行定义.
755 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocSimpleSect)}\n");
759 m_t <<
"{" <<
rtf_Style[
"Heading5"].reference() <<
"\n";
804 m_t <<
"{\\s17 \\sa60 \\sb30\n";
引用了 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 |
◆ visitPre() [35/37]
void RTFDocVisitor::visitPre |
( |
DocTitle * |
| ) |
|
|
virtual |
◆ visitPre() [36/37]
◆ visitPre() [37/37]
实现了 DocVisitor.
在文件 rtfdocvisitor.cpp 第 1630 行定义.
1634 bool anonymousEnum = x->
file()==
"@";
1635 DBG_RTF(
"{\\comment RTFDocVisitor::visitPre(DocXRefItem)}\n");
1643 m_t <<
"{" <<
rtf_Style[
"Heading5"].reference() <<
"\n";
1666 "{\\cs37\\ul\\cf2 ";
引用了 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.cpp 第 1896 行定义.
1900 if ((i=baseName.
findRev(
'/'))!=-1)
引用了 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 |
◆ 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 |
◆ writeMscFile() [2/2]
void RTFDocVisitor::writeMscFile |
( |
DocMscFile * |
df | ) |
|
|
private |
◆ writePlantUMLFile()
void RTFDocVisitor::writePlantUMLFile |
( |
const QCString & |
fileName, |
|
|
bool |
hasCaption |
|
) |
| |
|
private |
◆ m_ci
◆ m_hide
bool RTFDocVisitor::m_hide = false |
|
private |
◆ m_indentLevel
int RTFDocVisitor::m_indentLevel = 0 |
|
private |
◆ m_insidePre
bool RTFDocVisitor::m_insidePre = false |
|
private |
◆ m_langExt
◆ m_lastIsPara
bool RTFDocVisitor::m_lastIsPara = false |
|
private |
◆ m_listItemInfo
◆ m_t
◆ maxIndentLevels
const int RTFDocVisitor::maxIndentLevels = 13 |
|
staticprivate |
该类的文档由以下文件生成:
void writeDiaGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, DiaOutputFormat format, const QCString &srcFile, int srcLine)
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.
QCString getDotImageExtension()
virtual QCString trCopyright()=0
QCString integerToRoman(int n, bool upper)
DocNodeList & paramTypes()
virtual QCString trPostcondition()=0
bool isInlineImage() const
void startLink(const QCString &ref, const QCString &file, const QCString &anchor)
void pushHidden(bool hide)
virtual QCString trNote()=0
bool remove(const std::string &path, bool acceptsAbsPath=true) const
Class representing a directory in the file system
void endLink(const QCString &ref)
uint length() const
Returns the length of the string, not counting the 0-terminator.
int findRev(char c, int index=-1, bool cs=TRUE) const
virtual QCString trExceptions()=0
bool isEmpty() const
Returns TRUE iff the string is empty
void writePlantUMLFile(const QCString &fileName, bool hasCaption)
SrcLangExt
Language as given by extension
virtual QCString trReturns()=0
static QCString align(DocHtmlCell *cell)
void writeMscFile(const QCString &fileName, bool hasCaption, const QCString &srcFile, int srcLine)
QCString targetTitle() const
QCString exampleFile() const
static PlantumlManager & instance()
virtual QCString trPrecondition()=0
void err(const char *fmt,...)
static HtmlEntityMapper * instance()
Returns the one and only instance of the HTML entity mapper
CodeParserInterface & getCodeParser(const QCString &langExt)
virtual QCString trSeeAlso()=0
QCString rtfFormatBmkStr(const QCString &name)
QCString extractBlock(const QCString &text, const QCString &marker)
Returns the section of text, in between a pair of markers.
const char * unicode(int index) const
Access routine to the unicode sequence for the Emoji entity
FileDef * createFileDef(const QCString &p, const QCString &n, const QCString &ref, const QCString &dn)
virtual Kind kind() const =0
virtual QCString trVersion()=0
void writeDotGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, GraphOutputFormat format, const QCString &srcFile, int srcLine)
virtual QCString trAttention()=0
Translator * theTranslator
Node representing a separator
QCString exampleFile() const
QCString stripPath(const QCString &s)
virtual QCString trParameters()=0
void writeDotFile(const QCString &fileName, bool hasCaption, const QCString &srcFile, int srcLine)
SrcLangExt getLanguageFromFileName(const QCString &fileName, SrcLangExt defLang)
Node representing a parameter section
const DocNodeList & children() const
static const int maxIndentLevels
QCString integerToAlpha(int n, bool upper)
virtual QCString trRemarks()=0
void includePicturePreRTF(const QCString &name, bool isTypeRTF, bool hasCaption, bool inlineImage=FALSE)
RTFListItemInfo m_listItemInfo[maxIndentLevels]
int lineBlock(const QCString &text, const QCString &marker)
Returns the line number of the line following the line with the marker.
CodeOutputInterface & m_ci
DocParamSect::Direction direction() const
QCString language() const
void writeDiaFile(DocDiaFile *)
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(short n)
virtual QCString trSince()=0
virtual QCString trInvariant()=0
void writeMscGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, MscOutputFormat format, const QCString &srcFile, int srcLine)
void filter(const QCString &str, bool verbatim=FALSE)
bool hasTypeSpecifier() const
Node representing a word that can be linked to something
const char * rtf(DocSymbol::SymType symb) const
Access routine to the RTF code of the HTML entity
#define Config_getBool(name)
void includePicturePostRTF(bool isTypeRTF, bool hasCaption, bool inlineImage=FALSE)
SrcLangExt getLanguageFromCodeLang(QCString &fileName)
Routine to handle the language attribute of the \code command
bool startsWith(const char *s) const
Minimal replacement for QFileInfo.
const char * qPrint(const char *s)
#define Config_getString(name)
QCString getFileNameExtension(const QCString &fn)
static void visitCaption(RTFDocVisitor *parent, const DocNodeList &children)
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string
QCString includeFileName() const
A model of a file symbol.
static EmojiEntityMapper * instance()
Returns the one and only instance of the Emoji entity mapper
QCString extension() const
void generatePlantUMLOutput(const QCString &baseName, const QCString &outDir, OutputFormat format)
Convert a PlantUML file to an image.
virtual QCString trDate()=0
bool hasInOutSpecifier() const
DocNodeList & parameters()
const char * reference() const
QCString right(size_t len) const
QCString getStyle(const QCString &name)
QCString & sprintf(const char *format,...)
virtual QCString trTemplateParameters()=0
QCString exampleFile() const
virtual QCString trReturnValues()=0
virtual QCString trAuthor(bool first_capital, bool singular)=0
virtual QCString trWarning()=0
const HtmlAttribList & attribs() const
This is an alternative implementation of QCString.