My Project
|
#include <docparser.h>
Public Member Functions | |
DocHtmlCell (DocNode *parent, const HtmlAttribList &attribs, bool isHeading) | |
bool | isHeading () const |
bool | isFirst () const |
bool | isLast () const |
Kind | kind () const |
void | accept (DocVisitor *v) |
void | markFirst (bool v=TRUE) |
void | markLast (bool v=TRUE) |
const HtmlAttribList & | attribs () const |
int | parse () |
int | parseXml () |
int | rowIndex () const |
int | columnIndex () const |
int | rowSpan () const |
int | colSpan () const |
Alignment | alignment () const |
Public Member Functions inherited from CompAccept< DocHtmlCell > | |
CompAccept () | |
virtual | ~CompAccept () |
void | accept (DocHtmlCell *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) |
void | setColumnIndex (int idx) |
Private Attributes | |
bool | m_isHeading |
bool | m_isFirst |
bool | m_isLast |
HtmlAttribList | m_attribs |
int | m_rowIdx |
int | m_colIdx |
Friends | |
class | DocHtmlTable |
Additional Inherited Members | |
Protected Member Functions inherited from DocNode | |
void | setInsidePreformatted (bool p) |
Protected Attributes inherited from CompAccept< DocHtmlCell > | |
QList< DocNode > | m_children |
Protected Attributes inherited from DocNode | |
DocNode * | m_parent |
Node representing a HTML table cell
Definition at line 1251 of file docparser.h.
|
inline |
Definition at line 1256 of file docparser.h.
References DocNode::m_parent, and DocNode::parent().
|
inlinevirtual |
Acceptor function for node visitors. Part of the visitor pattern.
v | Abstract visitor. |
Implements DocNode.
Definition at line 1264 of file docparser.h.
References CompAccept< T >::accept().
DocHtmlCell::Alignment DocHtmlCell::alignment | ( | ) | const |
Definition at line 3480 of file docparser.cpp.
References attribs(), Center, Left, and Right.
Referenced by LatexDocVisitor::visitPre().
|
inline |
Definition at line 1267 of file docparser.h.
References m_attribs.
Referenced by align(), alignment(), colSpan(), rowSpan(), and HtmlDocVisitor::visitPre().
int DocHtmlCell::colSpan | ( | ) | const |
Definition at line 3464 of file docparser.cpp.
References attribs().
Referenced by DocHtmlTable::computeTableGrid(), and LatexDocVisitor::visitPre().
|
inline |
Definition at line 1271 of file docparser.h.
References m_colIdx.
Referenced by LatexDocVisitor::visitPre().
|
inline |
Definition at line 1261 of file docparser.h.
References m_isFirst.
Referenced by parse(), and parseXml().
|
inline |
Definition at line 1260 of file docparser.h.
References m_isHeading.
Referenced by HtmlDocVisitor::visitPost(), LatexDocVisitor::visitPost(), PrintDocVisitor::visitPost(), XmlDocVisitor::visitPre(), HtmlDocVisitor::visitPre(), LatexDocVisitor::visitPre(), and PrintDocVisitor::visitPre().
|
inline |
Definition at line 1262 of file docparser.h.
References m_isLast.
Referenced by LatexDocVisitor::visitPost().
|
inlinevirtual |
Returns the kind of node. Provides runtime type information
Implements DocNode.
Definition at line 1263 of file docparser.h.
References DocNode::Kind_HtmlCell.
|
inline |
Definition at line 1265 of file docparser.h.
References m_isFirst.
Referenced by DocHtmlRow::parse(), and DocHtmlRow::parseXml().
|
inline |
Definition at line 1266 of file docparser.h.
References m_isLast.
Referenced by DocHtmlRow::parse(), and DocHtmlRow::parseXml().
int DocHtmlCell::parse | ( | ) |
Definition at line 3374 of file docparser.cpp.
References DBG, TokenInfo::endTag, g_nodeStack, g_token, HTML_TD, HTML_TH, Mappers::htmlTagMapper, isFirst(), CompAccept< DocHtmlCell >::m_children, Mapper::map(), DocPara::markFirst(), DocPara::markLast(), TokenInfo::name, DocPara::parse(), RetVal_OK, TK_HTMLTAG, and TK_NEWPARA.
Referenced by DocHtmlRow::parse().
int DocHtmlCell::parseXml | ( | ) |
Definition at line 3411 of file docparser.cpp.
References DBG, TokenInfo::endTag, g_nodeStack, g_token, Mappers::htmlTagMapper, isFirst(), CompAccept< DocHtmlCell >::m_children, Mapper::map(), DocPara::markFirst(), DocPara::markLast(), TokenInfo::name, DocPara::parse(), RetVal_OK, TK_HTMLTAG, TK_NEWPARA, XML_DESCRIPTION, and XML_ITEM.
Referenced by DocHtmlRow::parseXml().
|
inline |
Definition at line 1270 of file docparser.h.
References m_rowIdx.
Referenced by LatexDocVisitor::visitPost().
int DocHtmlCell::rowSpan | ( | ) | const |
Definition at line 3448 of file docparser.cpp.
References attribs().
Referenced by DocHtmlTable::computeTableGrid(), and LatexDocVisitor::visitPre().
|
inlineprivate |
Definition at line 1278 of file docparser.h.
References m_colIdx.
Referenced by DocHtmlTable::computeTableGrid().
|
inlineprivate |
Definition at line 1277 of file docparser.h.
References m_rowIdx.
Referenced by DocHtmlTable::computeTableGrid().
|
friend |
Definition at line 1253 of file docparser.h.
|
private |
Definition at line 1282 of file docparser.h.
Referenced by attribs().
|
private |
Definition at line 1284 of file docparser.h.
Referenced by columnIndex(), and setColumnIndex().
|
private |
Definition at line 1280 of file docparser.h.
Referenced by isFirst(), and markFirst().
|
private |
Definition at line 1279 of file docparser.h.
Referenced by isHeading().
|
private |
Definition at line 1281 of file docparser.h.
Referenced by isLast(), and markLast().
|
private |
Definition at line 1283 of file docparser.h.
Referenced by rowIndex(), and setRowIndex().