Functions
docbookvisitor.cpp File Reference
#include <qfileinfo.h>
#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 "plantuml.h"

Go to the source code of this file.

Functions

static void visitPreStart (FTextStream &t, const bool hasCaption, QCString name, QCString width, QCString height)
 
static void visitPostEnd (FTextStream &t, const bool hasCaption)
 
static void visitCaption (DocbookDocVisitor *parent, QList< DocNode > children)
 

Function Documentation

static void visitCaption ( DocbookDocVisitor parent,
QList< DocNode children 
)
static

Definition at line 79 of file docbookvisitor.cpp.

80 {
81  QListIterator<DocNode> cli(children);
82  DocNode *n;
83  for (cli.toFirst();(n=cli.current());++cli) n->accept(parent);
84 }
def cli(ctx)
Definition: main.py:7
std::void_t< T > n
virtual void accept(DocVisitor *v)=0
static void visitPostEnd ( FTextStream t,
const bool  hasCaption 
)
static

Definition at line 68 of file docbookvisitor.cpp.

69 {
70  t << endl;
71  if (hasCaption)
72  {
73  t << " </caption>" << endl;
74  }
75  t << " </mediaobject>" << endl;
76  t << " </figure>" << endl;
77 }
QTextStream & endl(QTextStream &s)
static void visitPreStart ( FTextStream t,
const bool  hasCaption,
QCString  name,
QCString  width,
QCString  height 
)
static

Definition at line 39 of file docbookvisitor.cpp.

40 {
41  QCString tmpStr;
42  t << " <figure>" << endl;
43  t << " <title></title>" << endl;
44  t << " <mediaobject>" << endl;
45  t << " <imageobject>" << endl;
46  t << " <imagedata";
47  if (!width.isEmpty())
48  {
49  t << " width=\"" << convertToXML(width) << "\"";
50  }
51  else
52  {
53  t << " width=\"50%\"";
54  }
55  if (!height.isEmpty())
56  {
57  t << " depth=\"" << convertToXML(tmpStr) << "\"";
58  }
59  t << " align=\"center\" valign=\"middle\" scalefit=\"1\" fileref=\"" << name << "\">";
60  t << "</imagedata>" << endl;
61  t << " </imageobject>" << endl;
62  if (hasCaption)
63  {
64  t << " <caption>" << endl;
65  }
66 }
QCString convertToXML(const char *s)
Definition: util.cpp:5717
bool isEmpty() const
Definition: qcstring.h:189
QTextStream & endl(QTextStream &s)