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 |
size_t | numberHeaderRows () 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 2182 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 2346 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().
bool DocHtmlTable::hasCaption | ( | ) | const |
Definition at line 2177 of file docnode.cpp.
References m_caption.
size_t DocHtmlTable::numberHeaderRows | ( | ) | const |
Definition at line 2187 of file docnode.cpp.
References DocCompoundNode::children(), and DocHtmlRow::isHeading().
Referenced by LatexDocVisitor::operator()().
|
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 2202 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 2289 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().