My Project
|
#include <docparser.h>
Public Member Functions | |
DocNode () | |
virtual | ~DocNode () |
virtual Kind | kind () const =0 |
DocNode * | parent () const |
void | setParent (DocNode *parent) |
virtual void | accept (DocVisitor *v)=0 |
bool | isPreformatted () const |
Protected Member Functions | |
void | setInsidePreformatted (bool p) |
Protected Attributes | |
DocNode * | m_parent |
Private Attributes | |
bool | m_insidePre |
Abstract node interface with type information.
Definition at line 79 of file docparser.h.
enum DocNode::Kind |
Available node types.
Definition at line 83 of file docparser.h.
|
inline |
|
inlinevirtual |
|
pure virtual |
Acceptor function for node visitors. Part of the visitor pattern.
v | Abstract visitor. |
Implemented in DocRoot, DocText, DocHtmlBlockQuote, DocHtmlTable, DocHtmlRow, DocHtmlCaption, DocHtmlCell, DocHtmlDescData, DocHtmlListItem, DocSimpleListItem, DocParamList, DocPara, DocParamSect, DocSimpleSectSep, DocSimpleSect, DocHtmlList, DocSimpleList, DocParBlock, DocInternal, DocSecRefList, DocSecRefItem, DocSection, DocHtmlDescList, DocHtmlDescTitle, DocHtmlHeader, DocHRef, DocInternalRef, DocRef, DocLink, DocVhdlFlow, DocDiaFile, DocMscFile, DocDotFile, DocImage, DocXRefItem, DocTitle, DocAutoListItem, DocAutoList, DocCopy, DocIndexEntry, DocFormula, DocIncOperator, DocInclude, DocVerbatim, DocWhiteSpace, DocSymbol, DocStyleChange, DocCite, DocAnchor, DocHorRuler, DocLineBreak, DocURL, DocLinkedWord, and DocWord.
Referenced by CompAccept< DocHtmlTable >::accept(), DocSimpleSect::accept(), DocParamList::accept(), DocHtmlTable::accept(), addPerlModDocBlock(), generateBriefDoc(), parseCommentAsText(), PerlModDocVisitor::visit(), visitCaption(), RTFGenerator::writeDoc(), ManGenerator::writeDoc(), LatexGenerator::writeDoc(), HtmlGenerator::writeDoc(), writeDocbookDocBlock(), and writeXMLDocBlock().
|
inline |
Returns TRUE iff this node is inside a preformatted section
Definition at line 158 of file docparser.h.
References m_insidePre.
Referenced by insidePRE(), HtmlDocVisitor::visitPost(), and HtmlDocVisitor::visitPre().
|
pure virtual |
Returns the kind of node. Provides runtime type information
Implemented in DocRoot, DocText, DocHtmlBlockQuote, DocHtmlTable, DocHtmlRow, DocHtmlCaption, DocHtmlCell, DocHtmlDescData, DocHtmlListItem, DocSimpleListItem, DocParamList, DocPara, DocParamSect, DocSimpleSectSep, DocSimpleSect, DocHtmlList, DocSimpleList, DocParBlock, DocInternal, DocSecRefList, DocSecRefItem, DocSection, DocHtmlDescList, DocHtmlDescTitle, DocHtmlHeader, DocHRef, DocInternalRef, DocRef, DocLink, DocVhdlFlow, DocDiaFile, DocMscFile, DocDotFile, DocImage, DocXRefItem, DocTitle, DocAutoListItem, DocAutoList, DocCopy, DocIndexEntry, DocFormula, DocIncOperator, DocInclude, DocVerbatim, DocWhiteSpace, DocSymbol, DocStyleChange, DocCite, DocAnchor, DocHorRuler, DocLineBreak, DocURL, DocLinkedWord, and DocWord.
Referenced by DocHtmlTable::computeTableGrid(), DocHtmlTable::firstRow(), flattenParagraphs(), HtmlDocVisitor::forceEndParagraph(), HtmlDocVisitor::forceStartParagraph(), getParagraphContext(), DocPara::handleHtmlStartTag(), DocPara::handleIncludeOperator(), insideLI(), insideOL(), insideStyleChangeThatIsOutsideParagraph(), insideTable(), insideUL(), DocHtmlRow::isHeading(), mustBeOutsideParagraph(), DocPara::parse(), tableIsNested(), XmlDocVisitor::visit(), RTFDocVisitor::visitPost(), ManDocVisitor::visitPost(), HtmlDocVisitor::visitPost(), LatexDocVisitor::visitPost(), HtmlDocVisitor::visitPre(), LatexDocVisitor::visitPre(), RTFDocVisitor::visitPre(), and PerlModDocVisitor::visitPre().
|
inline |
Returns the parent of this node or 0 for the root node.
Definition at line 147 of file docparser.h.
References m_parent.
Referenced by DocAnchor::DocAnchor(), DocAutoList::DocAutoList(), DocAutoListItem::DocAutoListItem(), DocCite::DocCite(), DocCopy::DocCopy(), DocDiaFile::DocDiaFile(), DocDotFile::DocDotFile(), DocFormula::DocFormula(), DocHorRuler::DocHorRuler(), DocHRef::DocHRef(), DocHtmlBlockQuote::DocHtmlBlockQuote(), DocHtmlCaption::DocHtmlCaption(), DocHtmlCell::DocHtmlCell(), DocHtmlDescData::DocHtmlDescData(), DocHtmlDescList::DocHtmlDescList(), DocHtmlDescTitle::DocHtmlDescTitle(), DocHtmlHeader::DocHtmlHeader(), DocHtmlList::DocHtmlList(), DocHtmlListItem::DocHtmlListItem(), DocHtmlRow::DocHtmlRow(), DocHtmlTable::DocHtmlTable(), DocImage::DocImage(), DocInclude::DocInclude(), DocIncOperator::DocIncOperator(), DocIndexEntry::DocIndexEntry(), DocInternal::DocInternal(), DocInternalRef::DocInternalRef(), DocLineBreak::DocLineBreak(), DocLink::DocLink(), DocLinkedWord::DocLinkedWord(), DocMscFile::DocMscFile(), DocPara::DocPara(), DocParamList::DocParamList(), DocParamSect::DocParamSect(), DocParBlock::DocParBlock(), DocRef::DocRef(), DocSecRefItem::DocSecRefItem(), DocSecRefList::DocSecRefList(), DocSection::DocSection(), DocSimpleList::DocSimpleList(), DocSimpleListItem::DocSimpleListItem(), DocSimpleSect::DocSimpleSect(), DocSimpleSectSep::DocSimpleSectSep(), DocStyleChange::DocStyleChange(), DocSymbol::DocSymbol(), DocTitle::DocTitle(), DocURL::DocURL(), DocVerbatim::DocVerbatim(), DocVhdlFlow::DocVhdlFlow(), DocWhiteSpace::DocWhiteSpace(), DocWord::DocWord(), DocXRefItem::DocXRefItem(), HtmlDocVisitor::forceEndParagraph(), HtmlDocVisitor::forceStartParagraph(), getParagraphContext(), insideLI(), insidePRE(), insideTable(), DocPara::parse(), DocParamList::parse(), setParent(), tableIsNested(), XmlDocVisitor::visit(), RTFDocVisitor::visitPost(), ManDocVisitor::visitPost(), HtmlDocVisitor::visitPost(), LatexDocVisitor::visitPost(), ManDocVisitor::visitPre(), HtmlDocVisitor::visitPre(), LatexDocVisitor::visitPre(), RTFDocVisitor::visitPre(), and PerlModDocVisitor::visitPre().
|
inlineprotected |
Sets whether or not this item is inside a preformatted section
Definition at line 162 of file docparser.h.
References m_insidePre.
Referenced by DocPara::handleHtmlEndTag(), and DocPara::handleHtmlStartTag().
|
inline |
Sets a new parent for this node.
Definition at line 150 of file docparser.h.
References m_parent, and parent().
Referenced by flattenParagraphs().
|
private |
Definition at line 166 of file docparser.h.
Referenced by isPreformatted(), and setInsidePreformatted().
|
protected |
Definition at line 163 of file docparser.h.
Referenced by DocAnchor::DocAnchor(), DocAutoList::DocAutoList(), DocAutoListItem::DocAutoListItem(), DocCite::DocCite(), DocCopy::DocCopy(), DocDiaFile::DocDiaFile(), DocDotFile::DocDotFile(), DocFormula::DocFormula(), DocHorRuler::DocHorRuler(), DocHRef::DocHRef(), DocHtmlBlockQuote::DocHtmlBlockQuote(), DocHtmlCaption::DocHtmlCaption(), DocHtmlCell::DocHtmlCell(), DocHtmlDescData::DocHtmlDescData(), DocHtmlDescList::DocHtmlDescList(), DocHtmlDescTitle::DocHtmlDescTitle(), DocHtmlHeader::DocHtmlHeader(), DocHtmlList::DocHtmlList(), DocHtmlListItem::DocHtmlListItem(), DocHtmlRow::DocHtmlRow(), DocHtmlTable::DocHtmlTable(), DocImage::DocImage(), DocInclude::DocInclude(), DocIncOperator::DocIncOperator(), DocIndexEntry::DocIndexEntry(), DocInternal::DocInternal(), DocInternalRef::DocInternalRef(), DocLineBreak::DocLineBreak(), DocLink::DocLink(), DocLinkedWord::DocLinkedWord(), DocMscFile::DocMscFile(), DocPara::DocPara(), DocParamList::DocParamList(), DocParamSect::DocParamSect(), DocParBlock::DocParBlock(), DocRef::DocRef(), DocSecRefItem::DocSecRefItem(), DocSecRefList::DocSecRefList(), DocSection::DocSection(), DocSimpleList::DocSimpleList(), DocSimpleListItem::DocSimpleListItem(), DocSimpleSect::DocSimpleSect(), DocSimpleSectSep::DocSimpleSectSep(), DocStyleChange::DocStyleChange(), DocSymbol::DocSymbol(), DocTitle::DocTitle(), DocURL::DocURL(), DocVerbatim::DocVerbatim(), DocVhdlFlow::DocVhdlFlow(), DocWhiteSpace::DocWhiteSpace(), DocWord::DocWord(), DocXRefItem::DocXRefItem(), parent(), DocCopy::parse(), and setParent().