My Project
|
#include <docparser.h>
Public Member Functions | |
DocHtmlRow (DocNode *parent, const HtmlAttribList &attribs) | |
Kind | kind () const |
uint | numCells () const |
void | accept (DocVisitor *v) |
const HtmlAttribList & | attribs () const |
int | parse () |
int | parseXml (bool header) |
bool | isHeading () const |
void | setVisibleCells (int n) |
int | visibleCells () const |
int | rowIndex () const |
Public Member Functions inherited from CompAccept< DocHtmlRow > | |
CompAccept () | |
virtual | ~CompAccept () |
void | accept (DocHtmlRow *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 | setRowIndex (int idx) |
Private Attributes | |
HtmlAttribList | m_attribs |
int | m_visibleCells |
int | m_rowIdx |
Friends | |
class | DocHtmlTable |
Node representing a HTML table row
Definition at line 1308 of file docparser.h.
|
inline |
|
inlinevirtual |
Acceptor function for node visitors. Part of the visitor pattern.
v | Abstract visitor. |
Implements DocNode.
Definition at line 1316 of file docparser.h.
References CompAccept< T >::accept().
Referenced by LatexDocVisitor::visitPre().
|
inline |
Definition at line 1317 of file docparser.h.
References m_attribs.
Referenced by HtmlDocVisitor::visitPre().
|
inline |
Definition at line 1320 of file docparser.h.
References DocNode::kind(), DocNode::Kind_HtmlCell, and CompAccept< DocHtmlRow >::m_children.
Referenced by parse(), LatexDocVisitor::visitPost(), LatexDocVisitor::visitPre(), and RTFDocVisitor::visitPre().
|
inlinevirtual |
Returns the kind of node. Provides runtime type information
Implements DocNode.
Definition at line 1314 of file docparser.h.
References DocNode::Kind_HtmlRow.
|
inline |
Definition at line 1315 of file docparser.h.
References CompAccept< DocHtmlRow >::m_children.
Referenced by RTFDocVisitor::visitPre().
int DocHtmlRow::parse | ( | ) |
Definition at line 3501 of file docparser.cpp.
References TokenInfo::attribs, DBG, doctokenizerYYlex(), doctokenizerYYlineno, doctokenizerYYpushBackHtmlTag(), TokenInfo::endTag, g_fileName, g_nodeStack, g_token, HTML_TD, HTML_TH, Mappers::htmlTagMapper, isHeading(), CompAccept< DocHtmlRow >::m_children, Mapper::map(), DocHtmlCell::markFirst(), DocHtmlCell::markLast(), TokenInfo::name, DocHtmlCell::parse(), RetVal_OK, RetVal_TableCell, RetVal_TableHCell, TK_HTMLTAG, TK_NEWPARA, TK_WHITESPACE, tokToString(), and warn_doc_error().
Referenced by DocHtmlTable::parse().
int DocHtmlRow::parseXml | ( | bool | header | ) |
Definition at line 3567 of file docparser.cpp.
References TokenInfo::attribs, DBG, doctokenizerYYlex(), doctokenizerYYlineno, doctokenizerYYpushBackHtmlTag(), TokenInfo::endTag, g_fileName, g_nodeStack, g_token, Mappers::htmlTagMapper, CompAccept< DocHtmlRow >::m_children, Mapper::map(), DocHtmlCell::markFirst(), DocHtmlCell::markLast(), TokenInfo::name, DocHtmlCell::parseXml(), RetVal_OK, RetVal_TableCell, RetVal_TableHCell, TK_HTMLTAG, TK_NEWPARA, TK_WHITESPACE, tokToString(), warn_doc_error(), XML_DESCRIPTION, and XML_TERM.
Referenced by DocHtmlTable::parseXml().
|
inline |
Definition at line 1335 of file docparser.h.
References m_rowIdx.
Referenced by LatexDocVisitor::visitPost().
|
inlineprivate |
Definition at line 1338 of file docparser.h.
References m_rowIdx.
Referenced by DocHtmlTable::computeTableGrid().
|
inline |
Definition at line 1333 of file docparser.h.
References m_visibleCells.
Referenced by DocHtmlTable::computeTableGrid().
|
inline |
Definition at line 1334 of file docparser.h.
References m_visibleCells.
Referenced by LatexDocVisitor::visitPost(), and LatexDocVisitor::visitPre().
|
friend |
Definition at line 1310 of file docparser.h.
|
private |
Definition at line 1339 of file docparser.h.
Referenced by attribs().
|
private |
Definition at line 1341 of file docparser.h.
Referenced by rowIndex(), and setRowIndex().
|
private |
Definition at line 1340 of file docparser.h.
Referenced by setVisibleCells(), and visibleCells().