Skip to main content

The DocHtmlBlockQuote Class Reference

Node representing an HTML blockquote. More...

Declaration

class DocHtmlBlockQuote { ... }

Included Headers

#include <src/docnode.h>

Base class

classDocCompoundNode

Base class for nodes with children. More...

Public Constructors Index

DocHtmlBlockQuote (DocParser *parser, DocNodeVariant *parent, const HtmlAttribList &attribs)

Public Member Functions Index

Tokenparse ()
const HtmlAttribList &attribs () const

Private Member Attributes Index

HtmlAttribListm_attribs

Description

Node representing an HTML blockquote.

Definition at line 1290 of file docnode.h.

Public Constructors

DocHtmlBlockQuote()

DocHtmlBlockQuote::DocHtmlBlockQuote (DocParser * parser, DocNodeVariant * parent, const HtmlAttribList & attribs)
inline

Public Member Functions

attribs()

const HtmlAttribList & DocHtmlBlockQuote::attribs ()
inline

Definition at line 1296 of file docnode.h.

1296 const HtmlAttribList &attribs() const { return m_attribs; }

Reference m_attribs.

Referenced by DocHtmlBlockQuote and HtmlDocVisitor::operator().

parse()

Token DocHtmlBlockQuote::parse ()

Declaration at line 1295 of file docnode.h, definition at line 2786 of file docnode.cpp.

2787{
2788 AUTO_TRACE();
2789 Token retval = Token::make_TK_NONE();
2790 auto ns = AutoNodeStack(parser(),thisVariant());
2791
2792 // parse one or more paragraphs
2793 bool isFirst=TRUE;
2794 DocPara *par=nullptr;
2795 do
2796 {
2798 par = children().get_last<DocPara>();
2799 if (isFirst) { par->markFirst(); isFirst=FALSE; }
2800 retval=par->parse();
2801 }
2802 while (retval.is(TokenRetval::TK_NEWPARA));
2803 if (par) par->markLast();
2804
2805 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2806 {
2807 warn_doc_error(parser()->context.fileName,parser()->tokenizer.getLineNr(),"unexpected end of comment while inside <blockquote> block");
2808 }
2809
2810 AUTO_TRACE_EXIT("retval={}",retval.to_string());
2811 return retval.is(TokenRetval::RetVal_EndBlockQuote) ? Token::make_RetVal_OK() : retval;
2812}

References DocNodeList::append, AUTO_TRACE, AUTO_TRACE_EXIT, DocCompoundNode::children, FALSE, DocNodeList::get_last, Token::is, Token::is_any_of, DocPara::markFirst, DocPara::markLast, DocPara::parse, DocNode::parser, DocNode::thisVariant, Token::to_string, TRUE and warn_doc_error.

Private Member Attributes

m_attribs

HtmlAttribList DocHtmlBlockQuote::m_attribs

Definition at line 1299 of file docnode.h.

Referenced by attribs and DocHtmlBlockQuote.


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


Generated via doxygen2docusaurus by Doxygen 1.14.0.