Doxygen
Loading...
Searching...
No Matches
docbookvisitor.cpp File Reference
#include "docbookvisitor.h"
#include "docparser.h"
#include "language.h"
#include "doxygen.h"
#include "outputgen.h"
#include "docbookgen.h"
#include "dot.h"
#include "message.h"
#include "util.h"
#include "parserintf.h"
#include "filename.h"
#include "config.h"
#include "filedef.h"
#include "msc.h"
#include "dia.h"
#include "htmlentity.h"
#include "emoji.h"
#include "plantuml.h"
#include "growbuf.h"
#include "fileinfo.h"
#include "portable.h"
#include "codefragment.h"
+ Include dependency graph for docbookvisitor.cpp:

Go to the source code of this file.

Macros

#define DB_VIS_C
 
#define DB_VIS_C1(x)
 
#define DB_VIS_C2(y)
 
#define DB_VIS_C2a(x, y)
 

Functions

static QCString filterId (const QCString &s)
 
static bool supportedHtmlAttribute (const QCString &name)
 
static QCString makeShortName (const QCString &baseName)
 
static QCString makeBaseName (const QCString &name)
 

Macro Definition Documentation

◆ DB_VIS_C

#define DB_VIS_C

Definition at line 45 of file docbookvisitor.cpp.

Referenced by DocbookDocVisitor::DocbookDocVisitor(), DocbookDocVisitor::endDiaFile(), DocbookDocVisitor::endDotFile(), DocbookDocVisitor::endLink(), DocbookDocVisitor::endMscFile(), DocbookDocVisitor::endPlantUmlFile(), DocbookDocVisitor::filter(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::startDiaFile(), DocbookDocVisitor::startDotFile(), DocbookDocVisitor::startLink(), DocbookDocVisitor::startMscFile(), DocbookDocVisitor::startPlantUmlFile(), DocbookDocVisitor::writeDiaFile(), DocbookDocVisitor::writeDotFile(), DocbookDocVisitor::writeMscFile(), and DocbookDocVisitor::writePlantUMLFile().

◆ DB_VIS_C1

#define DB_VIS_C1 ( x)

Definition at line 46 of file docbookvisitor.cpp.

◆ DB_VIS_C2

#define DB_VIS_C2 ( y)

Definition at line 47 of file docbookvisitor.cpp.

◆ DB_VIS_C2a

#define DB_VIS_C2a ( x,
y )

Definition at line 48 of file docbookvisitor.cpp.

Function Documentation

◆ filterId()

static QCString filterId ( const QCString & s)
static

Definition at line 51 of file docbookvisitor.cpp.

52{
53 if (s.isEmpty()) return s;
54 GrowBuf growBuf;
55 growBuf.clear();
56 const char *p=s.data();
57 char c=0;
58 while ((c=*p++))
59 {
60 switch (c)
61 {
62 case ':': growBuf.addStr("_1"); break;
63 default: growBuf.addChar(c); break;
64 }
65 }
66 growBuf.addChar(0);
67 return growBuf.get();
68}
Class representing a string buffer optimized for growing.
Definition growbuf.h:28
void addChar(char c)
Definition growbuf.h:69
void addStr(const QCString &s)
Definition growbuf.h:72
void clear()
Definition growbuf.h:68
char * get()
Definition growbuf.h:114
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:150
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition qcstring.h:159

References GrowBuf::addChar(), GrowBuf::addStr(), GrowBuf::clear(), QCString::data(), GrowBuf::get(), and QCString::isEmpty().

Referenced by DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), and DocbookDocVisitor::operator()().

◆ makeBaseName()

◆ makeShortName()

static QCString makeShortName ( const QCString & baseName)
static

Definition at line 86 of file docbookvisitor.cpp.

87{
88 QCString result = baseName;
89 int i = result.findRev('/');
90 if (i!=-1)
91 {
92 result=result.mid(i+1);
93 }
94 return result;
95}
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
Definition qcstring.h:226
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition qcstring.cpp:91

References QCString::findRev(), and QCString::mid().

Referenced by makeBaseName(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::startPlantUmlFile(), DocbookDocVisitor::writeDiaFile(), LatexDocVisitor::writeDiaFile(), DocbookDocVisitor::writeDotFile(), DocbookDocVisitor::writeMscFile(), LatexDocVisitor::writeMscFile(), DocbookDocVisitor::writePlantUMLFile(), and LatexDocVisitor::writePlantUMLFile().

◆ supportedHtmlAttribute()

static bool supportedHtmlAttribute ( const QCString & name)
static

Definition at line 70 of file docbookvisitor.cpp.

71{
72 return (name=="align" ||
73 name=="bgcolor" ||
74 name=="border" ||
75 name=="cellpadding" ||
76 name=="cellspacing" ||
77 name=="class" ||
78 name=="frame" ||
79 name=="label" ||
80 name=="style" ||
81 name=="width" ||
82 name=="tabstyle" ||
83 name=="title");
84}

Referenced by DocbookDocVisitor::operator()(), and DocbookDocVisitor::operator()().