Doxygen
Loading...
Searching...
No Matches
DocVerbatim Class Reference

Node representing a verbatim, unparsed text fragment. More...

#include <src/docnode.h>

+ Inheritance diagram for DocVerbatim:
+ Collaboration diagram for DocVerbatim:

Classes

struct  Private
 

Public Types

enum  Type {
  Code , HtmlOnly , ManOnly , LatexOnly ,
  RtfOnly , XmlOnly , Verbatim , Dot ,
  Msc , DocbookOnly , PlantUML , JavaDocCode ,
  JavaDocLiteral
}
 

Public Member Functions

 DocVerbatim (DocParser *parser, DocNodeVariant *parent, const QCString &context, const QCString &text, Type t, bool isExample, const QCString &exampleFile, bool isBlock=FALSE, const QCString &lang=QCString())
 
Type type () const
 
QCString text () const
 
QCString context () const
 
bool isExample () const
 
QCString exampleFile () const
 
QCString relPath () const
 
QCString language () const
 
bool isBlock () const
 
bool hasCaption () const
 
QCString width () const
 
QCString height () const
 
QCString engine () const
 
bool useBitmap () const
 
const DocNodeListchildren () const
 
DocNodeListchildren ()
 
QCString srcFile () const
 
int srcLine () const
 
void setText (const QCString &t)
 
void setWidth (const QCString &w)
 
void setHeight (const QCString &h)
 
void setEngine (const QCString &e)
 
void setUseBitmap (const bool &u)
 
void setLocation (const QCString &file, int line)
 
- Public Member Functions inherited from DocNode
 DocNode (DocParser *parser, DocNodeVariant *parent)
 
 ~DocNode ()=default
 
DocNodeVariantparent ()
 
const DocNodeVariantparent () const
 
DocNodeVariantthisVariant ()
 
const DocNodeVariantthisVariant () const
 
void setThisVariant (DocNodeVariant *thisVariant)
 
DocParserparser ()
 
const DocParserparser () const
 
void setParent (DocNodeVariant *parent)
 
bool isPreformatted () const
 

Private Attributes

std::unique_ptr< Privatep
 

Additional Inherited Members

- Protected Types inherited from DocNode
enum  RefType { Unknown , Anchor , Section , Table }
 
- Protected Member Functions inherited from DocNode
void setInsidePreformatted (bool p)
 

Detailed Description

Node representing a verbatim, unparsed text fragment.

Definition at line 356 of file docnode.h.

Member Enumeration Documentation

◆ Type

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

Definition at line 359 of file docnode.h.

Constructor & Destructor Documentation

◆ DocVerbatim()

DocVerbatim::DocVerbatim ( DocParser * parser,
DocNodeVariant * parent,
const QCString & context,
const QCString & text,
Type t,
bool isExample,
const QCString & exampleFile,
bool isBlock = FALSE,
const QCString & lang = QCString() )

Definition at line 257 of file docnode.cpp.

260 : DocNode(parser,parent), p(std::make_unique<Private>(context, text, t, isExample, exampleFile, parser->context.relPath, lang, isBlock))
261{
262}
DocNode(DocParser *parser, DocNodeVariant *parent)
Definition docnode.h:84
DocParser * parser()
Definition docnode.h:97
DocNodeVariant * parent()
Definition docnode.h:89
std::unique_ptr< Private > p
Definition docnode.h:410
bool isBlock() const
Definition docnode.h:370
bool isExample() const
Definition docnode.h:366
QCString context() const
Definition docnode.h:365
QCString text() const
Definition docnode.h:364
QCString exampleFile() const
Definition docnode.h:367

References context(), DocNode::DocNode(), exampleFile(), isBlock(), isExample(), p, DocNode::parent(), DocNode::parser(), relPath(), and text().

Member Function Documentation

◆ children() [1/2]

DocNodeList & DocVerbatim::children ( )
inline

Definition at line 377 of file docnode.h.

377{ return p->children; }

References p.

◆ children() [2/2]

◆ context()

◆ engine()

QCString DocVerbatim::engine ( ) const
inline

◆ exampleFile()

QCString DocVerbatim::exampleFile ( ) const
inline

◆ hasCaption()

◆ height()

◆ isBlock()

bool DocVerbatim::isBlock ( ) const
inline

Definition at line 370 of file docnode.h.

370{ return p->isBlock; }

References p.

Referenced by DocVerbatim(), mustBeOutsideParagraph(), HtmlDocVisitor::operator()(), and XmlDocVisitor::operator()().

◆ isExample()

bool DocVerbatim::isExample ( ) const
inline

◆ language()

QCString DocVerbatim::language ( ) const
inline

◆ relPath()

QCString DocVerbatim::relPath ( ) const
inline

◆ setEngine()

void DocVerbatim::setEngine ( const QCString & e)
inline

Definition at line 383 of file docnode.h.

383{ p->engine=e; }

References p.

◆ setHeight()

void DocVerbatim::setHeight ( const QCString & h)
inline

Definition at line 382 of file docnode.h.

382{ p->height=h; }

References p.

◆ setLocation()

void DocVerbatim::setLocation ( const QCString & file,
int line )
inline

Definition at line 385 of file docnode.h.

385{ p->srcFile=file; p->srcLine=line; }

References p.

◆ setText()

void DocVerbatim::setText ( const QCString & t)
inline

Definition at line 380 of file docnode.h.

380{ p->text=t; }

References p.

◆ setUseBitmap()

void DocVerbatim::setUseBitmap ( const bool & u)
inline

Definition at line 384 of file docnode.h.

384{ p->useBitmap=u; }

References p.

◆ setWidth()

void DocVerbatim::setWidth ( const QCString & w)
inline

Definition at line 381 of file docnode.h.

381{ p->width=w; }

References p.

◆ srcFile()

◆ srcLine()

◆ text()

◆ type()

◆ useBitmap()

bool DocVerbatim::useBitmap ( ) const
inline

Definition at line 375 of file docnode.h.

375{ return p->useBitmap; }

References p.

Referenced by LatexDocVisitor::operator()(), and LatexDocVisitor::writePlantUMLFile().

◆ width()

Member Data Documentation

◆ p


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