Concrete visitor implementation for LaTeX output.
更多...
#include <latexdocvisitor.h>
|
void | filter (const QCString &str) |
|
void | startLink (const QCString &ref, const QCString &file, const QCString &anchor, bool refToTable=FALSE) |
|
void | endLink (const QCString &ref, const QCString &file, const QCString &anchor, bool refToTable=FALSE) |
|
QCString | escapeMakeIndexChars (const char *s) |
|
void | startDotFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption, const QCString &srcFile, int srcLine) |
|
void | endDotFile (bool hasCaption) |
|
void | startMscFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption, const QCString &srcFile, int srcLine) |
|
void | endMscFile (bool hasCaption) |
|
void | writeMscFile (const QCString &fileName, DocVerbatim *s) |
|
void | startDiaFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption, const QCString &srcFile, int srcLine) |
|
void | endDiaFile (bool hasCaption) |
|
void | writeDiaFile (const QCString &fileName, DocVerbatim *s) |
|
void | writePlantUMLFile (const QCString &fileName, DocVerbatim *s) |
|
void | incIndentLevel () |
|
void | decIndentLevel () |
|
int | indentLevel () const |
|
void | pushTableState () |
|
void | popTableState () |
|
int | currentColumn () const |
|
void | setCurrentColumn (int col) |
|
int | numCols () const |
|
void | setNumCols (int num) |
|
bool | inRowSpan () const |
|
void | setInRowSpan (bool b) |
|
bool | inColSpan () const |
|
void | setInColSpan (bool b) |
|
bool | firstRow () const |
|
void | setFirstRow (bool b) |
|
RowSpanList & | rowSpans () |
|
void | addRowSpan (ActiveRowSpan &&span) |
|
bool | insideTable () const |
|
Concrete visitor implementation for LaTeX output.
在文件 latexdocvisitor.h 第 29 行定义.
◆ RowSpanList
◆ LatexDocVisitor()
◆ addRowSpan()
◆ currentColumn()
int LatexDocVisitor::currentColumn |
( |
| ) |
const |
|
inlineprivate |
◆ decIndentLevel()
void LatexDocVisitor::decIndentLevel |
( |
| ) |
|
|
private |
◆ endDiaFile()
void LatexDocVisitor::endDiaFile |
( |
bool |
hasCaption | ) |
|
|
private |
◆ endDotFile()
void LatexDocVisitor::endDotFile |
( |
bool |
hasCaption | ) |
|
|
private |
◆ endLink()
◆ endMscFile()
void LatexDocVisitor::endMscFile |
( |
bool |
hasCaption | ) |
|
|
private |
◆ escapeMakeIndexChars()
QCString LatexDocVisitor::escapeMakeIndexChars |
( |
const char * |
s | ) |
|
|
private |
在文件 latexdocvisitor.cpp 第 151 行定义.
155 char str[2]; str[1]=0;
163 case '!':
m_t <<
"\"!";
break;
164 case '"':
m_t <<
"\"\"";
break;
165 case '@':
m_t <<
"\"@";
break;
166 case '|':
m_t <<
"\\texttt{\"|}";
break;
167 case '[':
m_t <<
"[";
break;
168 case ']':
m_t <<
"]";
break;
169 case '{':
m_t <<
"\\lcurly{}";
break;
170 case '}':
m_t <<
"\\rcurly{}";
break;
171 default: str[0]=c;
filter(str);
break;
引用了 filter() , 以及 m_t.
◆ filter()
void LatexDocVisitor::filter |
( |
const QCString & |
str | ) |
|
|
private |
◆ firstRow()
bool LatexDocVisitor::firstRow |
( |
| ) |
const |
|
inlineprivate |
◆ incIndentLevel()
void LatexDocVisitor::incIndentLevel |
( |
| ) |
|
|
private |
◆ inColSpan()
bool LatexDocVisitor::inColSpan |
( |
| ) |
const |
|
inlineprivate |
◆ indentLevel()
int LatexDocVisitor::indentLevel |
( |
| ) |
const |
|
private |
◆ inRowSpan()
bool LatexDocVisitor::inRowSpan |
( |
| ) |
const |
|
inlineprivate |
◆ insideTable()
bool LatexDocVisitor::insideTable |
( |
| ) |
const |
|
inlineprivate |
◆ numCols()
int LatexDocVisitor::numCols |
( |
| ) |
const |
|
inlineprivate |
◆ popTableState()
void LatexDocVisitor::popTableState |
( |
| ) |
|
|
inlineprivate |
◆ pushTableState()
void LatexDocVisitor::pushTableState |
( |
| ) |
|
|
inlineprivate |
◆ rowSpans()
◆ setCurrentColumn()
void LatexDocVisitor::setCurrentColumn |
( |
int |
col | ) |
|
|
inlineprivate |
◆ setFirstRow()
void LatexDocVisitor::setFirstRow |
( |
bool |
b | ) |
|
|
inlineprivate |
◆ setInColSpan()
void LatexDocVisitor::setInColSpan |
( |
bool |
b | ) |
|
|
inlineprivate |
◆ setInRowSpan()
void LatexDocVisitor::setInRowSpan |
( |
bool |
b | ) |
|
|
inlineprivate |
◆ setNumCols()
void LatexDocVisitor::setNumCols |
( |
int |
num | ) |
|
|
inlineprivate |
◆ startDiaFile()
void LatexDocVisitor::startDiaFile |
( |
const QCString & |
fileName, |
|
|
const QCString & |
width, |
|
|
const QCString & |
height, |
|
|
bool |
hasCaption, |
|
|
const QCString & |
srcFile, |
|
|
int |
srcLine |
|
) |
| |
|
private |
在文件 latexdocvisitor.cpp 第 2040 行定义.
2050 if ((i=baseName.
findRev(
'/'))!=-1)
2054 if ((i=baseName.
find(
'.'))!=-1)
2056 baseName=baseName.
left(i);
引用了 Config_getString, DIA_EPS, QCString::find(), QCString::findRev(), QCString::left(), QCString::length(), m_t, QCString::prepend(), QCString::right(), visitPreStart() , 以及 writeDiaGraphFromFile().
被这些函数引用 visitPre().
◆ startDotFile()
void LatexDocVisitor::startDotFile |
( |
const QCString & |
fileName, |
|
|
const QCString & |
width, |
|
|
const QCString & |
height, |
|
|
bool |
hasCaption, |
|
|
const QCString & |
srcFile, |
|
|
int |
srcLine |
|
) |
| |
|
private |
在文件 latexdocvisitor.cpp 第 1961 行定义.
1971 if ((i=baseName.
findRev(
'/'))!=-1)
1975 if ((i=baseName.
find(
'.'))!=-1)
1977 baseName=baseName.
left(i);
引用了 Config_getString, QCString::find(), QCString::findRev(), GOF_EPS, QCString::left(), QCString::length(), m_t, QCString::prepend(), QCString::right(), visitPreStart() , 以及 writeDotGraphFromFile().
被这些函数引用 visit() , 以及 visitPre().
◆ startLink()
◆ startMscFile()
void LatexDocVisitor::startMscFile |
( |
const QCString & |
fileName, |
|
|
const QCString & |
width, |
|
|
const QCString & |
height, |
|
|
bool |
hasCaption, |
|
|
const QCString & |
srcFile, |
|
|
int |
srcLine |
|
) |
| |
|
private |
在文件 latexdocvisitor.cpp 第 1992 行定义.
2002 if ((i=baseName.
findRev(
'/'))!=-1)
2006 if ((i=baseName.
find(
'.'))!=-1)
2008 baseName=baseName.
left(i);
引用了 Config_getString, QCString::find(), QCString::findRev(), QCString::left(), QCString::length(), m_t, MSC_EPS, QCString::prepend(), QCString::right(), visitPreStart() , 以及 writeMscGraphFromFile().
被这些函数引用 visitPre().
◆ visit() [1/17]
void LatexDocVisitor::visit |
( |
DocAnchor * |
anc | ) |
|
|
virtual |
◆ visit() [2/17]
void LatexDocVisitor::visit |
( |
DocCite * |
cite | ) |
|
|
virtual |
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 657 行定义.
665 anchor = anchor.
mid(anchorPrefix.
length());
666 m_t <<
"\\cite{" << anchor <<
"}";
670 m_t <<
"{\\bfseries [";
引用了 DocCite::anchor(), CitationManager::anchorPrefix(), DocCite::file(), filter(), CitationManager::instance(), QCString::isEmpty(), QCString::length(), m_hide, m_t, QCString::mid() , 以及 DocCite::text().
◆ visit() [3/17]
void LatexDocVisitor::visit |
( |
DocEmoji * |
s | ) |
|
|
virtual |
◆ visit() [4/17]
◆ visit() [5/17]
◆ visit() [6/17]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 472 行定义.
527 m_t <<
"\n\\begin{DoxyVerbInclude}\n";
529 m_t <<
"\\end{DoxyVerbInclude}\n";
568 err(
"Internal inconsistency: found switch SnippetDoc / IncludeDoc in file: %s"
569 "Please create a bug report\n",__FILE__);
引用了 DocInclude::blockId(), DocInclude::context(), createFileDef(), FileInfo::dirPath(), DocInclude::DocbookInclude, DocInclude::DontInclude, DocInclude::DontIncWithLines, LatexCodeGenerator::endCodeFragment(), err(), DocInclude::exampleFile(), DocInclude::extension(), extractBlock(), FALSE, DocInclude::file(), FileInfo::fileName(), DocVisitor::getCodeParser(), getLanguageFromFileName(), DocInclude::HtmlInclude, DocInclude::Include, DocInclude::IncludeDoc, DocInclude::IncWithLines, DocInclude::isExample(), DocInclude::LatexInclude, lineBlock(), m_ci, m_hide, m_t, DocInclude::ManInclude, CodeParserInterface::parseCode(), DocInclude::RtfInclude, DocInclude::Snippet, DocInclude::SnippetDoc, DocInclude::SnipWithLines, LatexCodeGenerator::startCodeFragment(), QCString::str(), DocInclude::text(), TRUE, DocInclude::type(), DocInclude::VerbInclude , 以及 DocInclude::XmlInclude.
◆ visit() [7/17]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 574 行定义.
引用了 DocIncOperator::context(), createFileDef(), FileInfo::dirPath(), LatexCodeGenerator::endCodeFragment(), DocIncOperator::exampleFile(), FALSE, FileInfo::fileName(), DocVisitor::getCodeParser(), getFileNameExtension(), getLanguageFromFileName(), DocIncOperator::includeFileName(), QCString::isEmpty(), DocIncOperator::isExample(), DocIncOperator::isFirst(), DocIncOperator::isLast(), DocIncOperator::line(), m_ci, m_hide, m_langExt, m_t, CodeParserInterface::parseCode(), DocVisitor::popHidden(), DocVisitor::pushHidden(), DocIncOperator::showLineNo(), DocIncOperator::Skip, LatexCodeGenerator::startCodeFragment(), QCString::str(), DocIncOperator::text(), TRUE , 以及 DocIncOperator::type().
◆ visit() [8/17]
◆ visit() [9/17]
◆ visit() [10/17]
◆ visit() [11/17]
◆ visit() [12/17]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 304 行定义.
310 if (s->
enable())
m_t <<
"{\\bfseries{";
else m_t <<
"}}";
325 if (s->
enable())
m_t <<
"{\\ttfamily ";
else m_t <<
"}";
328 if (s->
enable())
m_t <<
"\\textsubscript{";
else m_t <<
"}";
331 if (s->
enable())
m_t <<
"\\textsuperscript{";
else m_t <<
"}";
334 if (s->
enable())
m_t <<
"\\begin{center}";
else m_t <<
"\\end{center} ";
337 if (s->
enable())
m_t <<
"\n\\footnotesize ";
else m_t <<
"\n\\normalsize ";
342 m_t <<
"\n\\begin{DoxyPre}";
348 m_t <<
"\\end{DoxyPre}\n";
引用了 DocStyleChange::Bold, DocStyleChange::Center, DocStyleChange::Code, DocStyleChange::Del, DocStyleChange::Div, DocStyleChange::enable(), FALSE, DocStyleChange::Ins, DocStyleChange::Italic, m_hide, m_insidePre, m_t, DocStyleChange::Preformatted, DocStyleChange::S, DocStyleChange::Small, DocStyleChange::Span, DocStyleChange::Strike, DocStyleChange::style(), DocStyleChange::Subscript, DocStyleChange::Superscript, TRUE , 以及 DocStyleChange::Underline.
◆ visit() [13/17]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 218 行定义.
229 m_t <<
"\\texorpdfstring{$<$}{<}";
240 m_t <<
"\\texorpdfstring{$>$}{>}";
引用了 Config_getBool, err(), HtmlEntityMapper::instance(), HtmlEntityMapper::latex(), m_hide, m_insidePre, m_t, DocSymbol::Sym_Greater, DocSymbol::Sym_gt, DocSymbol::Sym_Less, DocSymbol::Sym_lt, DocSymbol::symbol() , 以及 TRUE.
◆ visit() [14/17]
void LatexDocVisitor::visit |
( |
DocURL * |
u | ) |
|
|
virtual |
◆ visit() [15/17]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 356 行定义.
376 m_t <<
"\\begin{DoxyVerb}";
378 m_t <<
"\\end{DoxyVerb}\n";
392 static int dotindex = 1;
395 fileName.sprintf(
"%s%d%s",
400 std::ofstream file(fileName.str(),std::ofstream::out | std::ofstream::binary);
403 err(
"Could not open file %s for writing\n",
qPrint(fileName));
420 static int mscindex = 1;
423 baseName.sprintf(
"%s%d",
427 std::string fileName = baseName.str()+
".msc";
428 std::ofstream file(fileName,std::ofstream::out | std::ofstream::binary);
431 err(
"Could not open file %s for writing\n",fileName.c_str());
引用了 DocVerbatim::children(), DocVerbatim::Code, Config_getBool, Config_getString, DocVerbatim::context(), QCString::data(), DocVerbatim::DocbookOnly, DocVerbatim::Dot, LatexCodeGenerator::endCodeFragment(), endDotFile(), DocVerbatim::engine(), err(), DocVerbatim::exampleFile(), DocVisitor::getCodeParser(), getLanguageFromCodeLang(), DocVerbatim::hasCaption(), DocVerbatim::height(), DocVerbatim::HtmlOnly, PlantumlManager::instance(), QCString::isEmpty(), DocVerbatim::isExample(), DocVerbatim::language(), DocVerbatim::LatexOnly, QCString::length(), m_ci, m_hide, m_langExt, m_t, DocVerbatim::ManOnly, DocVerbatim::Msc, CodeParserInterface::parseCode(), DocVerbatim::PlantUML, PlantumlManager::PUML_BITMAP, PlantumlManager::PUML_EPS, qPrint(), Dir::remove(), DocVerbatim::RtfOnly, QCString::sprintf(), DocVerbatim::srcFile(), DocVerbatim::srcLine(), LatexCodeGenerator::startCodeFragment(), startDotFile(), QCString::str(), DocVerbatim::text(), DocVerbatim::type(), DocVerbatim::useBitmap(), DocVerbatim::Verbatim, visitCaption(), DocVerbatim::width(), writeMscFile(), writePlantUMLFile(), PlantumlManager::writePlantUMLSource() , 以及 DocVerbatim::XmlOnly.
◆ visit() [16/17]
◆ visit() [17/17]
void LatexDocVisitor::visit |
( |
DocWord * |
w | ) |
|
|
virtual |
◆ visitPost() [1/37]
◆ visitPost() [2/37]
◆ visitPost() [3/37]
void LatexDocVisitor::visitPost |
( |
DocDiaFile * |
df | ) |
|
|
virtual |
◆ visitPost() [4/37]
void LatexDocVisitor::visitPost |
( |
DocDotFile * |
df | ) |
|
|
virtual |
◆ visitPost() [5/37]
void LatexDocVisitor::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]
void LatexDocVisitor::visitPost |
( |
DocHtmlRow * |
row | ) |
|
|
virtual |
◆ visitPost() [16/37]
◆ visitPost() [17/37]
void LatexDocVisitor::visitPost |
( |
DocImage * |
img | ) |
|
|
virtual |
◆ visitPost() [18/37]
◆ visitPost() [19/37]
◆ visitPost() [20/37]
void LatexDocVisitor::visitPost |
( |
DocLink * |
lnk | ) |
|
|
virtual |
◆ visitPost() [21/37]
void LatexDocVisitor::visitPost |
( |
DocMscFile * |
df | ) |
|
|
virtual |
◆ visitPost() [22/37]
void LatexDocVisitor::visitPost |
( |
DocPara * |
p | ) |
|
|
virtual |
◆ visitPost() [23/37]
◆ visitPost() [24/37]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 1678 行定义.
1685 m_t <<
"\\end{DoxyParams}\n";
1688 m_t <<
"\\end{DoxyRetVals}\n";
1691 m_t <<
"\\end{DoxyExceptions}\n";
1694 m_t <<
"\\end{DoxyTemplParams}\n";
引用了 ASSERT, decIndentLevel(), LatexCodeGenerator::decUsedTableLevel(), DocParamSect::Exception, m_ci, m_hide, m_t, DocParamSect::Param, DocParamSect::RetVal, DocParamSect::TemplateParam , 以及 DocParamSect::type().
◆ visitPost() [25/37]
◆ visitPost() [26/37]
void LatexDocVisitor::visitPost |
( |
DocRef * |
ref | ) |
|
|
virtual |
◆ visitPost() [27/37]
void LatexDocVisitor::visitPost |
( |
DocRoot * |
r | ) |
|
|
virtual |
◆ visitPost() [28/37]
◆ visitPost() [29/37]
◆ visitPost() [30/37]
◆ visitPost() [31/37]
◆ visitPost() [32/37]
◆ visitPost() [33/37]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 832 行定义.
838 m_t <<
"\n\\end{DoxySeeAlso}\n";
841 m_t <<
"\n\\end{DoxyReturn}\n";
844 m_t <<
"\n\\end{DoxyAuthor}\n";
847 m_t <<
"\n\\end{DoxyAuthor}\n";
850 m_t <<
"\n\\end{DoxyVersion}\n";
853 m_t <<
"\n\\end{DoxySince}\n";
856 m_t <<
"\n\\end{DoxyDate}\n";
859 m_t <<
"\n\\end{DoxyNote}\n";
862 m_t <<
"\n\\end{DoxyWarning}\n";
865 m_t <<
"\n\\end{DoxyPrecond}\n";
868 m_t <<
"\n\\end{DoxyPostcond}\n";
871 m_t <<
"\n\\end{DoxyCopyright}\n";
874 m_t <<
"\n\\end{DoxyInvariant}\n";
877 m_t <<
"\n\\end{DoxyRemark}\n";
880 m_t <<
"\n\\end{DoxyAttention}\n";
883 m_t <<
"\n\\end{DoxyParagraph}\n";
886 m_t <<
"\n\\end{DoxyParagraph}\n";
引用了 DocSimpleSect::Attention, DocSimpleSect::Author, DocSimpleSect::Authors, DocSimpleSect::Copyright, DocSimpleSect::Date, decIndentLevel(), DocSimpleSect::Invar, m_hide, m_t, DocSimpleSect::Note, DocSimpleSect::Post, DocSimpleSect::Pre, DocSimpleSect::Rcs, DocSimpleSect::Remark, DocSimpleSect::Return, DocSimpleSect::See, DocSimpleSect::Since, DocSimpleSect::type(), DocSimpleSect::User, DocSimpleSect::Version , 以及 DocSimpleSect::Warning.
◆ visitPost() [34/37]
void LatexDocVisitor::visitPost |
( |
DocText * |
| ) |
|
|
virtual |
◆ visitPost() [35/37]
void LatexDocVisitor::visitPost |
( |
DocTitle * |
| ) |
|
|
virtual |
◆ visitPost() [36/37]
◆ visitPost() [37/37]
◆ visitPre() [1/37]
◆ visitPre() [2/37]
◆ visitPre() [3/37]
◆ visitPre() [4/37]
◆ visitPre() [5/37]
void LatexDocVisitor::visitPre |
( |
DocHRef * |
href | ) |
|
|
virtual |
◆ visitPre() [6/37]
◆ visitPre() [7/37]
◆ visitPre() [8/37]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 1319 行定义.
1332 for (
const auto &span :
rowSpans())
1336 if (row && span.colSpan>1)
1338 m_t <<
"\\multicolumn{" << span.colSpan <<
"}{";
1343 m_t <<
"l|}{" << (c->
isHeading()?
"\\columncolor{\\tableheadbgcolor}" :
"") <<
"}";
1359 m_t <<
"\\multicolumn{" << cs <<
"}{";
1382 m_t <<
"\\multirow";
1400 m_t <<
"{" << rs <<
"}{*}{";
1404 m_t <<
"\\PBS\\centering ";
1408 m_t <<
"\\PBS\\raggedleft ";
1412 m_t <<
"\\cellcolor{\\tableheadbgcolor}\\textbf{ ";
引用了 addRowSpan(), DocHtmlCell::alignment(), DocHtmlCell::Bottom, DocHtmlCell::Center, DocHtmlCell::colSpan(), DocHtmlCell::columnIndex(), currentColumn(), DocHtmlCell::isHeading(), DocNode::kind(), DocNode::Kind_HtmlRow, m_hide, m_t, DocHtmlCell::Middle, DocNode::parent(), DocHtmlCell::Right, DocHtmlCell::rowSpan(), rowSpans(), setCurrentColumn(), setInColSpan(), setInRowSpan(), DocHtmlCell::Top, TRUE , 以及 DocHtmlCell::valignment().
◆ visitPre() [9/37]
◆ visitPre() [10/37]
◆ visitPre() [11/37]
◆ visitPre() [12/37]
◆ visitPre() [13/37]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 946 行定义.
954 m_t <<
"\n\\begin{DoxyEnumerate}";
955 for (
const auto &opt : s->
attribs())
957 if (opt.name==
"type")
961 m_t << (first ?
"[":
",");
962 m_t <<
"label=\\arabic*";
965 else if (opt.value==
"a")
967 m_t << (first ?
"[":
",");
968 m_t <<
"label=\\enumalphalphcnt*";
971 else if (opt.value==
"A")
973 m_t << (first ?
"[":
",");
974 m_t <<
"label=\\enumAlphAlphcnt*";
977 else if (opt.value==
"i")
979 m_t << (first ?
"[":
",");
980 m_t <<
"label=\\roman*";
983 else if (opt.value==
"I")
985 m_t << (first ?
"[":
",");
986 m_t <<
"label=\\Roman*";
990 else if (opt.name==
"start")
992 m_t << (first ?
"[":
",");
994 int val = opt.value.toInt(&ok);
995 if (ok)
m_t <<
"start=" << val;
999 if (!first)
m_t <<
"]\n";
1002 m_t <<
"\n\\begin{DoxyItemize}";
引用了 DocHtmlList::attribs(), indentLevel(), LatexDocVisitor::LatexListItemInfo::isEnum, m_hide, m_indentLevel, m_listItemInfo, m_t, maxIndentLevels, DocHtmlList::Ordered , 以及 DocHtmlList::type().
◆ visitPre() [14/37]
◆ visitPre() [15/37]
◆ visitPre() [16/37]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 1175 行定义.
1196 m_t <<
"\\caption{";
引用了 DocHtmlCaption::anchor(), DocHtmlTable::caption(), CompAccept< T >::children(), Config_getBool, FALSE, DocHtmlCaption::file(), firstRow(), DocHtmlTable::firstRow(), DocHtmlTable::hasCaption(), QCString::isEmpty(), m_hide, m_t, DocHtmlTable::numColumns(), DocNode::parent(), pushTableState(), setFirstRow(), setNumCols(), stripPath(), tableIsNested(), TRUE, visitCaption() , 以及 writeStartTableCommand().
◆ visitPre() [17/37]
void LatexDocVisitor::visitPre |
( |
DocImage * |
img | ) |
|
|
virtual |
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 1483 行定义.
1489 if (gfxName.
right(4)==
".eps" || gfxName.
right(4)==
".pdf")
引用了 DocImage::hasCaption(), DocImage::height(), DocImage::isInlineImage(), DocImage::Latex, QCString::left(), QCString::length(), m_hide, m_t, DocImage::name(), DocVisitor::pushHidden(), QCString::right(), TRUE, DocImage::type(), visitPreStart() , 以及 DocImage::width().
◆ visitPre() [18/37]
◆ visitPre() [19/37]
◆ visitPre() [20/37]
void LatexDocVisitor::visitPre |
( |
DocLink * |
lnk | ) |
|
|
virtual |
◆ visitPre() [21/37]
◆ visitPre() [22/37]
void LatexDocVisitor::visitPre |
( |
DocPara * |
| ) |
|
|
virtual |
◆ visitPre() [23/37]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 1702 行定义.
1724 m_t <<
"\\mbox{\\texttt{ ";
1739 if (useTable)
m_t <<
" & ";
1758 if (useTable)
m_t <<
" & ";
1764 if (!first)
m_t <<
",";
else first=
FALSE;
引用了 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_insideItem, m_t, DocParamSect::Out, DocParamSect::Param, DocParamList::parameters(), DocParamList::paramTypes(), DocNode::parent(), DocParamSect::RetVal, DocParamSect::TemplateParam, TRUE, DocParamSect::Unknown, DocParamSect::Unspecified , 以及 visit().
◆ visitPre() [24/37]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 1644 行定义.
1653 m_t <<
"\n\\begin{DoxyParams}";
1654 if (hasInOutSpecs && hasTypeSpecs)
m_t <<
"[2]";
1655 else if (hasInOutSpecs || hasTypeSpecs)
m_t <<
"[1]";
1660 m_t <<
"\n\\begin{DoxyRetVals}{";
1664 m_t <<
"\n\\begin{DoxyExceptions}{";
1668 m_t <<
"\n\\begin{DoxyTemplParams}{";
引用了 ASSERT, DocParamSect::Exception, filter(), DocParamSect::hasInOutSpecifier(), DocParamSect::hasTypeSpecifier(), incIndentLevel(), LatexCodeGenerator::incUsedTableLevel(), m_ci, m_hide, m_t, DocParamSect::Param, DocParamSect::RetVal, DocParamSect::TemplateParam, theTranslator, Translator::trExceptions(), Translator::trParameters(), Translator::trReturnValues(), Translator::trTemplateParameters() , 以及 DocParamSect::type().
◆ visitPre() [25/37]
◆ visitPre() [26/37]
void LatexDocVisitor::visitPre |
( |
DocRef * |
ref | ) |
|
|
virtual |
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 1562 行定义.
引用了 DocRef::anchor(), DocRef::file(), filter(), DocRef::hasLinkText(), QCString::isEmpty(), DocRef::isSubPage(), m_hide, DocRef::ref(), DocRef::refToTable(), startLink() , 以及 DocRef::targetTitle().
◆ visitPre() [27/37]
void LatexDocVisitor::visitPre |
( |
DocRoot * |
r | ) |
|
|
virtual |
◆ visitPre() [28/37]
◆ visitPre() [29/37]
◆ visitPre() [30/37]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 930 行定义.
引用了 DocSection::anchor(), Config_getBool, convertCharEntitiesToUTF8(), DocSection::file(), filter(), getSectionName(), DocSection::level(), m_hide, m_t, stripPath() , 以及 DocSection::title().
◆ visitPre() [31/37]
◆ visitPre() [32/37]
◆ visitPre() [33/37]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 746 行定义.
752 m_t <<
"\\begin{DoxySeeAlso}{";
756 m_t <<
"\\begin{DoxyReturn}{";
760 m_t <<
"\\begin{DoxyAuthor}{";
764 m_t <<
"\\begin{DoxyAuthor}{";
768 m_t <<
"\\begin{DoxyVersion}{";
772 m_t <<
"\\begin{DoxySince}{";
776 m_t <<
"\\begin{DoxyDate}{";
780 m_t <<
"\\begin{DoxyNote}{";
784 m_t <<
"\\begin{DoxyWarning}{";
788 m_t <<
"\\begin{DoxyPrecond}{";
792 m_t <<
"\\begin{DoxyPostcond}{";
796 m_t <<
"\\begin{DoxyCopyright}{";
800 m_t <<
"\\begin{DoxyInvariant}{";
804 m_t <<
"\\begin{DoxyRemark}{";
808 m_t <<
"\\begin{DoxyAttention}{";
812 m_t <<
"\\begin{DoxyParagraph}{";
815 m_t <<
"\\begin{DoxyParagraph}{";
引用了 DocSimpleSect::Attention, DocSimpleSect::Author, DocSimpleSect::Authors, DocSimpleSect::Copyright, DocSimpleSect::Date, FALSE, filter(), incIndentLevel(), DocSimpleSect::Invar, m_hide, m_insideItem, m_t, DocSimpleSect::Note, DocSimpleSect::Post, DocSimpleSect::Pre, DocSimpleSect::Rcs, DocSimpleSect::Remark, DocSimpleSect::Return, 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 LatexDocVisitor::visitPre |
( |
DocText * |
| ) |
|
|
virtual |
◆ visitPre() [35/37]
void LatexDocVisitor::visitPre |
( |
DocTitle * |
| ) |
|
|
virtual |
◆ visitPre() [36/37]
◆ visitPre() [37/37]
实现了 DocVisitor.
在文件 latexdocvisitor.cpp 第 1806 行定义.
1812 m_t <<
"\\begin{DoxyRefDesc}{";
1815 bool anonymousEnum = x->
file()==
"@";
1817 if (pdfHyperlinks && !anonymousEnum)
1823 m_t <<
"\\textbf{ ";
1828 if (pdfHyperlinks && !anonymousEnum)
引用了 DocXRefItem::anchor(), Config_getBool, FALSE, DocXRefItem::file(), filter(), incIndentLevel(), QCString::isEmpty(), m_hide, m_insideItem, m_t, stripPath(), DocXRefItem::title() , 以及 TRUE.
◆ writeDiaFile()
在文件 latexdocvisitor.cpp 第 2072 行定义.
2076 if ((i=shortName.
findRev(
'/'))!=-1)
2078 shortName=shortName.
right(shortName.
length()-i-1);
引用了 DocVerbatim::children(), Config_getString, DIA_EPS, QCString::findRev(), DocVerbatim::hasCaption(), DocVerbatim::height(), QCString::length(), m_t, QCString::right(), DocVerbatim::srcFile(), DocVerbatim::srcLine(), visitCaption(), visitPostEnd(), visitPreStart(), DocVerbatim::width() , 以及 writeDiaGraphFromFile().
◆ writeMscFile()
在文件 latexdocvisitor.cpp 第 2024 行定义.
2028 if ((i=shortName.
findRev(
'/'))!=-1)
2030 shortName=shortName.
right(shortName.
length()-i-1);
引用了 DocVerbatim::children(), Config_getString, QCString::findRev(), DocVerbatim::hasCaption(), DocVerbatim::height(), QCString::length(), m_t, MSC_EPS, QCString::right(), DocVerbatim::srcFile(), DocVerbatim::srcLine(), visitCaption(), visitPostEnd(), visitPreStart(), DocVerbatim::width() , 以及 writeMscGraphFromFile().
被这些函数引用 visit().
◆ writePlantUMLFile()
在文件 latexdocvisitor.cpp 第 2087 行定义.
2091 if ((i=shortName.
findRev(
'/'))!=-1)
2093 shortName=shortName.
right(shortName.
length()-i-1);
2097 if (shortName.
find(
'.')==-1) shortName +=
".png";
引用了 DocVerbatim::children(), Config_getString, QCString::find(), QCString::findRev(), PlantumlManager::generatePlantUMLOutput(), DocVerbatim::hasCaption(), DocVerbatim::height(), PlantumlManager::instance(), QCString::length(), m_t, PlantumlManager::PUML_BITMAP, PlantumlManager::PUML_EPS, QCString::right(), DocVerbatim::useBitmap(), visitCaption(), visitPostEnd(), visitPreStart() , 以及 DocVerbatim::width().
被这些函数引用 visit().
◆ m_ci
◆ m_emptyRowSpanList
◆ m_hide
bool LatexDocVisitor::m_hide |
|
private |
◆ m_hideCaption
bool LatexDocVisitor::m_hideCaption |
|
private |
◆ m_indentLevel
int LatexDocVisitor::m_indentLevel = 0 |
|
private |
◆ m_insideItem
bool LatexDocVisitor::m_insideItem |
|
private |
◆ m_insidePre
bool LatexDocVisitor::m_insidePre |
|
private |
◆ m_insideTabbing
bool LatexDocVisitor::m_insideTabbing |
|
private |
◆ m_langExt
◆ m_listItemInfo
◆ m_t
在文件 latexdocvisitor.h 第 188 行定义.
被这些函数引用 endDiaFile(), endDotFile(), endLink(), endMscFile(), escapeMakeIndexChars(), filter(), startDiaFile(), startDotFile(), startLink(), startMscFile(), visit(), visitPost(), visitPre(), writeDiaFile(), writeMscFile() , 以及 writePlantUMLFile().
◆ m_tableStateStack
std::stack<TableState> LatexDocVisitor::m_tableStateStack |
|
private |
在文件 latexdocvisitor.h 第 206 行定义.
被这些函数引用 addRowSpan(), currentColumn(), firstRow(), inColSpan(), inRowSpan(), insideTable(), numCols(), popTableState(), pushTableState(), rowSpans(), setCurrentColumn(), setFirstRow(), setInColSpan(), setInRowSpan() , 以及 setNumCols().
◆ maxIndentLevels
const int LatexDocVisitor::maxIndentLevels = 13 |
|
staticprivate |
该类的文档由以下文件生成:
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.
void writeDiaGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, DiaOutputFormat format, const QCString &srcFile, int srcLine)
const char * latex(DocSymbol::SymType symb) const
Access routine to the LaTeX code of the HTML entity
DocHtmlCaption * caption() const
virtual QCString trCopyright()=0
QCString integerToRoman(int n, bool upper)
DocNodeList & paramTypes()
static void writeStartTableCommand(TextStream &t, const DocNode *n, int cols)
virtual QCString trPostcondition()=0
bool isInlineImage() const
QCString latexFilterURL(const QCString &s)
void endMscFile(bool hasCaption)
std::stack< TableState > m_tableStateStack
Alignment alignment() const
void pushHidden(bool hide)
virtual QCString trNote()=0
LatexListItemInfo m_listItemInfo[maxIndentLevels]
bool remove(const std::string &path, bool acceptsAbsPath=true) const
Class representing a directory in the file system
Helper class to compute the grid for an HTML style table
static void visitCaption(LatexDocVisitor *parent, const DocNodeList &children)
void startCodeFragment(const QCString &style) override
static void visitPreStart(TextStream &t, bool hasCaption, QCString name, QCString width, QCString height, bool inlineImage=FALSE)
static const char * getSectionName(int level)
uint length() const
Returns the length of the string, not counting the 0-terminator.
void endDiaFile(bool hasCaption)
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
size_t numColumns() const
Abstract node interface with type information.
void writePlantUMLFile(const QCString &fileName, DocVerbatim *s)
static void visitPostEnd(TextStream &t, bool hasCaption, bool inlineImage=FALSE)
SrcLangExt
Language as given by extension
virtual QCString trReturns()=0
QCString targetTitle() const
QCString exampleFile() const
static bool classEqualsReflist(const DocNode *n)
static PlantumlManager & instance()
virtual QCString trPrecondition()=0
void err(const char *fmt,...)
int find(char c, int index=0, bool cs=TRUE) const
static CitationManager & instance()
const HtmlAttribList & attribs() const
void setInColSpan(bool b)
void endDotFile(bool hasCaption)
static HtmlEntityMapper * instance()
Returns the one and only instance of the HTML entity mapper
void addRowSpan(ActiveRowSpan &&span)
static bool listIsNested(const DocNode *n)
void startDiaFile(const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption, const QCString &srcFile, int srcLine)
CodeParserInterface & getCodeParser(const QCString &langExt)
void startDotFile(const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption, const QCString &srcFile, int srcLine)
DocHtmlRow * firstRow() const
virtual QCString trSeeAlso()=0
const char * name(int index) const
Access routine to the name of the Emoji entity
QCString extractBlock(const QCString &text, const QCString &marker)
Returns the section of text, in between a pair of markers.
FileDef * createFileDef(const QCString &p, const QCString &n, const QCString &ref, const QCString &dn)
virtual Kind kind() const =0
virtual QCString trVersion()=0
QCString left(size_t len) const
void writeDotGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, GraphOutputFormat format, const QCString &srcFile, int srcLine)
Node representing a HTML table caption
virtual QCString trAttention()=0
Translator * theTranslator
void startMscFile(const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption, const QCString &srcFile, int srcLine)
Node representing a separator
LatexCodeGenerator & m_ci
QCString exampleFile() const
void endLink(const QCString &ref, const QCString &file, const QCString &anchor, bool refToTable=FALSE)
const int DocVisitor_Latex
QCString stripPath(const QCString &s)
virtual QCString trPageAbbreviation()=0
QCString latexEscapeLabelName(const QCString &s)
virtual QCString trParameters()=0
int usedTableLevel() const
int currentColumn() const
SrcLangExt getLanguageFromFileName(const QCString &fileName, SrcLangExt defLang)
Node representing a parameter section
const DocNodeList & children() const
virtual QCString trRemarks()=0
static const int maxIndentLevels
int lineBlock(const QCString &text, const QCString &marker)
Returns the line number of the line following the line with the marker.
void setInRowSpan(bool b)
DocParamSect::Direction direction() const
QCString language() const
static bool tableIsNested(const DocNode *n)
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.
virtual QCString trSince()=0
void endCodeFragment(const QCString &style) override
virtual QCString trInvariant()=0
void writeMscGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, MscOutputFormat format, const QCString &srcFile, int srcLine)
bool hasTypeSpecifier() const
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
Node representing a word that can be linked to something
#define Config_getBool(name)
void filter(const QCString &str)
SrcLangExt getLanguageFromCodeLang(QCString &fileName)
Routine to handle the language attribute of the \code command
Minimal replacement for QFileInfo.
const char * qPrint(const char *s)
static void writeEndTableCommand(TextStream &t, const DocNode *n)
#define Config_getString(name)
QCString convertCharEntitiesToUTF8(const QCString &str)
QCString getFileNameExtension(const QCString &fn)
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.
const DocNodeList & children() const
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
void filterLatexString(TextStream &t, const QCString &str, bool insideTabbing, bool insidePre, bool insideItem, bool insideTable, bool keepSpaces)
DocNodeList & parameters()
Valignment valignment() const
Node representing a HTML table row
void setCurrentColumn(int col)
QCString latexEscapeIndexChars(const QCString &s)
QCString right(size_t len) const
QCString & prepend(const char *s)
void startLink(const QCString &ref, const QCString &file, const QCString &anchor, bool refToTable=FALSE)
QCString anchorPrefix() const
virtual QCString trTemplateParameters()=0
void writeMscFile(const QCString &fileName, DocVerbatim *s)
QCString exampleFile() const
RowSpanList m_emptyRowSpanList
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.