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 1160 of file docnode.h.

Constructor & Destructor Documentation

◆ DocHtmlDescData()

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

Definition at line 1163 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 1164 of file docnode.h.

1164{ return m_attribs; }
HtmlAttribList m_attribs
Definition docnode.h:1168

References m_attribs.

Referenced by HtmlDocVisitor::operator()().

◆ parse()

Token DocHtmlDescData::parse ( )

Definition at line 2378 of file docnode.cpp.

2379{
2380 AUTO_TRACE();
2382 Token retval = Token::make_TK_NONE();
2383 auto ns = AutoNodeStack(parser(),thisVariant());
2384
2385 bool isFirst=TRUE;
2386 DocPara *par=nullptr;
2387 do
2388 {
2389 children().append<DocPara>(parser(),thisVariant());
2390 par = children().get_last<DocPara>();
2391 if (isFirst) { par->markFirst(); isFirst=FALSE; }
2392 retval=par->parse();
2393 }
2394 while (retval.is(TokenRetval::TK_NEWPARA));
2395 if (par) par->markLast();
2396
2397 return retval;
2398}
DocNodeList & children()
Definition docnode.h:142
DocNodeVariant * thisVariant()
Definition docnode.h:92
void markLast(bool v=TRUE)
Definition docnode.h:1066
void markFirst(bool v=TRUE)
Definition docnode.h:1065
Token parse()
Definition docnode.cpp:5451
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:1379
T * get_last()
Returns a pointer to the last element in the list if that element exists and holds a T,...
Definition docnode.h:1390
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 1168 of file docnode.h.

Referenced by attribs(), and parse().


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