DocHtmlTable Class Reference

Node representing a HTML table. More...

#include <docparser.h>

Inheritance diagram for DocHtmlTable:

CompAccept< DocHtmlTable > DocNode List of all members.

Public Member Functions

 DocHtmlTable (DocNode *parent, const HtmlAttribList &attribs)
 ~DocHtmlTable ()
Kind kind () const
DocNode * parent () const
uint numRows () const
bool hasCaption ()
const HtmlAttribList & attribs () const
int parse ()
int parseXml ()
uint numCols () const
void accept (DocVisitor *v)

Detailed Description

Node representing a HTML table.

Definition at line 1193 of file docparser.h.


Constructor & Destructor Documentation

DocHtmlTable::DocHtmlTable ( DocNode *  parent,
const HtmlAttribList &  attribs 
) [inline]

Definition at line 1196 of file docparser.h.

DocHtmlTable::~DocHtmlTable (  )  [inline]

Definition at line 1199 of file docparser.h.


Member Function Documentation

Kind DocHtmlTable::kind (  )  const [inline, virtual]

Returns the kind of node. Provides runtime type information

Implements DocNode.

Definition at line 1200 of file docparser.h.

References DocNode::Kind_HtmlTable.

DocNode* DocHtmlTable::parent (  )  const [inline, virtual]

Returns the parent of this node or 0 for the root node.

Implements DocNode.

Definition at line 1201 of file docparser.h.

uint DocHtmlTable::numRows (  )  const [inline]

Definition at line 1202 of file docparser.h.

References CompAccept< DocHtmlTable >::m_children.

Referenced by XmlDocVisitor::visitPre(), and PrintDocVisitor::visitPre().

bool DocHtmlTable::hasCaption (  )  [inline]

Definition at line 1203 of file docparser.h.

Referenced by LatexDocVisitor::visitPost(), and LatexDocVisitor::visitPre().

const HtmlAttribList& DocHtmlTable::attribs (  )  const [inline]

Definition at line 1204 of file docparser.h.

Referenced by HtmlDocVisitor::visitPre().

int DocHtmlTable::parse (  ) 

Definition at line 3068 of file docparser.cpp.

References TokenInfo::attribs, DBG, doctokenizerYYlex(), doctokenizerYYlineno, TokenInfo::endTag, g_token, HTML_CAPTION, HTML_TR, Mappers::htmlTagMapper, CompAccept< DocHtmlTable >::m_children, Mapper::map(), TokenInfo::name, DocHtmlRow::parse(), DocHtmlCaption::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 3136 of file docparser.cpp.

References TokenInfo::attribs, DBG, doctokenizerYYlex(), TokenInfo::endTag, g_token, Mappers::htmlTagMapper, CompAccept< DocHtmlTable >::m_children, Mapper::map(), TokenInfo::name, DocHtmlRow::parseXml(), RetVal_EndTable, RetVal_OK, RetVal_TableRow, TK_HTMLTAG, TK_NEWPARA, TK_WHITESPACE, XML_ITEM, and XML_LISTHEADER.

Referenced by DocPara::handleHtmlStartTag().

uint DocHtmlTable::numCols (  )  const

Definition at line 3178 of file docparser.cpp.

References DocNode::kind(), DocNode::Kind_HtmlRow, and CompAccept< DocHtmlTable >::m_children.

Referenced by XmlDocVisitor::visitPre(), PrintDocVisitor::visitPre(), and LatexDocVisitor::visitPre().

void DocHtmlTable::accept ( DocVisitor *  v  )  [virtual]

Acceptor function for node visitors. Part of the visitor pattern.

Parameters:
v Abstract visitor.

Implements DocNode.

Definition at line 3191 of file docparser.cpp.

References DocNode::accept(), DocHtmlCaption::accept(), DocVisitor_Html, DocVisitor::id(), CompAccept< DocHtmlTable >::m_children, DocVisitor::visitPost(), and DocVisitor::visitPre().


The documentation for this class was generated from the following files:



Generated on Mon Mar 31 10:58:58 2008 by  doxygen 1.5.1