My Project
|
#include <docparser.h>
Public Member Functions | |
DocHtmlTable (DocNode *parent, const HtmlAttribList &attribs) | |
~DocHtmlTable () | |
Kind | kind () const |
uint | numRows () const |
bool | hasCaption () |
const HtmlAttribList & | attribs () const |
int | parse () |
int | parseXml () |
uint | numColumns () const |
void | accept (DocVisitor *v) |
DocHtmlCaption * | caption () const |
DocHtmlRow * | firstRow () const |
Public Member Functions inherited from CompAccept< DocHtmlTable > | |
CompAccept () | |
virtual | ~CompAccept () |
void | accept (DocHtmlTable *obj, DocVisitor *v) |
const QList< DocNode > & | children () const |
QList< DocNode > & | children () |
Public Member Functions inherited from DocNode | |
DocNode () | |
virtual | ~DocNode () |
DocNode * | parent () const |
void | setParent (DocNode *parent) |
bool | isPreformatted () const |
Private Member Functions | |
void | computeTableGrid () |
Private Attributes | |
DocHtmlCaption * | m_caption |
HtmlAttribList | m_attribs |
int | m_numCols |
Node representing a HTML table
Definition at line 1345 of file docparser.h.
|
inline |
Definition at line 1348 of file docparser.h.
References m_caption, DocNode::m_parent, and DocNode::parent().
|
inline |
|
virtual |
Acceptor function for node visitors. Part of the visitor pattern.
v | Abstract visitor. |
Implements DocNode.
Definition at line 3818 of file docparser.cpp.
References DocNode::accept(), DocHtmlCaption::accept(), m_caption, CompAccept< DocHtmlTable >::m_children, DocVisitor::visitPost(), and DocVisitor::visitPre().
|
inline |
Definition at line 1354 of file docparser.h.
References m_attribs.
Referenced by HtmlDocVisitor::visitPre().
|
inline |
Definition at line 1359 of file docparser.h.
References m_caption.
Referenced by HtmlDocVisitor::visitPre(), and LatexDocVisitor::visitPre().
|
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 3761 of file docparser.cpp.
References CompAccept< DocHtmlTable >::children(), CompAccept< T >::children(), DocHtmlCell::colSpan(), DocNode::kind(), DocNode::Kind_HtmlCell, DocNode::Kind_HtmlRow, m_numCols, DocHtmlCell::rowSpan(), DocHtmlCell::setColumnIndex(), DocHtmlCell::setRowIndex(), DocHtmlRow::setRowIndex(), and DocHtmlRow::setVisibleCells().
Referenced by parse(), and parseXml().
|
inline |
Definition at line 1360 of file docparser.h.
References DocNode::kind(), DocNode::Kind_HtmlRow, and CompAccept< DocHtmlTable >::m_children.
Referenced by LatexDocVisitor::visitPre().
|
inline |
Definition at line 1353 of file docparser.h.
References m_caption.
Referenced by HtmlDocVisitor::visitPre(), and LatexDocVisitor::visitPre().
|
inlinevirtual |
Returns the kind of node. Provides runtime type information
Implements DocNode.
Definition at line 1351 of file docparser.h.
References DocNode::Kind_HtmlTable.
|
inline |
Definition at line 1357 of file docparser.h.
References m_numCols.
Referenced by DocbookDocVisitor::visitPre(), XmlDocVisitor::visitPre(), LatexDocVisitor::visitPre(), and PrintDocVisitor::visitPre().
|
inline |
Definition at line 1352 of file docparser.h.
References CompAccept< DocHtmlTable >::m_children.
Referenced by XmlDocVisitor::visitPre(), and PrintDocVisitor::visitPre().
int DocHtmlTable::parse | ( | ) |
Definition at line 3631 of file docparser.cpp.
References TokenInfo::attribs, computeTableGrid(), DBG, doctokenizerYYlex(), doctokenizerYYlineno, TokenInfo::endTag, g_fileName, g_nodeStack, g_token, HTML_CAPTION, HTML_TR, Mappers::htmlTagMapper, m_caption, CompAccept< DocHtmlTable >::m_children, Mapper::map(), TokenInfo::name, DocHtmlCaption::parse(), DocHtmlRow::parse(), RetVal_EndTable, RetVal_OK, RetVal_TableRow, TK_HTMLTAG, TK_NEWPARA, TK_WHITESPACE, tokToString(), and warn_doc_error().
Referenced by DocPara::handleHtmlStartTag().
int DocHtmlTable::parseXml | ( | ) |
Definition at line 3701 of file docparser.cpp.
References TokenInfo::attribs, computeTableGrid(), DBG, doctokenizerYYlex(), TokenInfo::endTag, g_nodeStack, g_token, Mappers::htmlTagMapper, CompAccept< DocHtmlTable >::m_children, Mapper::map(), TokenInfo::name, DocHtmlRow::parseXml(), RetVal_OK, RetVal_TableRow, TK_HTMLTAG, TK_NEWPARA, TK_WHITESPACE, XML_ITEM, XML_LIST, and XML_LISTHEADER.
Referenced by DocPara::handleHtmlStartTag().
|
private |
Definition at line 1369 of file docparser.h.
Referenced by attribs().
|
private |
Definition at line 1368 of file docparser.h.
Referenced by accept(), caption(), DocHtmlTable(), hasCaption(), parse(), and ~DocHtmlTable().
|
private |
Definition at line 1370 of file docparser.h.
Referenced by computeTableGrid(), and numColumns().