Concrete visitor implementation for LaTeX output.
更多...
#include <mandocvisitor.h>
Concrete visitor implementation for LaTeX output.
在文件 mandocvisitor.h 第 31 行定义.
◆ ManDocVisitor()
◆ filter()
void ManDocVisitor::filter |
( |
const QCString & |
str | ) |
|
|
private |
◆ visit() [1/17]
◆ visit() [2/17]
void ManDocVisitor::visit |
( |
DocCite * |
cite | ) |
|
|
virtual |
◆ visit() [3/17]
void ManDocVisitor::visit |
( |
DocEmoji * |
s | ) |
|
|
virtual |
◆ visit() [4/17]
◆ visit() [5/17]
◆ visit() [6/17]
实现了 DocVisitor.
在文件 mandocvisitor.cpp 第 245 行定义.
364 err(
"Internal inconsistency: found switch SnippetDoc / IncludeDoc in file: %s"
365 "Please create a bug report\n",__FILE__);
引用了 DocInclude::blockId(), DocInclude::context(), createFileDef(), FileInfo::dirPath(), DocInclude::DocbookInclude, DocInclude::DontInclude, DocInclude::DontIncWithLines, 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_firstCol, m_hide, m_t, DocInclude::ManInclude, CodeParserInterface::parseCode(), DocInclude::RtfInclude, DocInclude::Snippet, DocInclude::SnippetDoc, DocInclude::SnipWithLines, QCString::str(), DocInclude::text(), TRUE, DocInclude::type(), DocInclude::VerbInclude , 以及 DocInclude::XmlInclude.
◆ visit() [7/17]
实现了 DocVisitor.
在文件 mandocvisitor.cpp 第 370 行定义.
引用了 DocIncOperator::context(), createFileDef(), FileInfo::dirPath(), DocIncOperator::exampleFile(), FALSE, FileInfo::fileName(), DocVisitor::getCodeParser(), getFileNameExtension(), getLanguageFromFileName(), DocIncOperator::includeFileName(), QCString::isEmpty(), DocIncOperator::isExample(), DocIncOperator::isFirst(), DocIncOperator::isLast(), DocIncOperator::line(), m_ci, m_firstCol, m_hide, m_langExt, m_t, CodeParserInterface::parseCode(), DocVisitor::popHidden(), DocVisitor::pushHidden(), DocIncOperator::showLineNo(), DocIncOperator::Skip, QCString::str(), DocIncOperator::text(), TRUE , 以及 DocIncOperator::type().
◆ visit() [8/17]
◆ visit() [9/17]
◆ visit() [10/17]
◆ visit() [11/17]
◆ visit() [12/17]
实现了 DocVisitor.
在文件 mandocvisitor.cpp 第 128 行定义.
引用了 DocStyleChange::Bold, DocStyleChange::Center, DocStyleChange::Code, DocStyleChange::Del, DocStyleChange::Div, DocStyleChange::enable(), FALSE, DocStyleChange::Ins, DocStyleChange::Italic, m_firstCol, m_hide, m_insidePre, m_t, DocStyleChange::Preformatted, DocStyleChange::S, DocStyleChange::Small, DocStyleChange::Span, DocStyleChange::Strike, DocStyleChange::style(), DocStyleChange::Subscript, DocStyleChange::Superscript, TRUE , 以及 DocStyleChange::Underline.
◆ visit() [13/17]
◆ visit() [14/17]
void ManDocVisitor::visit |
( |
DocURL * |
u | ) |
|
|
virtual |
◆ visit() [15/17]
实现了 DocVisitor.
在文件 mandocvisitor.cpp 第 191 行定义.
引用了 DocVerbatim::Code, DocVerbatim::context(), DocVerbatim::DocbookOnly, DocVerbatim::Dot, DocVerbatim::exampleFile(), DocVisitor::getCodeParser(), getLanguageFromCodeLang(), DocVerbatim::HtmlOnly, QCString::isEmpty(), DocVerbatim::isExample(), DocVerbatim::language(), DocVerbatim::LatexOnly, m_ci, m_firstCol, m_hide, m_langExt, m_t, DocVerbatim::ManOnly, DocVerbatim::Msc, CodeParserInterface::parseCode(), DocVerbatim::PlantUML, DocVerbatim::RtfOnly, DocVerbatim::text(), TRUE, DocVerbatim::type(), DocVerbatim::Verbatim , 以及 DocVerbatim::XmlOnly.
◆ visit() [16/17]
◆ visit() [17/17]
void ManDocVisitor::visit |
( |
DocWord * |
w | ) |
|
|
virtual |
◆ visitPost() [1/37]
◆ visitPost() [2/37]
◆ visitPost() [3/37]
◆ visitPost() [4/37]
◆ visitPost() [5/37]
void ManDocVisitor::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 ManDocVisitor::visitPost |
( |
DocImage * |
| ) |
|
|
virtual |
◆ visitPost() [18/37]
◆ visitPost() [19/37]
◆ visitPost() [20/37]
void ManDocVisitor::visitPost |
( |
DocLink * |
| ) |
|
|
virtual |
◆ visitPost() [21/37]
◆ visitPost() [22/37]
void ManDocVisitor::visitPost |
( |
DocPara * |
p | ) |
|
|
virtual |
◆ visitPost() [23/37]
◆ visitPost() [24/37]
◆ visitPost() [25/37]
◆ visitPost() [26/37]
void ManDocVisitor::visitPost |
( |
DocRef * |
| ) |
|
|
virtual |
◆ visitPost() [27/37]
void ManDocVisitor::visitPost |
( |
DocRoot * |
| ) |
|
|
virtual |
◆ visitPost() [28/37]
◆ visitPost() [29/37]
◆ visitPost() [30/37]
◆ visitPost() [31/37]
◆ visitPost() [32/37]
◆ visitPost() [33/37]
◆ visitPost() [34/37]
void ManDocVisitor::visitPost |
( |
DocText * |
| ) |
|
|
virtual |
◆ visitPost() [35/37]
void ManDocVisitor::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 ManDocVisitor::visitPre |
( |
DocHRef * |
| ) |
|
|
virtual |
◆ visitPre() [6/37]
◆ visitPre() [7/37]
◆ visitPre() [8/37]
◆ visitPre() [9/37]
◆ visitPre() [10/37]
◆ visitPre() [11/37]
◆ visitPre() [12/37]
◆ visitPre() [13/37]
◆ visitPre() [14/37]
实现了 DocVisitor.
在文件 mandocvisitor.cpp 第 679 行定义.
685 m_t <<
".IP \"" << ws;
688 for (
const auto &opt : li->
attribs())
690 if (opt.name==
"value")
693 int val = opt.value.
toInt(&ok);
引用了 DocHtmlListItem::attribs(), QCString::fill(), integerToAlpha(), integerToRoman(), m_firstCol, m_hide, m_indent, m_t, man_listItemInfo, ManListItemInfo::number, DocHtmlList::Ordered, DocNode::parent(), QCString::toInt() , 以及 TRUE.
◆ visitPre() [15/37]
◆ visitPre() [16/37]
◆ visitPre() [17/37]
void ManDocVisitor::visitPre |
( |
DocImage * |
| ) |
|
|
virtual |
◆ visitPre() [18/37]
◆ visitPre() [19/37]
◆ visitPre() [20/37]
void ManDocVisitor::visitPre |
( |
DocLink * |
lnk | ) |
|
|
virtual |
◆ visitPre() [21/37]
◆ visitPre() [22/37]
void ManDocVisitor::visitPre |
( |
DocPara * |
| ) |
|
|
virtual |
◆ visitPre() [23/37]
◆ visitPre() [24/37]
实现了 DocVisitor.
在文件 mandocvisitor.cpp 第 953 行定义.
引用了 ASSERT, DocParamSect::Exception, m_firstCol, 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 ManDocVisitor::visitPre |
( |
DocRef * |
ref | ) |
|
|
virtual |
◆ visitPre() [27/37]
void ManDocVisitor::visitPre |
( |
DocRoot * |
| ) |
|
|
virtual |
◆ visitPre() [28/37]
◆ visitPre() [29/37]
◆ visitPre() [30/37]
◆ visitPre() [31/37]
◆ visitPre() [32/37]
◆ visitPre() [33/37]
实现了 DocVisitor.
在文件 mandocvisitor.cpp 第 526 行定义.
引用了 DocSimpleSect::Attention, DocSimpleSect::Author, DocSimpleSect::Authors, DocSimpleSect::Copyright, DocSimpleSect::Date, FALSE, DocSimpleSect::Invar, m_firstCol, m_hide, m_t, DocSimpleSect::Note, DocSimpleSect::Post, DocSimpleSect::Pre, DocSimpleSect::Rcs, DocSimpleSect::Remark, DocSimpleSect::Return, DocSimpleSect::See, DocSimpleSect::Since, theTranslator, 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 ManDocVisitor::visitPre |
( |
DocText * |
| ) |
|
|
virtual |
◆ visitPre() [35/37]
void ManDocVisitor::visitPre |
( |
DocTitle * |
| ) |
|
|
virtual |
◆ visitPre() [36/37]
◆ visitPre() [37/37]
◆ m_ci
◆ m_firstCol
bool ManDocVisitor::m_firstCol |
|
private |
◆ m_hide
bool ManDocVisitor::m_hide |
|
private |
◆ m_indent
int ManDocVisitor::m_indent |
|
private |
◆ m_insidePre
bool ManDocVisitor::m_insidePre |
|
private |
◆ m_langExt
◆ m_t
该类的文档由以下文件生成:
void filter(const QCString &str)
virtual QCString trCopyright()=0
QCString integerToRoman(int n, bool upper)
virtual QCString trPostcondition()=0
void pushHidden(bool hide)
virtual QCString trNote()=0
uint length() const
Returns the length of the string, not counting the 0-terminator.
virtual QCString trExceptions()=0
bool isEmpty() const
Returns TRUE iff the string is empty
SrcLangExt
Language as given by extension
virtual QCString trReturns()=0
QCString targetTitle() const
QCString exampleFile() const
virtual QCString trPrecondition()=0
void err(const char *fmt,...)
char & at(size_t i)
Returns a reference to the character at index i.
ManListItemInfo man_listItemInfo[man_maxIndentLevels]
static HtmlEntityMapper * instance()
Returns the one and only instance of the HTML entity mapper
CodeParserInterface & getCodeParser(const QCString &langExt)
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
const char * man(DocSymbol::SymType symb) const
Access routine to the man code of the HTML entity
virtual QCString trVersion()=0
virtual QCString trAttention()=0
Translator * theTranslator
QCString exampleFile() const
virtual QCString trParameters()=0
SrcLangExt getLanguageFromFileName(const QCString &fileName, SrcLangExt defLang)
int toInt(bool *ok=0, int base=10) const
Node representing a Html list
CodeOutputInterface & m_ci
QCString integerToAlpha(int n, bool upper)
virtual QCString trRemarks()=0
int lineBlock(const QCString &text, const QCString &marker)
Returns the line number of the line following the line with the marker.
bool fill(char c, int len=-1)
Fills a string with a predefined character
QCString language() const
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.
Node representing an auto List
virtual QCString trSince()=0
virtual QCString trInvariant()=0
Node representing a word that can be linked to something
SrcLangExt getLanguageFromCodeLang(QCString &fileName)
Routine to handle the language attribute of the \code command
Minimal replacement for QFileInfo.
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.
static EmojiEntityMapper * instance()
Returns the one and only instance of the Emoji entity mapper
QCString extension() const
virtual QCString trDate()=0
DocNodeList & parameters()
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.