My Project
|
Concrete visitor implementation for Docbook output. More...
#include <docbookvisitor.h>
Private Member Functions | |
void | filter (const char *str) |
void | startLink (const QCString &file, const QCString &anchor) |
void | endLink () |
void | pushEnabled () |
void | popEnabled () |
void | startMscFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption) |
void | endMscFile (bool hasCaption) |
void | writeMscFile (const QCString &fileName, DocVerbatim *s) |
void | startDiaFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption) |
void | endDiaFile (bool hasCaption) |
void | writeDiaFile (const QCString &fileName, DocVerbatim *s) |
void | startDotFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption) |
void | endDotFile (bool hasCaption) |
void | writeDotFile (const QCString &fileName, DocVerbatim *s) |
void | writePlantUMLFile (const QCString &fileName, DocVerbatim *s) |
Private Attributes | |
FTextStream & | m_t |
CodeOutputInterface & | m_ci |
bool | m_insidePre |
bool | m_hide |
QStack< bool > | m_enabled |
QCString | m_langExt |
Concrete visitor implementation for Docbook output.
Definition at line 30 of file docbookvisitor.h.
DocbookDocVisitor::DocbookDocVisitor | ( | FTextStream & | t, |
CodeOutputInterface & | ci | ||
) |
Definition at line 86 of file docbookvisitor.cpp.
|
private |
Definition at line 1318 of file docbookvisitor.cpp.
References endl(), m_hide, m_t, and visitPostEnd().
Referenced by visitPost().
|
private |
Definition at line 1364 of file docbookvisitor.cpp.
References endl(), m_hide, m_t, and visitPostEnd().
Referenced by visitPost().
|
private |
Definition at line 1202 of file docbookvisitor.cpp.
References m_t.
Referenced by visit(), and visitPost().
|
private |
Definition at line 1273 of file docbookvisitor.cpp.
References endl(), m_hide, m_t, and visitPostEnd().
Referenced by visitPost().
|
private |
Definition at line 1190 of file docbookvisitor.cpp.
References convertToXML(), and m_t.
Referenced by visit(), and visitPre().
|
private |
Definition at line 1212 of file docbookvisitor.cpp.
References m_enabled, and m_hide.
Referenced by visit(), and visitPost().
|
private |
Definition at line 1207 of file docbookvisitor.cpp.
References m_enabled, and m_hide.
Referenced by visit(), and visitPre().
|
private |
Definition at line 1295 of file docbookvisitor.cpp.
References Config_getString, DIA_BITMAP, endl(), m_t, visitPreStart(), and writeDiaGraphFromFile().
Referenced by visitPre().
|
private |
Definition at line 1340 of file docbookvisitor.cpp.
References Config_getString, endl(), getDotImageExtension(), GOF_BITMAP, m_t, visitPreStart(), and writeDotGraphFromFile().
Referenced by visitPre().
|
private |
Definition at line 1195 of file docbookvisitor.cpp.
References m_t.
Referenced by visit(), and visitPre().
|
private |
Definition at line 1250 of file docbookvisitor.cpp.
References Config_getString, endl(), m_t, MSC_BITMAP, visitPreStart(), and writeMscGraphFromFile().
Referenced by visitPre().
|
virtual |
Implements DocVisitor.
Definition at line 95 of file docbookvisitor.cpp.
References filter(), m_hide, and DocWord::word().
Referenced by visitPre().
|
virtual |
Implements DocVisitor.
Definition at line 101 of file docbookvisitor.cpp.
References DocLinkedWord::anchor(), endLink(), DocLinkedWord::file(), filter(), m_hide, startLink(), and DocLinkedWord::word().
|
virtual |
Implements DocVisitor.
Definition at line 109 of file docbookvisitor.cpp.
References DocWhiteSpace::chars(), m_hide, m_insidePre, and m_t.
|
virtual |
Implements DocVisitor.
Definition at line 122 of file docbookvisitor.cpp.
References HtmlEntityMapper::docbook(), err(), HtmlEntityMapper::instance(), m_hide, m_t, and DocSymbol::symbol().
|
virtual |
Implements DocVisitor.
Definition at line 136 of file docbookvisitor.cpp.
References filter(), DocURL::isEmail(), m_hide, m_t, and DocURL::url().
|
virtual |
Implements DocVisitor.
Definition at line 147 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 153 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 160 of file docbookvisitor.cpp.
References DocStyleChange::Bold, DocStyleChange::Center, DocStyleChange::Code, DocStyleChange::Div, DocStyleChange::enable(), DocStyleChange::Italic, m_hide, m_insidePre, m_t, DocStyleChange::Preformatted, DocStyleChange::Small, DocStyleChange::Span, DocStyleChange::style(), DocStyleChange::Subscript, and DocStyleChange::Superscript.
|
virtual |
Implements DocVisitor.
Definition at line 204 of file docbookvisitor.cpp.
References DocVerbatim::Code, Config_getString, DocVerbatim::context(), DocVerbatim::DocbookOnly, DocVerbatim::Dot, endl(), err(), DocVerbatim::exampleFile(), filter(), getLanguageFromFileName(), ParserManager::getParser(), DocVerbatim::HtmlOnly, DocVerbatim::isExample(), DocVerbatim::LatexOnly, m_ci, m_hide, m_langExt, m_t, DocVerbatim::ManOnly, DocVerbatim::Msc, ParserInterface::parseCode(), Doxygen::parserManager, DocVerbatim::PlantUML, DocVerbatim::RtfOnly, DocVerbatim::text(), DocVerbatim::type(), DocVerbatim::Verbatim, writeDotFile(), writeMscFile(), writePlantUMLFile(), writePlantUMLSource(), and DocVerbatim::XmlOnly.
|
virtual |
Implements DocVisitor.
Definition at line 303 of file docbookvisitor.cpp.
References DocAnchor::anchor(), DocAnchor::file(), m_hide, and m_t.
|
virtual |
Implements DocVisitor.
Definition at line 309 of file docbookvisitor.cpp.
References DocInclude::blockId(), DocInclude::context(), DocInclude::DontInclude, err(), DocInclude::exampleFile(), DocInclude::extension(), extractBlock(), DocInclude::file(), filter(), getLanguageFromFileName(), ParserManager::getParser(), DocInclude::HtmlInclude, DocInclude::Include, DocInclude::IncludeDoc, DocInclude::IncWithLines, DocInclude::isExample(), DocInclude::LatexInclude, m_ci, m_hide, m_t, parseCode(), Doxygen::parserManager, DocInclude::Snippet, DocInclude::SnippetDoc, DocInclude::text(), DocInclude::type(), and DocInclude::VerbInclude.
|
virtual |
Implements DocVisitor.
Definition at line 370 of file docbookvisitor.cpp.
References DocIncOperator::context(), endl(), DocIncOperator::exampleFile(), getLanguageFromFileName(), ParserManager::getParser(), DocIncOperator::isExample(), DocIncOperator::isFirst(), DocIncOperator::isLast(), m_ci, m_hide, m_langExt, m_t, ParserInterface::parseCode(), Doxygen::parserManager, popEnabled(), pushEnabled(), DocIncOperator::Skip, DocIncOperator::text(), and DocIncOperator::type().
|
virtual |
Implements DocVisitor.
Definition at line 406 of file docbookvisitor.cpp.
References filter(), m_hide, m_t, DocFormula::name(), and DocFormula::text().
|
virtual |
Implements DocVisitor.
Definition at line 414 of file docbookvisitor.cpp.
References endl(), DocIndexEntry::entry(), filter(), m_hide, and m_t.
|
virtual |
|
virtual |
Implements DocVisitor.
Definition at line 427 of file docbookvisitor.cpp.
References DocCite::anchor(), endLink(), DocCite::file(), filter(), m_hide, startLink(), and DocCite::text().
|
virtual |
Implements DocVisitor.
Definition at line 452 of file docbookvisitor.cpp.
References DocAutoList::isEnumList(), m_hide, and m_t.
|
virtual |
Implements DocVisitor.
Definition at line 471 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 484 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 496 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 666 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 678 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 690 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 702 of file docbookvisitor.cpp.
|
virtual |
|
virtual |
Implements DocVisitor.
Definition at line 733 of file docbookvisitor.cpp.
References m_hide, m_t, DocHtmlList::Ordered, and DocHtmlList::type().
|
virtual |
Implements DocVisitor.
Definition at line 748 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 760 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 772 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 784 of file docbookvisitor.cpp.
|
virtual |
|
virtual |
Implements DocVisitor.
Definition at line 813 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 825 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 837 of file docbookvisitor.cpp.
|
virtual |
|
virtual |
Implements DocVisitor.
Definition at line 861 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 873 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 900 of file docbookvisitor.cpp.
References FileDef::absFilePath(), Config_getString, DocImage::DocBook, findFileDef(), Doxygen::imageNameDict, m_hide, m_t, DocImage::name(), popEnabled(), DocImage::type(), and visitPostEnd().
|
virtual |
Implements DocVisitor.
Definition at line 946 of file docbookvisitor.cpp.
References endDotFile(), DocDotFile::hasCaption(), and m_hide.
|
virtual |
Implements DocVisitor.
Definition at line 958 of file docbookvisitor.cpp.
References endMscFile(), DocMscFile::hasCaption(), and m_hide.
|
virtual |
Implements DocVisitor.
Definition at line 969 of file docbookvisitor.cpp.
References endDiaFile(), DocDiaFile::hasCaption(), and m_hide.
|
virtual |
Implements DocVisitor.
Definition at line 981 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 994 of file docbookvisitor.cpp.
References endLink(), DocRef::file(), and m_hide.
|
virtual |
Implements DocVisitor.
Definition at line 1006 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 1018 of file docbookvisitor.cpp.
|
virtual |
|
virtual |
|
virtual |
Implements DocVisitor.
Definition at line 1112 of file docbookvisitor.cpp.
References m_hide, m_t, and DocXRefItem::title().
|
virtual |
Implements DocVisitor.
Definition at line 1125 of file docbookvisitor.cpp.
|
virtual |
|
virtual |
Implements DocVisitor.
Definition at line 1152 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 1164 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 1176 of file docbookvisitor.cpp.
|
virtual |
|
virtual |
Implements DocVisitor.
Definition at line 439 of file docbookvisitor.cpp.
References DocAutoList::isEnumList(), m_hide, and m_t.
|
virtual |
Implements DocVisitor.
Definition at line 465 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 477 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 491 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 501 of file docbookvisitor.cpp.
References DocSimpleSect::Attention, DocSimpleSect::Author, DocSimpleSect::Authors, convertToXML(), DocSimpleSect::Copyright, DocSimpleSect::Date, endl(), DocSimpleSect::Invar, m_hide, m_insidePre, 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(), Translator::trVersion(), Translator::trWarning(), DocSimpleSect::type(), DocSimpleSect::Unknown, DocSimpleSect::User, DocSimpleSect::Version, and DocSimpleSect::Warning.
|
virtual |
Implements DocVisitor.
Definition at line 672 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 684 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 696 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 708 of file docbookvisitor.cpp.
References DocSection::anchor(), endl(), DocSection::file(), filter(), m_hide, m_t, and DocSection::title().
|
virtual |
Implements DocVisitor.
Definition at line 724 of file docbookvisitor.cpp.
References m_hide, m_t, DocHtmlList::Ordered, and DocHtmlList::type().
|
virtual |
Implements DocVisitor.
Definition at line 742 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 754 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 766 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 778 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 790 of file docbookvisitor.cpp.
References endl(), m_hide, m_t, and DocHtmlTable::numColumns().
|
virtual |
Implements DocVisitor.
Definition at line 807 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 819 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 831 of file docbookvisitor.cpp.
|
virtual |
|
virtual |
Implements DocVisitor.
Definition at line 855 of file docbookvisitor.cpp.
References m_hide, m_t, and DocHRef::url().
|
virtual |
Implements DocVisitor.
Definition at line 867 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 879 of file docbookvisitor.cpp.
References DocImage::DocBook, endl(), m_hide, m_t, DocImage::name(), pushEnabled(), DocImage::type(), and visitPreStart().
|
virtual |
Implements DocVisitor.
Definition at line 940 of file docbookvisitor.cpp.
References DocDotFile::file(), DocDotFile::hasCaption(), DocDotFile::height(), m_hide, startDotFile(), and DocDotFile::width().
|
virtual |
Implements DocVisitor.
Definition at line 952 of file docbookvisitor.cpp.
References DocMscFile::file(), DocMscFile::hasCaption(), DocMscFile::height(), m_hide, startMscFile(), and DocMscFile::width().
|
virtual |
Implements DocVisitor.
Definition at line 963 of file docbookvisitor.cpp.
References DocDiaFile::file(), DocDiaFile::hasCaption(), DocDiaFile::height(), m_hide, startDiaFile(), and DocDiaFile::width().
|
virtual |
Implements DocVisitor.
Definition at line 975 of file docbookvisitor.cpp.
References DocLink::anchor(), DocLink::file(), m_hide, and startLink().
|
virtual |
Implements DocVisitor.
Definition at line 987 of file docbookvisitor.cpp.
References DocRef::anchor(), DocRef::file(), filter(), DocRef::hasLinkText(), m_hide, startLink(), and DocRef::targetTitle().
|
virtual |
Implements DocVisitor.
Definition at line 1000 of file docbookvisitor.cpp.
References DocSecRefItem::anchor(), DocSecRefItem::file(), m_hide, and m_t.
|
virtual |
Implements DocVisitor.
Definition at line 1012 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 1024 of file docbookvisitor.cpp.
References endl(), DocParamSect::Exception, m_hide, m_t, DocParamSect::Param, DocParamSect::RetVal, DocParamSect::TemplateParam, theTranslator, Translator::trExceptions(), Translator::trParameters(), Translator::trReturnValues(), Translator::trTemplateParameters(), and DocParamSect::type().
|
virtual |
Implements DocVisitor.
Definition at line 1058 of file docbookvisitor.cpp.
References endl(), DocNode::Kind_LinkedWord, DocNode::Kind_Word, m_hide, m_t, DocParamList::parameters(), and visit().
|
virtual |
Implements DocVisitor.
Definition at line 1100 of file docbookvisitor.cpp.
References DocXRefItem::anchor(), DocXRefItem::file(), filter(), m_hide, m_t, and DocXRefItem::title().
|
virtual |
Implements DocVisitor.
Definition at line 1119 of file docbookvisitor.cpp.
References DocInternalRef::anchor(), DocInternalRef::file(), m_hide, and startLink().
|
virtual |
|
virtual |
Implements DocVisitor.
Definition at line 1146 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 1158 of file docbookvisitor.cpp.
|
virtual |
Implements DocVisitor.
Definition at line 1170 of file docbookvisitor.cpp.
|
virtual |
|
private |
Definition at line 1280 of file docbookvisitor.cpp.
References DocVerbatim::children(), Config_getString, DIA_BITMAP, DocVerbatim::hasCaption(), DocVerbatim::height(), m_t, visitCaption(), visitPostEnd(), visitPreStart(), DocVerbatim::width(), and writeDiaGraphFromFile().
|
private |
Definition at line 1325 of file docbookvisitor.cpp.
References DocVerbatim::children(), Config_getString, GOF_BITMAP, DocVerbatim::hasCaption(), DocVerbatim::height(), m_t, visitCaption(), visitPostEnd(), visitPreStart(), DocVerbatim::width(), and writeDotGraphFromFile().
Referenced by visit().
|
private |
Definition at line 1220 of file docbookvisitor.cpp.
References DocVerbatim::children(), Config_getString, DocVerbatim::hasCaption(), DocVerbatim::height(), m_t, MSC_BITMAP, visitCaption(), visitPostEnd(), visitPreStart(), DocVerbatim::width(), and writeMscGraphFromFile().
Referenced by visit().
|
private |
Definition at line 1235 of file docbookvisitor.cpp.
References DocVerbatim::children(), Config_getString, generatePlantUMLOutput(), DocVerbatim::hasCaption(), DocVerbatim::height(), m_t, PUML_BITMAP, visitCaption(), visitPostEnd(), visitPreStart(), and DocVerbatim::width().
Referenced by visit().
|
private |
Definition at line 164 of file docbookvisitor.h.
Referenced by visit().
|
private |
Definition at line 167 of file docbookvisitor.h.
Referenced by popEnabled(), and pushEnabled().
|
private |
Definition at line 166 of file docbookvisitor.h.
Referenced by endDiaFile(), endDotFile(), endMscFile(), popEnabled(), pushEnabled(), visit(), visitPost(), and visitPre().
|
private |
Definition at line 165 of file docbookvisitor.h.
Referenced by visit(), and visitPre().
|
private |
Definition at line 168 of file docbookvisitor.h.
Referenced by visit().
|
private |
Definition at line 163 of file docbookvisitor.h.
Referenced by endDiaFile(), endDotFile(), endLink(), endMscFile(), filter(), startDiaFile(), startDotFile(), startLink(), startMscFile(), visit(), visitPost(), visitPre(), writeDiaFile(), writeDotFile(), writeMscFile(), and writePlantUMLFile().