Doxygen
Loading...
Searching...
No Matches
DocHtmlDescData Class Reference

Node representing a HTML description data. More...

#include <src/docnode.h>

+ Inheritance diagram for DocHtmlDescData:
+ Collaboration diagram for DocHtmlDescData:

Public Member Functions

 DocHtmlDescData (DocParser *parser, DocNodeVariant *parent)
 
const HtmlAttribListattribs () const
 
Token parse ()
 
- Public Member Functions inherited from DocCompoundNode
 DocCompoundNode (DocParser *parser, DocNodeVariant *parent)
 
DocNodeListchildren ()
 
const DocNodeListchildren () const
 
- Public Member Functions inherited from DocNode
 DocNode (DocParser *parser, DocNodeVariant *parent)
 
 ~DocNode ()=default
 
DocNodeVariantparent ()
 
const DocNodeVariantparent () const
 
DocNodeVariantthisVariant ()
 
const DocNodeVariantthisVariant () const
 
void setThisVariant (DocNodeVariant *thisVariant)
 
DocParserparser ()
 
const DocParserparser () const
 
void setParent (DocNodeVariant *parent)
 
bool isPreformatted () const
 

Private Attributes

HtmlAttribList m_attribs
 

Additional Inherited Members

- Protected Types inherited from DocNode
enum  RefType { Unknown , Anchor , Section , Table }
 
- Protected Member Functions inherited from DocNode
void setInsidePreformatted (bool p)
 

Detailed Description

Node representing a HTML description data.

Definition at line 1174 of file docnode.h.

Constructor & Destructor Documentation

◆ DocHtmlDescData()

DocHtmlDescData::DocHtmlDescData ( DocParser * parser,
DocNodeVariant * parent )
inline

Definition at line 1177 of file docnode.h.

DocCompoundNode(DocParser *parser, DocNodeVariant *parent)
Definition docnode.h:140
DocParser * parser()
Definition docnode.h:97
DocNodeVariant * parent()
Definition docnode.h:89

References DocCompoundNode::DocCompoundNode(), DocNode::parent(), and DocNode::parser().

Member Function Documentation

◆ attribs()

const HtmlAttribList & DocHtmlDescData::attribs ( ) const
inline

Definition at line 1178 of file docnode.h.

1178{ return m_attribs; }
HtmlAttribList m_attribs
Definition docnode.h:1182

References m_attribs.

Referenced by HtmlDocVisitor::operator()().

◆ parse()

Token DocHtmlDescData::parse ( )

Definition at line 2380 of file docnode.cpp.

2381{
2382 AUTO_TRACE();
2384 Token retval = Token::make_TK_NONE();
2385 auto ns = AutoNodeStack(parser(),thisVariant());
2386
2387 bool isFirst=TRUE;
2388 DocPara *par=nullptr;
2389 do
2390 {
2391 children().append<DocPara>(parser(),thisVariant());
2392 par = children().get_last<DocPara>();
2393 if (isFirst) { par->markFirst(); isFirst=FALSE; }
2394 retval=par->parse();
2395 }
2396 while (retval.is(TokenRetval::TK_NEWPARA));
2397 if (par) par->markLast();
2398
2399 return retval;
2400}
DocNodeList & children()
Definition docnode.h:142
DocNodeVariant * thisVariant()
Definition docnode.h:92
void markLast(bool v=TRUE)
Definition docnode.h:1080
void markFirst(bool v=TRUE)
Definition docnode.h:1079
Token parse()
Definition docnode.cpp:5459
DocParserContext context
bool is(TokenRetval rv) const
#define AUTO_TRACE(...)
Definition docnode.cpp:46
#define TRUE
Definition qcstring.h:37
#define FALSE
Definition qcstring.h:34
void append(Args &&... args)
Append a new DocNodeVariant to the list by constructing it with type T and parameters Args.
Definition docnode.h:1393
T * get_last()
Returns a pointer to the last element in the list if that element exists and holds a T,...
Definition docnode.h:1404
TokenInfo * token
Definition docparser_p.h:92
HtmlAttribList attribs

References DocNodeList::append(), TokenInfo::attribs, AUTO_TRACE, DocCompoundNode::children(), DocParser::context, FALSE, DocNodeList::get_last(), Token::is(), m_attribs, DocPara::markFirst(), DocPara::markLast(), DocPara::parse(), DocNode::parser(), DocNode::thisVariant(), DocParserContext::token, and TRUE.

Referenced by DocHtmlDescList::parse().

Member Data Documentation

◆ m_attribs

HtmlAttribList DocHtmlDescData::m_attribs
private

Definition at line 1182 of file docnode.h.

Referenced by attribs(), and parse().


The documentation for this class was generated from the following files: