The DocHtmlTable
Class Reference
Node representing a HTML table. More...
Declaration
Included Headers
Base class
class | DocCompoundNode |
Base class for nodes with children. More... | |
Public Constructors Index
DocHtmlTable (DocParser *parser, DocNodeVariant *parent, const HtmlAttribList &attribs) | |
Public Member Functions Index
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 |
Private Member Functions Index
void | computeTableGrid () |
determines the location of all cells in a grid, resolving row and column spans. More... | |
Private Member Attributes Index
std::unique_ptr< DocNodeVariant > | m_caption |
HtmlAttribList | m_attribs |
size_t | m_numCols = 0 |
Description
Node representing a HTML table.
Definition at line 1268 of file docnode.h.
Public Constructors
DocHtmlTable()
| inline |
Definition at line 1271 of file docnode.h.
References attribs, DocCompoundNode::DocCompoundNode, m_attribs, DocNode::parent and DocNode::parser.
Public Member Functions
attribs()
| inline |
Definition at line 1275 of file docnode.h.
Reference m_attribs.
Referenced by DocHtmlTable, HtmlDocVisitor::operator() and XmlDocVisitor::operator().
caption()
|
Declaration at line 1279 of file docnode.h, definition at line 2115 of file docnode.cpp.
Reference m_caption.
Referenced by DocbookDocVisitor::operator(), HtmlDocVisitor::operator(), LatexDocVisitor::operator(), PerlModDocVisitor::operator(), PrintDocVisitor::operator(), RTFDocVisitor::operator() and XmlDocVisitor::operator().
firstRow()
|
Declaration at line 1280 of file docnode.h, definition at line 2120 of file docnode.cpp.
References DocCompoundNode::children and GrowVector< T >::front.
Referenced by LatexDocVisitor::operator().
hasCaption()
|
Declaration at line 1274 of file docnode.h, definition at line 2110 of file docnode.cpp.
Reference m_caption.
numColumns()
| inline |
Definition at line 1278 of file docnode.h.
Reference m_numCols.
Referenced by DocbookDocVisitor::operator(), LatexDocVisitor::operator(), PrintDocVisitor::operator() and XmlDocVisitor::operator().
numRows()
| 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().
parse()
|
Declaration at line 1276 of file docnode.h, definition at line 2129 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_TBODY, HTML_TFOOT, HTML_THEAD, HTML_TR, Mappers::htmlTagMapper, Token::is, Token::is_any_of, DocTokenizer::lex, m_caption, parse, DocNode::parser, DocNode::thisVariant, Token::to_string, DocParserContext::token, DocParser::tokenizer and warn_doc_error.
Referenced by parse.
parseXml()
|
Declaration at line 1277 of file docnode.h, definition at line 2232 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 Member Functions
computeTableGrid()
|
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.
Declaration at line 1283 of file docnode.h, definition at line 2289 of file docnode.cpp.
References DocCompoundNode::children, DocHtmlCell::colSpan, m_numCols, DocHtmlCell::rowSpan, DocHtmlCell::setColumnIndex, DocHtmlCell::setRowIndex, DocHtmlRow::setRowIndex and DocHtmlRow::setVisibleCells.
Private Member Attributes
m_attribs
|
Definition at line 1285 of file docnode.h.
Referenced by attribs and DocHtmlTable.
m_caption
|
m_numCols
|
Definition at line 1286 of file docnode.h.
Referenced by computeTableGrid and numColumns.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.