Functions
xmldocvisitor.cpp File Reference
#include <qfileinfo.h>
#include "xmldocvisitor.h"
#include "docparser.h"
#include "language.h"
#include "doxygen.h"
#include "outputgen.h"
#include "xmlgen.h"
#include "dot.h"
#include "message.h"
#include "util.h"
#include "parserintf.h"
#include "filename.h"
#include "config.h"
#include "htmlentity.h"

Go to the source code of this file.

Functions

static void visitCaption (XmlDocVisitor *parent, QList< DocNode > children)
 
static void visitPreStart (FTextStream &t, const char *cmd, const bool doCaption, XmlDocVisitor *parent, QList< DocNode > children, const QCString &name, bool writeType, DocImage::Type type, const QCString &width, const QCString &height)
 
static void visitPostEnd (FTextStream &t, const char *cmd)
 

Function Documentation

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

Definition at line 35 of file xmldocvisitor.cpp.

36 {
37  QListIterator<DocNode> cli(children);
38  DocNode *n;
39  for (cli.toFirst();(n=cli.current());++cli) n->accept(parent);
40 }
def cli(ctx)
Definition: main.py:7
std::void_t< T > n
virtual void accept(DocVisitor *v)=0
static void visitPostEnd ( FTextStream t,
const char *  cmd 
)
static

Definition at line 81 of file xmldocvisitor.cpp.

82 {
83  t << "</" << cmd << ">" << endl;
84 }
list cmd
Definition: getreco.py:22
QTextStream & endl(QTextStream &s)
static void visitPreStart ( FTextStream t,
const char *  cmd,
const bool  doCaption,
XmlDocVisitor parent,
QList< DocNode children,
const QCString name,
bool  writeType,
DocImage::Type  type,
const QCString width,
const QCString height 
)
static

Definition at line 42 of file xmldocvisitor.cpp.

46 {
47  t << "<" << cmd;
48  if (writeType)
49  {
50  t << " type=\"";
51  switch(type)
52  {
53  case DocImage::Html: t << "html"; break;
54  case DocImage::Latex: t << "latex"; break;
55  case DocImage::Rtf: t << "rtf"; break;
56  case DocImage::DocBook: t << "docbook"; break;
57  }
58  t << "\"";
59  }
60  if (!name.isEmpty())
61  {
62  t << " name=\"" << name << "\"";
63  }
64  if (!width.isEmpty())
65  {
66  t << " width=\"" << convertToXML(width) << "\"";
67  }
68  else if (!height.isEmpty())
69  {
70  t << " height=\"" << convertToXML(height) << "\"";
71  }
72  if (doCaption)
73  {
74  t << " caption=\"";
75  visitCaption(parent, children);
76  t << "\"";
77  }
78  t << ">";
79 }
QCString convertToXML(const char *s)
Definition: util.cpp:5717
bool isEmpty() const
Definition: qcstring.h:189
list cmd
Definition: getreco.py:22
static void visitCaption(XmlDocVisitor *parent, QList< DocNode > children)