Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
DocNode Class Referenceabstract

#include <docparser.h>

Inheritance diagram for DocNode:
DocAnchor DocAutoList DocAutoListItem DocCite DocCopy DocDiaFile DocDotFile DocFormula DocHorRuler DocHRef DocHtmlBlockQuote DocHtmlCaption DocHtmlCell DocHtmlDescData DocHtmlDescList DocHtmlDescTitle DocHtmlHeader DocHtmlList DocHtmlListItem DocHtmlRow DocHtmlTable DocImage DocInclude DocIncOperator DocIndexEntry DocInternal DocInternalRef DocLineBreak DocLink DocLinkedWord DocMscFile DocPara DocParamList DocParamSect DocParBlock DocRef DocRoot DocSecRefItem DocSecRefList DocSection DocSimpleList DocSimpleListItem DocSimpleSect DocSimpleSectSep DocStyleChange DocSymbol DocText DocTitle DocURL DocVerbatim DocVhdlFlow DocWhiteSpace DocWord DocXRefItem

Public Types

enum  Kind {
  Kind_Root = 0, Kind_Word = 1, Kind_WhiteSpace = 2, Kind_Para = 3,
  Kind_AutoList = 4, Kind_AutoListItem = 5, Kind_Symbol = 6, Kind_URL = 7,
  Kind_StyleChange = 8, Kind_SimpleSect = 9, Kind_Title = 10, Kind_SimpleList = 11,
  Kind_SimpleListItem = 12, Kind_Section = 13, Kind_Verbatim = 14, Kind_XRefItem = 15,
  Kind_HtmlList = 16, Kind_HtmlListItem = 17, Kind_HtmlDescList = 18, Kind_HtmlDescData = 19,
  Kind_HtmlDescTitle = 20, Kind_HtmlTable = 21, Kind_HtmlRow = 22, Kind_HtmlCell = 23,
  Kind_HtmlCaption = 24, Kind_LineBreak = 25, Kind_HorRuler = 26, Kind_Anchor = 27,
  Kind_IndexEntry = 28, Kind_Internal = 29, Kind_HRef = 30, Kind_Include = 31,
  Kind_IncOperator = 32, Kind_HtmlHeader = 33, Kind_Image = 34, Kind_DotFile = 35,
  Kind_Link = 36, Kind_Ref = 37, Kind_Formula = 38, Kind_SecRefItem = 39,
  Kind_SecRefList = 40, Kind_SimpleSectSep = 41, Kind_LinkedWord = 42, Kind_ParamSect = 43,
  Kind_ParamList = 44, Kind_InternalRef = 45, Kind_Copy = 46, Kind_Text = 47,
  Kind_MscFile = 48, Kind_HtmlBlockQuote = 49, Kind_VhdlFlow = 50, Kind_ParBlock = 51,
  Kind_DiaFile = 52
}
 

Public Member Functions

 DocNode ()
 
virtual ~DocNode ()
 
virtual Kind kind () const =0
 
DocNodeparent () const
 
void setParent (DocNode *parent)
 
virtual void accept (DocVisitor *v)=0
 
bool isPreformatted () const
 

Protected Member Functions

void setInsidePreformatted (bool p)
 

Protected Attributes

DocNodem_parent
 

Private Attributes

bool m_insidePre
 

Detailed Description

Abstract node interface with type information.

Definition at line 79 of file docparser.h.

Member Enumeration Documentation

Available node types.

Enumerator
Kind_Root 
Kind_Word 
Kind_WhiteSpace 
Kind_Para 
Kind_AutoList 
Kind_AutoListItem 
Kind_Symbol 
Kind_URL 
Kind_StyleChange 
Kind_SimpleSect 
Kind_Title 
Kind_SimpleList 
Kind_SimpleListItem 
Kind_Section 
Kind_Verbatim 
Kind_XRefItem 
Kind_HtmlList 
Kind_HtmlListItem 
Kind_HtmlDescList 
Kind_HtmlDescData 
Kind_HtmlDescTitle 
Kind_HtmlTable 
Kind_HtmlRow 
Kind_HtmlCell 
Kind_HtmlCaption 
Kind_LineBreak 
Kind_HorRuler 
Kind_Anchor 
Kind_IndexEntry 
Kind_Internal 
Kind_HRef 
Kind_Include 
Kind_IncOperator 
Kind_HtmlHeader 
Kind_Image 
Kind_DotFile 
Kind_Link 
Kind_Ref 
Kind_Formula 
Kind_SecRefItem 
Kind_SecRefList 
Kind_SimpleSectSep 
Kind_LinkedWord 
Kind_ParamSect 
Kind_ParamList 
Kind_InternalRef 
Kind_Copy 
Kind_Text 
Kind_MscFile 
Kind_HtmlBlockQuote 
Kind_VhdlFlow 
Kind_ParBlock 
Kind_DiaFile 

Definition at line 83 of file docparser.h.

83  { Kind_Root = 0,
84  Kind_Word = 1,
85  Kind_WhiteSpace = 2,
86  Kind_Para = 3,
87  Kind_AutoList = 4,
89  Kind_Symbol = 6,
90  Kind_URL = 7,
91  Kind_StyleChange = 8,
92  Kind_SimpleSect = 9,
93  Kind_Title = 10,
94  Kind_SimpleList = 11,
96  Kind_Section = 13,
97  Kind_Verbatim = 14,
98  Kind_XRefItem = 15,
99  Kind_HtmlList = 16,
100  Kind_HtmlListItem = 17,
101  Kind_HtmlDescList = 18,
102  Kind_HtmlDescData = 19,
103  Kind_HtmlDescTitle = 20,
104  Kind_HtmlTable = 21,
105  Kind_HtmlRow = 22,
106  Kind_HtmlCell = 23,
107  Kind_HtmlCaption = 24,
108  Kind_LineBreak = 25,
109  Kind_HorRuler = 26,
110  Kind_Anchor = 27,
111  Kind_IndexEntry = 28,
112  Kind_Internal = 29,
113  Kind_HRef = 30,
114  Kind_Include = 31,
115  Kind_IncOperator = 32,
116  Kind_HtmlHeader = 33,
117  Kind_Image = 34,
118  Kind_DotFile = 35,
119  Kind_Link = 36,
120  Kind_Ref = 37,
121  Kind_Formula = 38,
122  Kind_SecRefItem = 39,
123  Kind_SecRefList = 40,
124  Kind_SimpleSectSep = 41,
125  Kind_LinkedWord = 42,
126  Kind_ParamSect = 43,
127  Kind_ParamList = 44,
128  Kind_InternalRef = 45,
129  Kind_Copy = 46,
130  Kind_Text = 47,
131  Kind_MscFile = 48,
132  Kind_HtmlBlockQuote = 49,
133  Kind_VhdlFlow = 50,
134  Kind_ParBlock = 51,
135  Kind_DiaFile = 52
136  };

Constructor & Destructor Documentation

DocNode::DocNode ( )
inline

Creates a new node

Definition at line 138 of file docparser.h.

138 : m_parent(0), m_insidePre(FALSE) {}
bool m_insidePre
Definition: docparser.h:166
const bool FALSE
Definition: qglobal.h:370
DocNode * m_parent
Definition: docparser.h:163
virtual DocNode::~DocNode ( )
inlinevirtual

Destroys a node.

Definition at line 141 of file docparser.h.

141 {}

Member Function Documentation

virtual void DocNode::accept ( DocVisitor v)
pure virtual
bool DocNode::isPreformatted ( ) const
inline

Returns TRUE iff this node is inside a preformatted section

Definition at line 158 of file docparser.h.

158 { return m_insidePre; }
bool m_insidePre
Definition: docparser.h:166
virtual Kind DocNode::kind ( ) const
pure virtual
DocNode* DocNode::parent ( ) const
inline

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

Definition at line 147 of file docparser.h.

147 { return m_parent; }
DocNode * m_parent
Definition: docparser.h:163
void DocNode::setInsidePreformatted ( bool  p)
inlineprotected

Sets whether or not this item is inside a preformatted section

Definition at line 162 of file docparser.h.

162 { m_insidePre = p; }
bool m_insidePre
Definition: docparser.h:166
p
Definition: test.py:223
void DocNode::setParent ( DocNode parent)
inline

Sets a new parent for this node.

Definition at line 150 of file docparser.h.

150 { m_parent = parent; }
DocNode * parent() const
Definition: docparser.h:147
DocNode * m_parent
Definition: docparser.h:163

Member Data Documentation

bool DocNode::m_insidePre
private

Definition at line 166 of file docparser.h.

DocNode* DocNode::m_parent
protected

Definition at line 163 of file docparser.h.


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