My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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.

References DocNode::accept().

Referenced by visitPreStart().

{
QListIterator<DocNode> cli(children);
DocNode *n;
for (cli.toFirst();(n=cli.current());++cli) n->accept(parent);
}
static void visitPostEnd ( FTextStream t,
const char *  cmd 
)
static

Definition at line 81 of file xmldocvisitor.cpp.

References endl().

Referenced by XmlDocVisitor::visit(), and XmlDocVisitor::visitPost().

{
t << "</" << cmd << ">" << endl;
}
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.

References convertToXML(), DocImage::DocBook, DocImage::Html, DocImage::Latex, DocImage::Rtf, and visitCaption().

Referenced by XmlDocVisitor::visit(), and XmlDocVisitor::visitPre().

{
t << "<" << cmd;
if (writeType)
{
t << " type=\"";
switch(type)
{
case DocImage::Html: t << "html"; break;
case DocImage::Latex: t << "latex"; break;
case DocImage::Rtf: t << "rtf"; break;
case DocImage::DocBook: t << "docbook"; break;
}
t << "\"";
}
if (!name.isEmpty())
{
t << " name=\"" << name << "\"";
}
if (!width.isEmpty())
{
t << " width=\"" << convertToXML(width) << "\"";
}
else if (!height.isEmpty())
{
t << " height=\"" << convertToXML(height) << "\"";
}
if (doCaption)
{
t << " caption=\"";
visitCaption(parent, children);
t << "\"";
}
t << ">";
}