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

References DocNode::accept().

Referenced by DocbookDocVisitor::writeDiaFile(), DocbookDocVisitor::writeDotFile(), DocbookDocVisitor::writeMscFile(), and DocbookDocVisitor::writePlantUMLFile().

{
QListIterator<DocNode> cli(children);
DocNode *n;
for (cli.toFirst();(n=cli.current());++cli) n->accept(parent);
}
static void visitPostEnd ( FTextStream t,
const bool  hasCaption 
)
static
static void visitPreStart ( FTextStream t,
const bool  hasCaption,
QCString  name,
QCString  width,
QCString  height 
)
static

Definition at line 39 of file docbookvisitor.cpp.

References convertToXML(), and endl().

Referenced by DocbookDocVisitor::startDiaFile(), DocbookDocVisitor::startDotFile(), DocbookDocVisitor::startMscFile(), DocbookDocVisitor::visitPre(), DocbookDocVisitor::writeDiaFile(), DocbookDocVisitor::writeDotFile(), DocbookDocVisitor::writeMscFile(), and DocbookDocVisitor::writePlantUMLFile().

{
QCString tmpStr;
t << " <figure>" << endl;
t << " <title></title>" << endl;
t << " <mediaobject>" << endl;
t << " <imageobject>" << endl;
t << " <imagedata";
if (!width.isEmpty())
{
t << " width=\"" << convertToXML(width) << "\"";
}
else
{
t << " width=\"50%\"";
}
if (!height.isEmpty())
{
t << " depth=\"" << convertToXML(tmpStr) << "\"";
}
t << " align=\"center\" valign=\"middle\" scalefit=\"1\" fileref=\"" << name << "\">";
t << "</imagedata>" << endl;
t << " </imageobject>" << endl;
if (hasCaption)
{
t << " <caption>" << endl;
}
}