Doxygen
|
Node representing a simple section. More...
#include <src/docnode.h>
Public Types | |
enum | Type { Unknown , See , Return , Author , Authors , Version , Since , Date , Note , Warning , Copyright , Pre , Post , Invar , Remark , Attention , Important , User , Rcs } |
Public Member Functions | |
DocSimpleSect (DocParser *parser, DocNodeVariant *parent, Type t) | |
Type | type () const |
QCString | typeString () const |
Token | parse (bool userTitle, bool needsSeparator) |
Token | parseRcs () |
Token | parseXml () |
void | appendLinkWord (const QCString &word) |
bool | hasTitle () const |
const DocNodeVariant * | title () const |
Public Member Functions inherited from DocCompoundNode | |
DocCompoundNode (DocParser *parser, DocNodeVariant *parent) | |
DocNodeList & | children () |
const DocNodeList & | children () const |
Public Member Functions inherited from DocNode | |
DocNode (DocParser *parser, DocNodeVariant *parent) | |
~DocNode ()=default | |
DocNodeVariant * | parent () |
const DocNodeVariant * | parent () const |
DocNodeVariant * | thisVariant () |
const DocNodeVariant * | thisVariant () const |
void | setThisVariant (DocNodeVariant *thisVariant) |
DocParser * | parser () |
const DocParser * | parser () const |
void | setParent (DocNodeVariant *parent) |
bool | isPreformatted () const |
Private Attributes | |
Type | m_type = Unknown |
std::unique_ptr< DocNodeVariant > | m_title |
Additional Inherited Members | |
Protected Types inherited from DocNode | |
enum | RefType { Unknown , Anchor , Section , Table } |
Protected Member Functions inherited from DocNode | |
void | setInsidePreformatted (bool p) |
enum DocSimpleSect::Type |
DocSimpleSect::DocSimpleSect | ( | DocParser * | parser, |
DocNodeVariant * | parent, | ||
Type | t ) |
Definition at line 2888 of file docnode.cpp.
References DocCompoundNode::DocCompoundNode(), m_type, DocNode::parent(), and DocNode::parser().
void DocSimpleSect::appendLinkWord | ( | const QCString & | word | ) |
Definition at line 2988 of file docnode.cpp.
References DocNodeList::append(), DocCompoundNode::children(), DocParser::context, FALSE, DocNodeList::get_last(), DocPara::injectToken(), DocParserContext::inSeeBlock, DocNode::parser(), DocNode::thisVariant(), TRUE, and word.
bool DocSimpleSect::hasTitle | ( | ) | const |
Definition at line 2893 of file docnode.cpp.
References m_title.
Referenced by DocbookDocVisitor::operator()().
Token DocSimpleSect::parse | ( | bool | userTitle, |
bool | needsSeparator ) |
Definition at line 2898 of file docnode.cpp.
References DocNodeList::append(), AUTO_TRACE, AUTO_TRACE_EXIT, DocCompoundNode::children(), createDocNode(), GrowVector< T >::empty(), FALSE, DocNodeList::get_last(), m_title, DocPara::markLast(), DocNode::parser(), DocNode::thisVariant(), and Token::to_string().
Referenced by DocPara::handleSimpleSection().
Token DocSimpleSect::parseRcs | ( | ) |
Definition at line 2935 of file docnode.cpp.
References AUTO_TRACE, DocCompoundNode::children(), DocParser::context, createDocNode(), DocParser::internalValidatingParseDoc(), m_title, DocNode::parser(), DocParser::popContext(), DocParser::pushContext(), TokenInfo::text, DocNode::thisVariant(), title(), and DocParserContext::token.
Token DocSimpleSect::parseXml | ( | ) |
Definition at line 2952 of file docnode.cpp.
References DocNodeList::append(), AUTO_TRACE, AUTO_TRACE_EXIT, DocCompoundNode::children(), GrowVector< T >::empty(), DocNodeList::get_last(), Token::is(), Token::is_any_of(), DocPara::markLast(), DocNode::parser(), DocNode::thisVariant(), and Token::to_string().
Referenced by DocPara::handleSimpleSection().
|
inline |
Definition at line 1027 of file docnode.h.
References m_title.
Referenced by DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), ManDocVisitor::operator()(), PerlModDocVisitor::operator()(), PrintDocVisitor::operator()(), RTFDocVisitor::operator()(), XmlDocVisitor::operator()(), and parseRcs().
|
inline |
Definition at line 1020 of file docnode.h.
References m_type.
Referenced by DocPara::handleHtmlStartTag(), DocPara::handleSimpleSection(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), ManDocVisitor::operator()(), PerlModDocVisitor::operator()(), PrintDocVisitor::operator()(), RTFDocVisitor::operator()(), and startSimpleSect().
QCString DocSimpleSect::typeString | ( | ) | const |
Definition at line 3008 of file docnode.cpp.
References Attention, Author, Authors, Copyright, Date, Important, Invar, m_type, Note, Post, Pre, Rcs, Remark, Return, See, Since, Unknown, User, Version, and Warning.
Referenced by HtmlDocVisitor::operator()().
|
private |
Definition at line 1031 of file docnode.h.
Referenced by hasTitle(), parse(), parseRcs(), and title().
Definition at line 1030 of file docnode.h.
Referenced by DocSimpleSect(), type(), and typeString().