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 370 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 373 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:424
bool isBlock() const
Definition docnode.h:384
bool isExample() const
Definition docnode.h:380
QCString context() const
Definition docnode.h:379
QCString text() const
Definition docnode.h:378
QCString exampleFile() const
Definition docnode.h:381

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 391 of file docnode.h.

391{ 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 384 of file docnode.h.

384{ 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 397 of file docnode.h.

397{ p->engine=e; }

References p.

Referenced by DocPara::handleCommand().

◆ setHeight()

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

Definition at line 396 of file docnode.h.

396{ p->height=h; }

References p.

◆ setLocation()

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

Definition at line 399 of file docnode.h.

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

References p.

◆ setText()

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

Definition at line 394 of file docnode.h.

394{ p->text=t; }

References p.

◆ setUseBitmap()

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

Definition at line 398 of file docnode.h.

398{ p->useBitmap=u; }

References p.

◆ setWidth()

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

Definition at line 395 of file docnode.h.

395{ p->width=w; }

References p.

◆ srcFile()

◆ srcLine()

◆ text()

◆ type()

◆ useBitmap()

bool DocVerbatim::useBitmap ( ) const
inline

Definition at line 389 of file docnode.h.

389{ 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: