Doxygen
|
Concrete visitor implementation for XML output. More...
#include <src/xmldocvisitor.h>
Private Member Functions | |
template<class T> | |
void | visitChildren (const T &t) |
void | filter (const QCString &str) |
void | startLink (const QCString &ref, const QCString &file, const QCString &anchor) |
void | endLink () |
Private Attributes | |
TextStream & | m_t |
OutputCodeList & | m_ci |
bool | m_insidePre = false |
bool | m_hide = false |
QCString | m_langExt |
int | m_sectionLevel |
Concrete visitor implementation for XML output.
Definition at line 33 of file xmldocvisitor.h.
XmlDocVisitor::XmlDocVisitor | ( | TextStream & | t, |
OutputCodeList & | ci, | ||
const QCString & | langExt ) |
Definition at line 150 of file xmldocvisitor.cpp.
References FALSE, m_ci, m_hide, m_insidePre, m_langExt, m_sectionLevel, and m_t.
|
private |
Definition at line 1182 of file xmldocvisitor.cpp.
References m_t.
Referenced by operator()(), operator()(), operator()(), operator()(), and operator()().
|
private |
Definition at line 1165 of file xmldocvisitor.cpp.
References convertToXML(), and m_t.
Referenced by operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), and operator()().
void XmlDocVisitor::operator() | ( | const DocAnchor & | anc | ) |
Definition at line 394 of file xmldocvisitor.cpp.
References DocAnchor::anchor(), DocAnchor::file(), m_hide, and m_t.
void XmlDocVisitor::operator() | ( | const DocAutoList & | l | ) |
Definition at line 600 of file xmldocvisitor.cpp.
References DocAutoList::isEnumList(), m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocAutoListItem & | li | ) |
Definition at line 622 of file xmldocvisitor.cpp.
References DocAutoList::Checked_X, DocAutoList::Checked_x, DocAutoListItem::itemNumber(), m_hide, m_t, DocAutoList::Unchecked, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocCite & | cite | ) |
Definition at line 588 of file xmldocvisitor.cpp.
References DocCite::anchor(), endLink(), DocCite::file(), filter(), QCString::isEmpty(), m_hide, DocCite::ref(), startLink(), and DocCite::text().
void XmlDocVisitor::operator() | ( | const DocDiaFile & | df | ) |
Definition at line 980 of file xmldocvisitor.cpp.
References DocCompoundNode::children(), Config_getString, copyFile(), FALSE, DocDiagramFileBase::file(), DocDiagramFileBase::height(), DocImage::Html, m_hide, m_t, stripPath(), visitChildren(), visitPostEnd(), visitPreStart(), and DocDiagramFileBase::width().
void XmlDocVisitor::operator() | ( | const DocDotFile & | df | ) |
Definition at line 962 of file xmldocvisitor.cpp.
References DocCompoundNode::children(), Config_getString, copyFile(), FALSE, DocDiagramFileBase::file(), DocDiagramFileBase::height(), DocImage::Html, m_hide, m_t, stripPath(), visitChildren(), visitPostEnd(), visitPreStart(), and DocDiagramFileBase::width().
void XmlDocVisitor::operator() | ( | const DocEmoji & | s | ) |
Definition at line 201 of file xmldocvisitor.cpp.
References filter(), DocEmoji::index(), EmojiEntityMapper::instance(), QCString::length(), m_hide, m_t, QCString::mid(), DocEmoji::name(), and EmojiEntityMapper::name().
void XmlDocVisitor::operator() | ( | const DocFormula & | f | ) |
Definition at line 559 of file xmldocvisitor.cpp.
References filter(), DocFormula::id(), m_hide, m_t, and DocFormula::text().
void XmlDocVisitor::operator() | ( | const DocHorRuler & | ) |
void XmlDocVisitor::operator() | ( | const DocHRef & | href | ) |
Definition at line 892 of file xmldocvisitor.cpp.
References convertToXML(), m_hide, m_t, TRUE, DocHRef::url(), and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlBlockQuote & | q | ) |
Definition at line 1144 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlCaption & | c | ) |
Definition at line 871 of file xmldocvisitor.cpp.
References DocHtmlCaption::anchor(), DocHtmlCaption::file(), QCString::isEmpty(), m_hide, m_t, stripPath(), and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlCell & | c | ) |
Definition at line 818 of file xmldocvisitor.cpp.
References DocHtmlCell::attribs(), convertToXML(), DocHtmlCell::isHeading(), m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlDescData & | dd | ) |
Definition at line 781 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlDescList & | dl | ) |
Definition at line 765 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlDescTitle & | dt | ) |
Definition at line 773 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlDetails & | d | ) |
Definition at line 908 of file xmldocvisitor.cpp.
References m_hide, m_t, DocHtmlDetails::summary(), and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlHeader & | header | ) |
Definition at line 921 of file xmldocvisitor.cpp.
References DocHtmlHeader::level(), m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlList & | s | ) |
Definition at line 722 of file xmldocvisitor.cpp.
References DocHtmlList::attribs(), m_hide, m_t, DocHtmlList::Ordered, DocHtmlList::type(), and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlListItem & | l | ) |
Definition at line 749 of file xmldocvisitor.cpp.
References DocHtmlListItem::attribs(), m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlRow & | r | ) |
Definition at line 810 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlSummary & | s | ) |
Definition at line 900 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocHtmlTable & | t | ) |
Definition at line 789 of file xmldocvisitor.cpp.
References DocHtmlTable::attribs(), DocHtmlTable::caption(), m_hide, m_t, DocHtmlTable::numColumns(), DocHtmlTable::numRows(), and visitChildren().
void XmlDocVisitor::operator() | ( | const DocImage & | img | ) |
Definition at line 929 of file xmldocvisitor.cpp.
References FileDef::absFilePath(), DocImage::attribs(), DocCompoundNode::children(), Config_getString, copyFile(), correctURL(), FALSE, findFileDef(), DocImage::height(), Doxygen::imageNameLinkedMap, QCString::isEmpty(), DocImage::isInlineImage(), m_hide, m_t, DocImage::name(), DocImage::relPath(), TRUE, DocImage::type(), DocImage::url(), visitChildren(), visitPostEnd(), visitPreStart(), and DocImage::width().
void XmlDocVisitor::operator() | ( | const DocInclude & | inc | ) |
Definition at line 400 of file xmldocvisitor.cpp.
References DocInclude::blockId(), DocInclude::context(), createFileDef(), FileInfo::dirPath(), DocInclude::DocbookInclude, DocInclude::DontInclude, DocInclude::DontIncWithLines, DocInclude::exampleFile(), DocInclude::extension(), FALSE, DocInclude::file(), FileInfo::fileName(), filter(), DocVisitor::getCodeParser(), getLanguageFromFileName(), DocInclude::HtmlInclude, DocInclude::Include, DocInclude::IncWithLines, CodeFragmentManager::instance(), DocInclude::isBlock(), DocInclude::isExample(), DocInclude::LatexInclude, m_ci, m_hide, m_t, DocInclude::ManInclude, CodeParserInterface::parseCode(), CodeFragmentManager::parseCodeFragment(), DocInclude::RtfInclude, DocInclude::Snippet, DocInclude::SnippetWithLines, QCString::str(), DocInclude::stripCodeComments(), DocInclude::text(), DocInclude::trimLeft(), TRUE, DocInclude::type(), DocInclude::VerbInclude, and DocInclude::XmlInclude.
void XmlDocVisitor::operator() | ( | const DocIncOperator & | op | ) |
Definition at line 504 of file xmldocvisitor.cpp.
References 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_hide, m_langExt, m_t, CodeParserInterface::parseCode(), DocVisitor::popHidden(), DocVisitor::pushHidden(), DocIncOperator::showLineNo(), DocIncOperator::Skip, QCString::str(), DocIncOperator::stripCodeComments(), DocIncOperator::text(), TRUE, and DocIncOperator::type().
void XmlDocVisitor::operator() | ( | const DocIndexEntry & | ie | ) |
Definition at line 567 of file xmldocvisitor.cpp.
References DocIndexEntry::entry(), filter(), m_hide, and m_t.
void XmlDocVisitor::operator() | ( | const DocInternal & | i | ) |
Definition at line 884 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocInternalRef & | ref | ) |
Definition at line 1130 of file xmldocvisitor.cpp.
References DocInternalRef::anchor(), endLink(), DocInternalRef::file(), m_hide, m_t, startLink(), and visitChildren().
void XmlDocVisitor::operator() | ( | const DocLineBreak & | ) |
void XmlDocVisitor::operator() | ( | const DocLink & | lnk | ) |
Definition at line 998 of file xmldocvisitor.cpp.
References DocLink::anchor(), endLink(), DocLink::file(), m_hide, DocLink::ref(), startLink(), and visitChildren().
void XmlDocVisitor::operator() | ( | const DocLinkedWord & | w | ) |
Definition at line 166 of file xmldocvisitor.cpp.
References DocLinkedWord::anchor(), endLink(), DocLinkedWord::file(), filter(), m_hide, DocLinkedWord::ref(), startLink(), and DocLinkedWord::word().
void XmlDocVisitor::operator() | ( | const DocMscFile & | df | ) |
Definition at line 971 of file xmldocvisitor.cpp.
References DocCompoundNode::children(), Config_getString, copyFile(), FALSE, DocDiagramFileBase::file(), DocDiagramFileBase::height(), DocImage::Html, m_hide, m_t, stripPath(), visitChildren(), visitPostEnd(), visitPreStart(), and DocDiagramFileBase::width().
void XmlDocVisitor::operator() | ( | const DocPara & | p | ) |
Definition at line 642 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocParamList & | pl | ) |
Definition at line 1065 of file xmldocvisitor.cpp.
References DocParamList::direction(), GrowVector< T >::empty(), DocParamSect::In, DocParamSect::InOut, m_hide, m_t, DocParamSect::Out, DocParamList::paragraphs(), DocParamList::parameters(), DocParamList::paramTypes(), and DocParamSect::Unspecified.
void XmlDocVisitor::operator() | ( | const DocParamSect & | s | ) |
Definition at line 1037 of file xmldocvisitor.cpp.
References ASSERT, DocParamSect::Exception, m_hide, m_t, DocParamSect::Param, DocParamSect::RetVal, DocParamSect::TemplateParam, DocParamSect::type(), and visitChildren().
void XmlDocVisitor::operator() | ( | const DocParBlock & | pb | ) |
Definition at line 1156 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocPlantUmlFile & | df | ) |
Definition at line 989 of file xmldocvisitor.cpp.
References DocCompoundNode::children(), Config_getString, copyFile(), FALSE, DocDiagramFileBase::file(), DocDiagramFileBase::height(), DocImage::Html, m_hide, m_t, stripPath(), visitChildren(), visitPostEnd(), visitPreStart(), and DocDiagramFileBase::width().
void XmlDocVisitor::operator() | ( | const DocRef & | ref | ) |
Definition at line 1006 of file xmldocvisitor.cpp.
References DocRef::anchor(), endLink(), DocRef::file(), filter(), DocRef::hasLinkText(), QCString::isEmpty(), DocRef::isSubPage(), m_hide, DocRef::ref(), startLink(), DocRef::targetTitle(), and visitChildren().
void XmlDocVisitor::operator() | ( | const DocRoot & | r | ) |
Definition at line 650 of file xmldocvisitor.cpp.
References visitChildren().
void XmlDocVisitor::operator() | ( | const DocSecRefItem & | ref | ) |
Definition at line 1018 of file xmldocvisitor.cpp.
References DocSecRefItem::anchor(), DocSecRefItem::file(), QCString::isEmpty(), m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocSecRefList & | l | ) |
Definition at line 1029 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocSection & | s | ) |
Definition at line 694 of file xmldocvisitor.cpp.
References DocSection::anchor(), DocSection::file(), QCString::isEmpty(), DocSection::level(), m_hide, m_sectionLevel, m_t, DocSection::title(), and visitChildren().
void XmlDocVisitor::operator() | ( | const DocSeparator & | ) |
Definition at line 1059 of file xmldocvisitor.cpp.
References m_t.
void XmlDocVisitor::operator() | ( | const DocSimpleList & | l | ) |
Definition at line 675 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocSimpleListItem & | li | ) |
Definition at line 683 of file xmldocvisitor.cpp.
References m_hide, m_t, and DocSimpleListItem::paragraph().
void XmlDocVisitor::operator() | ( | const DocSimpleSect & | s | ) |
Definition at line 655 of file xmldocvisitor.cpp.
References endSimpleSect(), m_hide, m_t, startSimpleSect(), DocSimpleSect::title(), and visitChildren().
void XmlDocVisitor::operator() | ( | const DocSimpleSectSep & | sep | ) |
Definition at line 578 of file xmldocvisitor.cpp.
References endSimpleSect(), m_t, DocNode::parent(), and startSimpleSect().
void XmlDocVisitor::operator() | ( | const DocStyleChange & | s | ) |
Definition at line 242 of file xmldocvisitor.cpp.
References DocStyleChange::Bold, DocStyleChange::Center, DocStyleChange::Cite, DocStyleChange::Code, DocStyleChange::Del, DocStyleChange::Div, DocStyleChange::enable(), FALSE, DocStyleChange::Ins, DocStyleChange::Italic, DocStyleChange::Kbd, m_hide, m_insidePre, m_t, DocStyleChange::Preformatted, DocStyleChange::S, DocStyleChange::Small, DocStyleChange::Span, DocStyleChange::Strike, DocStyleChange::style(), DocStyleChange::Subscript, DocStyleChange::Superscript, TRUE, and DocStyleChange::Underline.
void XmlDocVisitor::operator() | ( | const DocSymbol & | s | ) |
Definition at line 187 of file xmldocvisitor.cpp.
References err, HtmlEntityMapper::instance(), m_hide, m_t, DocSymbol::symbol(), TRUE, and HtmlEntityMapper::xml().
void XmlDocVisitor::operator() | ( | const DocText & | t | ) |
Definition at line 1139 of file xmldocvisitor.cpp.
References visitChildren().
void XmlDocVisitor::operator() | ( | const DocTitle & | t | ) |
Definition at line 667 of file xmldocvisitor.cpp.
References m_hide, m_t, and visitChildren().
void XmlDocVisitor::operator() | ( | const DocURL & | u | ) |
Definition at line 219 of file xmldocvisitor.cpp.
References filter(), DocURL::isEmail(), m_hide, m_t, and DocURL::url().
void XmlDocVisitor::operator() | ( | const DocVerbatim & | s | ) |
Definition at line 304 of file xmldocvisitor.cpp.
References DocVerbatim::children(), DocVerbatim::Code, Config_getBool, DocVerbatim::context(), DocVerbatim::DocbookOnly, DocVerbatim::Dot, DocVerbatim::engine(), DocVerbatim::exampleFile(), FALSE, filter(), DocVisitor::getCodeParser(), getLanguageFromCodeLang(), DocVerbatim::hasCaption(), DocVerbatim::height(), DocImage::Html, DocVerbatim::HtmlOnly, DocVerbatim::isBlock(), QCString::isEmpty(), DocVerbatim::isExample(), DocVerbatim::JavaDocCode, DocVerbatim::JavaDocLiteral, DocVerbatim::language(), DocVerbatim::LatexOnly, m_ci, m_hide, m_langExt, m_t, DocVerbatim::ManOnly, DocVerbatim::Msc, CodeParserInterface::parseCode(), DocVerbatim::PlantUML, DocVerbatim::RtfOnly, DocVerbatim::text(), DocVerbatim::type(), DocVerbatim::Verbatim, visitPostEnd(), visitPreStart(), DocVerbatim::width(), and DocVerbatim::XmlOnly.
void XmlDocVisitor::operator() | ( | const DocVhdlFlow & | ) |
Definition at line 1152 of file xmldocvisitor.cpp.
void XmlDocVisitor::operator() | ( | const DocWhiteSpace & | w | ) |
Definition at line 174 of file xmldocvisitor.cpp.
References DocWhiteSpace::chars(), m_hide, m_insidePre, and m_t.
void XmlDocVisitor::operator() | ( | const DocWord & | w | ) |
Definition at line 160 of file xmldocvisitor.cpp.
References filter(), m_hide, and DocWord::word().
void XmlDocVisitor::operator() | ( | const DocXRefItem & | x | ) |
Definition at line 1113 of file xmldocvisitor.cpp.
References DocXRefItem::anchor(), DocXRefItem::file(), filter(), QCString::isEmpty(), m_hide, m_t, DocXRefItem::title(), and visitChildren().
|
private |
Definition at line 1170 of file xmldocvisitor.cpp.
References QCString::isEmpty(), and m_t.
Referenced by operator()(), operator()(), operator()(), operator()(), and operator()().
|
inlineprivate |
Definition at line 108 of file xmldocvisitor.h.
Referenced by operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), and operator()().
|
private |
Definition at line 130 of file xmldocvisitor.h.
Referenced by operator()(), operator()(), operator()(), and XmlDocVisitor().
|
private |
Definition at line 132 of file xmldocvisitor.h.
Referenced by operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), and XmlDocVisitor().
|
private |
Definition at line 131 of file xmldocvisitor.h.
Referenced by operator()(), operator()(), and XmlDocVisitor().
|
private |
Definition at line 133 of file xmldocvisitor.h.
Referenced by operator()(), operator()(), and XmlDocVisitor().
|
private |
Definition at line 134 of file xmldocvisitor.h.
Referenced by operator()(), and XmlDocVisitor().
|
private |
Definition at line 129 of file xmldocvisitor.h.
Referenced by endLink(), filter(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), startLink(), and XmlDocVisitor().