Public Types | Public Member Functions | Private Attributes | List of all members
DocVerbatim Class Reference

#include <docparser.h>

Inheritance diagram for DocVerbatim:
DocNode

Public Types

enum  Type {
  Code, HtmlOnly, ManOnly, LatexOnly,
  RtfOnly, XmlOnly, Verbatim, Dot,
  Msc, DocbookOnly, PlantUML
}
 
- Public Types inherited from DocNode
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

 DocVerbatim (DocNode *parent, const QCString &context, const QCString &text, Type t, bool isExample, const QCString &exampleFile, bool isBlock=FALSE, const QCString &lang=QCString())
 
Kind kind () const
 
Type type () const
 
QCString text () const
 
QCString context () const
 
void accept (DocVisitor *v)
 
bool isExample () const
 
QCString exampleFile () const
 
QCString relPath () const
 
QCString language () const
 
bool isBlock () const
 
bool hasCaption () const
 
QCString width () const
 
QCString height () const
 
const QList< DocNode > & children () const
 
QList< DocNode > & children ()
 
void setText (const QCString &t)
 
void setWidth (const QCString &w)
 
void setHeight (const QCString &h)
 
- Public Member Functions inherited from DocNode
 DocNode ()
 
virtual ~DocNode ()
 
DocNodeparent () const
 
void setParent (DocNode *parent)
 
bool isPreformatted () const
 

Private Attributes

QCString m_context
 
QCString m_text
 
Type m_type
 
bool m_isExample
 
QCString m_exampleFile
 
QCString m_relPath
 
QCString m_lang
 
bool m_isBlock
 
QCString m_width
 
QCString m_height
 
QList< DocNodem_children
 

Additional Inherited Members

- Protected Member Functions inherited from DocNode
void setInsidePreformatted (bool p)
 
- Protected Attributes inherited from DocNode
DocNodem_parent
 

Detailed Description

Node representing a verbatim, unparsed text fragment

Definition at line 441 of file docparser.h.

Member Enumeration Documentation

Enumerator
Code 
HtmlOnly 
ManOnly 
LatexOnly 
RtfOnly 
XmlOnly 
Verbatim 
Dot 
Msc 
DocbookOnly 
PlantUML 

Definition at line 444 of file docparser.h.

Constructor & Destructor Documentation

DocVerbatim::DocVerbatim ( DocNode parent,
const QCString context,
const QCString text,
Type  t,
bool  isExample,
const QCString exampleFile,
bool  isBlock = FALSE,
const QCString lang = QCString() 
)

Definition at line 1886 of file docparser.cpp.

1889  : m_context(context), m_text(text), m_type(t),
1890  m_isExample(isExample), m_exampleFile(exampleFile),
1892 {
1893  m_parent = parent;
1894 }
DocNode * parent() const
Definition: docparser.h:147
QCString m_text
Definition: docparser.h:469
static QCString g_relPath
Definition: docparser.cpp:96
Type m_type
Definition: docparser.h:470
bool isExample() const
Definition: docparser.h:453
DocNode * m_parent
Definition: docparser.h:163
QCString m_context
Definition: docparser.h:468
bool isBlock() const
Definition: docparser.h:457
QCString m_exampleFile
Definition: docparser.h:472
QCString m_lang
Definition: docparser.h:474
bool m_isExample
Definition: docparser.h:471
bool m_isBlock
Definition: docparser.h:475
QCString m_relPath
Definition: docparser.h:473

Member Function Documentation

void DocVerbatim::accept ( DocVisitor v)
inlinevirtual

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

Parameters
vAbstract visitor.

Implements DocNode.

Definition at line 452 of file docparser.h.

452 { v->visit(this); }
virtual void visit(DocWord *)=0
const QList<DocNode>& DocVerbatim::children ( ) const
inline

Definition at line 461 of file docparser.h.

461 { return m_children; }
QList< DocNode > m_children
Definition: docparser.h:478
QList<DocNode>& DocVerbatim::children ( )
inline

Definition at line 462 of file docparser.h.

462 { return m_children; }
QList< DocNode > m_children
Definition: docparser.h:478
QCString DocVerbatim::context ( ) const
inline

Definition at line 451 of file docparser.h.

451 { return m_context; }
QCString m_context
Definition: docparser.h:468
QCString DocVerbatim::exampleFile ( ) const
inline

Definition at line 454 of file docparser.h.

454 { return m_exampleFile; }
QCString m_exampleFile
Definition: docparser.h:472
bool DocVerbatim::hasCaption ( ) const
inline

Definition at line 458 of file docparser.h.

458 { return !m_children.isEmpty(); }
bool isEmpty() const
Definition: qlist.h:67
QList< DocNode > m_children
Definition: docparser.h:478
QCString DocVerbatim::height ( ) const
inline

Definition at line 460 of file docparser.h.

460 { return m_height; }
QCString m_height
Definition: docparser.h:477
bool DocVerbatim::isBlock ( ) const
inline

Definition at line 457 of file docparser.h.

457 { return m_isBlock; }
bool m_isBlock
Definition: docparser.h:475
bool DocVerbatim::isExample ( ) const
inline

Definition at line 453 of file docparser.h.

453 { return m_isExample; }
bool m_isExample
Definition: docparser.h:471
Kind DocVerbatim::kind ( ) const
inlinevirtual

Returns the kind of node. Provides runtime type information

Implements DocNode.

Definition at line 448 of file docparser.h.

QCString DocVerbatim::language ( ) const
inline

Definition at line 456 of file docparser.h.

456 { return m_lang; }
QCString m_lang
Definition: docparser.h:474
QCString DocVerbatim::relPath ( ) const
inline

Definition at line 455 of file docparser.h.

455 { return m_relPath; }
QCString m_relPath
Definition: docparser.h:473
void DocVerbatim::setHeight ( const QCString h)
inline

Definition at line 465 of file docparser.h.

void DocVerbatim::setText ( const QCString t)
inline

Definition at line 463 of file docparser.h.

void DocVerbatim::setWidth ( const QCString w)
inline

Definition at line 464 of file docparser.h.

464 { m_width=w; }
QCString m_width
Definition: docparser.h:476
QCString DocVerbatim::text ( ) const
inline

Definition at line 450 of file docparser.h.

450 { return m_text; }
QCString m_text
Definition: docparser.h:469
Type DocVerbatim::type ( ) const
inline

Definition at line 449 of file docparser.h.

449 { return m_type; }
Type m_type
Definition: docparser.h:470
QCString DocVerbatim::width ( ) const
inline

Definition at line 459 of file docparser.h.

459 { return m_width; }
QCString m_width
Definition: docparser.h:476

Member Data Documentation

QList<DocNode> DocVerbatim::m_children
private

Definition at line 478 of file docparser.h.

QCString DocVerbatim::m_context
private

Definition at line 468 of file docparser.h.

QCString DocVerbatim::m_exampleFile
private

Definition at line 472 of file docparser.h.

QCString DocVerbatim::m_height
private

Definition at line 477 of file docparser.h.

bool DocVerbatim::m_isBlock
private

Definition at line 475 of file docparser.h.

bool DocVerbatim::m_isExample
private

Definition at line 471 of file docparser.h.

QCString DocVerbatim::m_lang
private

Definition at line 474 of file docparser.h.

QCString DocVerbatim::m_relPath
private

Definition at line 473 of file docparser.h.

QCString DocVerbatim::m_text
private

Definition at line 469 of file docparser.h.

Type DocVerbatim::m_type
private

Definition at line 470 of file docparser.h.

QCString DocVerbatim::m_width
private

Definition at line 476 of file docparser.h.


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