#include <docparser.h>
Inheritance diagram for DocNode:
Definition at line 84 of file docparser.h.
enum DocNode::Kind |
Available node types.
Definition at line 88 of file docparser.h.
DocNode::DocNode | ( | ) | [inline] |
Creates a new node
Definition at line 138 of file docparser.h.
virtual DocNode::~DocNode | ( | ) | [inline, virtual] |
Destroys a node.
Definition at line 141 of file docparser.h.
virtual Kind DocNode::kind | ( | ) | const [pure virtual] |
Returns the kind of node. Provides runtime type information
Implemented in DocWord, DocLinkedWord, DocURL, DocLineBreak, DocHorRuler, DocAnchor, DocStyleChange, DocSymbol, DocWhiteSpace, DocVerbatim, DocInclude, DocIncOperator, DocFormula, DocIndexEntry, DocCopy, DocAutoList, DocTitle, DocXRefItem, DocImage, DocDotFile, DocLink, DocRef, DocInternalRef, DocHRef, DocHtmlHeader, DocHtmlDescTitle, DocHtmlDescList, DocSection, DocSecRefItem, DocSecRefList, DocInternal, DocSimpleList, DocHtmlList, DocSimpleSect, DocParamSect, DocPara, DocParamList, DocAutoListItem, DocSimpleListItem, DocHtmlListItem, DocHtmlDescData, DocHtmlCell, DocHtmlCaption, DocHtmlRow, DocHtmlTable, DocText, and DocRoot.
Referenced by DocPara::handleHtmlStartTag(), DocPara::handleIncludeOperator(), DocHtmlTable::numCols(), DocPara::parse(), RTFDocVisitor::visitPost(), ManDocVisitor::visitPost(), LatexDocVisitor::visitPost(), and HtmlDocVisitor::visitPost().
virtual DocNode* DocNode::parent | ( | ) | const [pure virtual] |
Returns the parent of this node or 0 for the root node.
Implemented in DocWord, DocLinkedWord, DocURL, DocLineBreak, DocHorRuler, DocAnchor, DocStyleChange, DocSymbol, DocWhiteSpace, DocVerbatim, DocInclude, DocIncOperator, DocFormula, DocIndexEntry, DocCopy, DocAutoList, DocTitle, DocXRefItem, DocImage, DocDotFile, DocLink, DocRef, DocInternalRef, DocHRef, DocHtmlHeader, DocHtmlDescTitle, DocHtmlDescList, DocSection, DocSecRefItem, DocSecRefList, DocInternal, DocSimpleList, DocHtmlList, DocSimpleSect, DocParamSect, DocPara, DocParamList, DocAutoListItem, DocSimpleListItem, DocHtmlListItem, DocHtmlDescData, DocHtmlCell, DocHtmlCaption, DocHtmlRow, DocHtmlTable, DocText, and DocRoot.
Referenced by DocPara::parse().
virtual void DocNode::accept | ( | DocVisitor * | v | ) | [pure virtual] |
Acceptor function for node visitors. Part of the visitor pattern.
v | Abstract visitor. |
Implemented in DocWord, DocLinkedWord, DocURL, DocLineBreak, DocHorRuler, DocAnchor, DocStyleChange, DocSymbol, DocWhiteSpace, DocVerbatim, DocInclude, DocIncOperator, DocFormula, DocIndexEntry, DocCopy, DocAutoList, DocTitle, DocXRefItem, DocImage, DocDotFile, DocLink, DocRef, DocInternalRef, DocHRef, DocHtmlHeader, DocHtmlDescTitle, DocHtmlDescList, DocSection, DocSecRefItem, DocSecRefList, DocInternal, DocSimpleList, DocHtmlList, DocSimpleSect, DocParamSect, DocPara, DocParamList, DocAutoListItem, DocSimpleListItem, DocHtmlListItem, DocHtmlDescData, DocHtmlCell, DocHtmlCaption, DocHtmlRow, DocHtmlTable, DocText, and DocRoot.
Referenced by DocParamList::accept(), CompAccept< DocHtmlTable >::accept(), DocSimpleSect::accept(), DocHtmlTable::accept(), parseCommentAsText(), RTFGenerator::printDoc(), ManGenerator::printDoc(), LatexGenerator::printDoc(), and HtmlGenerator::printDoc().
bool DocNode::isPreformatted | ( | ) | const [inline] |
Returns TRUE iff this node is inside a preformatted section
Definition at line 155 of file docparser.h.
Referenced by HtmlDocVisitor::visitPost(), and HtmlDocVisitor::visitPre().
void DocNode::setInsidePreformatted | ( | bool | p | ) | [inline, protected] |
Sets whether or not this item is inside a preformatted section
Definition at line 159 of file docparser.h.
Referenced by DocPara::handleHtmlEndTag(), and DocPara::handleHtmlStartTag().