Doxygen
|
Node representing a HTML table. More...
#include <src/docnode.h>
Public Member Functions | |
DocHtmlTable (DocParser *parser, DocNodeVariant *parent, const HtmlAttribList &attribs) | |
size_t | numRows () const |
bool | hasCaption () const |
const HtmlAttribList & | attribs () const |
Token | parse () |
Token | parseXml () |
size_t | numColumns () const |
const DocNodeVariant * | caption () const |
const DocNodeVariant * | firstRow () 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 Member Functions | |
void | computeTableGrid () |
determines the location of all cells in a grid, resolving row and column spans. |
Private Attributes | |
std::unique_ptr< DocNodeVariant > | m_caption |
HtmlAttribList | m_attribs |
size_t | m_numCols = 0 |
Additional Inherited Members | |
Protected Types inherited from DocNode | |
enum | RefType { Unknown , Anchor , Section , Table } |
Protected Member Functions inherited from DocNode | |
void | setInsidePreformatted (bool p) |
|
inline |
Definition at line 1271 of file docnode.h.
References attribs(), DocCompoundNode::DocCompoundNode(), m_attribs, DocNode::parent(), and DocNode::parser().
|
inline |
Definition at line 1275 of file docnode.h.
References m_attribs.
Referenced by DocHtmlTable(), HtmlDocVisitor::operator()(), and XmlDocVisitor::operator()().
const DocNodeVariant * DocHtmlTable::caption | ( | ) | const |
Definition at line 2141 of file docnode.cpp.
References m_caption.
Referenced by DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), PerlModDocVisitor::operator()(), PrintDocVisitor::operator()(), RTFDocVisitor::operator()(), and XmlDocVisitor::operator()().
|
private |
determines the location of all cells in a grid, resolving row and column spans.
For each the total number of visible cells is computed, and the total number of visible columns over all rows is stored.
Definition at line 2299 of file docnode.cpp.
References DocCompoundNode::children(), DocHtmlCell::colSpan(), m_numCols, DocHtmlCell::rowSpan(), DocHtmlCell::setColumnIndex(), DocHtmlCell::setRowIndex(), DocHtmlRow::setRowIndex(), and DocHtmlRow::setVisibleCells().
Referenced by parse(), and parseXml().
const DocNodeVariant * DocHtmlTable::firstRow | ( | ) | const |
Definition at line 2146 of file docnode.cpp.
References DocCompoundNode::children(), and GrowVector< T >::front().
Referenced by LatexDocVisitor::operator()().
bool DocHtmlTable::hasCaption | ( | ) | const |
Definition at line 2136 of file docnode.cpp.
References m_caption.
|
inline |
Definition at line 1278 of file docnode.h.
References m_numCols.
Referenced by DocbookDocVisitor::operator()(), LatexDocVisitor::operator()(), PrintDocVisitor::operator()(), and XmlDocVisitor::operator()().
|
inline |
Definition at line 1273 of file docnode.h.
References DocCompoundNode::children(), and GrowVector< T >::size().
Referenced by PerlModDocVisitor::operator()(), PrintDocVisitor::operator()(), and XmlDocVisitor::operator()().
Token DocHtmlTable::parse | ( | ) |
Definition at line 2155 of file docnode.cpp.
References DocNodeList::append(), TokenInfo::attribs, AUTO_TRACE, DocCompoundNode::children(), computeTableGrid(), DocParser::context, createDocNode(), DocNodeList::get_last(), HTML_CAPTION, HTML_TABLE, HTML_TR, Mappers::htmlTagMapper, Token::is(), Token::is_any_of(), m_caption, parse(), DocNode::parser(), skipSpacesForTable(), DocNode::thisVariant(), Token::to_string(), DocParserContext::token, and warn_doc_error.
Referenced by parse().
Token DocHtmlTable::parseXml | ( | ) |
Definition at line 2242 of file docnode.cpp.
References DocNodeList::append(), TokenInfo::attribs, AUTO_TRACE, DocCompoundNode::children(), computeTableGrid(), DocParser::context, TokenInfo::endTag, FALSE, DocNodeList::get_last(), Mappers::htmlTagMapper, Token::is(), Token::is_any_of(), DocTokenizer::lex(), DocNode::parser(), DocNode::thisVariant(), DocParserContext::token, DocParser::tokenizer, TRUE, UNKNOWN, XML_ITEM, XML_LIST, and XML_LISTHEADER.
|
private |
Definition at line 1285 of file docnode.h.
Referenced by attribs(), and DocHtmlTable().
|
private |
Definition at line 1284 of file docnode.h.
Referenced by caption(), hasCaption(), and parse().
|
private |
Definition at line 1286 of file docnode.h.
Referenced by computeTableGrid(), and numColumns().