My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DocbookDocVisitor Class Reference

Concrete visitor implementation for Docbook output. More...

#include <docbookvisitor.h>

Inheritance diagram for DocbookDocVisitor:
DocVisitor

Public Member Functions

 DocbookDocVisitor (FTextStream &t, CodeOutputInterface &ci)
 
void visit (DocWord *)
 
void visit (DocLinkedWord *)
 
void visit (DocWhiteSpace *)
 
void visit (DocSymbol *)
 
void visit (DocURL *)
 
void visit (DocLineBreak *)
 
void visit (DocHorRuler *)
 
void visit (DocStyleChange *)
 
void visit (DocVerbatim *)
 
void visit (DocAnchor *)
 
void visit (DocInclude *)
 
void visit (DocIncOperator *)
 
void visit (DocFormula *)
 
void visit (DocIndexEntry *)
 
void visit (DocSimpleSectSep *)
 
void visit (DocCite *)
 
void visitPre (DocAutoList *)
 
void visitPost (DocAutoList *)
 
void visitPre (DocAutoListItem *)
 
void visitPost (DocAutoListItem *)
 
void visitPre (DocPara *)
 
void visitPost (DocPara *)
 
void visitPre (DocRoot *)
 
void visitPost (DocRoot *)
 
void visitPre (DocSimpleSect *)
 
void visitPost (DocSimpleSect *)
 
void visitPre (DocTitle *)
 
void visitPost (DocTitle *)
 
void visitPre (DocSimpleList *)
 
void visitPost (DocSimpleList *)
 
void visitPre (DocSimpleListItem *)
 
void visitPost (DocSimpleListItem *)
 
void visitPre (DocSection *)
 
void visitPost (DocSection *)
 
void visitPre (DocHtmlList *)
 
void visitPost (DocHtmlList *)
 
void visitPre (DocHtmlListItem *)
 
void visitPost (DocHtmlListItem *)
 
void visitPre (DocHtmlDescList *)
 
void visitPost (DocHtmlDescList *)
 
void visitPre (DocHtmlDescTitle *)
 
void visitPost (DocHtmlDescTitle *)
 
void visitPre (DocHtmlDescData *)
 
void visitPost (DocHtmlDescData *)
 
void visitPre (DocHtmlTable *)
 
void visitPost (DocHtmlTable *)
 
void visitPre (DocHtmlRow *)
 
void visitPost (DocHtmlRow *)
 
void visitPre (DocHtmlCell *)
 
void visitPost (DocHtmlCell *)
 
void visitPre (DocHtmlCaption *)
 
void visitPost (DocHtmlCaption *)
 
void visitPre (DocInternal *)
 
void visitPost (DocInternal *)
 
void visitPre (DocHRef *)
 
void visitPost (DocHRef *)
 
void visitPre (DocHtmlHeader *)
 
void visitPost (DocHtmlHeader *)
 
void visitPre (DocImage *)
 
void visitPost (DocImage *)
 
void visitPre (DocDotFile *)
 
void visitPost (DocDotFile *)
 
void visitPre (DocMscFile *)
 
void visitPost (DocMscFile *)
 
void visitPre (DocDiaFile *)
 
void visitPost (DocDiaFile *)
 
void visitPre (DocLink *)
 
void visitPost (DocLink *)
 
void visitPre (DocRef *)
 
void visitPost (DocRef *)
 
void visitPre (DocSecRefItem *)
 
void visitPost (DocSecRefItem *)
 
void visitPre (DocSecRefList *)
 
void visitPost (DocSecRefList *)
 
void visitPre (DocParamSect *)
 
void visitPost (DocParamSect *)
 
void visitPre (DocParamList *)
 
void visitPost (DocParamList *)
 
void visitPre (DocXRefItem *)
 
void visitPost (DocXRefItem *)
 
void visitPre (DocInternalRef *)
 
void visitPost (DocInternalRef *)
 
void visitPre (DocCopy *)
 
void visitPost (DocCopy *)
 
void visitPre (DocText *)
 
void visitPost (DocText *)
 
void visitPre (DocHtmlBlockQuote *)
 
void visitPost (DocHtmlBlockQuote *)
 
void visitPre (DocVhdlFlow *)
 
void visitPost (DocVhdlFlow *)
 
void visitPre (DocParBlock *)
 
void visitPost (DocParBlock *)
 
- Public Member Functions inherited from DocVisitor
 DocVisitor (int id)
 
virtual ~DocVisitor ()
 
int id () const
 

Private Member Functions

void filter (const char *str)
 
void startLink (const QCString &file, const QCString &anchor)
 
void endLink ()
 
void pushEnabled ()
 
void popEnabled ()
 
void startMscFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
 
void endMscFile (bool hasCaption)
 
void writeMscFile (const QCString &fileName, DocVerbatim *s)
 
void startDiaFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
 
void endDiaFile (bool hasCaption)
 
void writeDiaFile (const QCString &fileName, DocVerbatim *s)
 
void startDotFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
 
void endDotFile (bool hasCaption)
 
void writeDotFile (const QCString &fileName, DocVerbatim *s)
 
void writePlantUMLFile (const QCString &fileName, DocVerbatim *s)
 

Private Attributes

FTextStreamm_t
 
CodeOutputInterfacem_ci
 
bool m_insidePre
 
bool m_hide
 
QStack< bool > m_enabled
 
QCString m_langExt
 

Detailed Description

Concrete visitor implementation for Docbook output.

Definition at line 30 of file docbookvisitor.h.

Constructor & Destructor Documentation

DocbookDocVisitor::DocbookDocVisitor ( FTextStream t,
CodeOutputInterface ci 
)

Definition at line 86 of file docbookvisitor.cpp.

{
}

Member Function Documentation

void DocbookDocVisitor::endDiaFile ( bool  hasCaption)
private

Definition at line 1318 of file docbookvisitor.cpp.

References endl(), m_hide, m_t, and visitPostEnd().

Referenced by visitPost().

{
if (m_hide) return;
visitPostEnd(m_t, hasCaption);
m_t << "</para>" << endl;
}
void DocbookDocVisitor::endDotFile ( bool  hasCaption)
private

Definition at line 1364 of file docbookvisitor.cpp.

References endl(), m_hide, m_t, and visitPostEnd().

Referenced by visitPost().

{
if (m_hide) return;
m_t << endl;
visitPostEnd(m_t, hasCaption);
m_t << "</para>" << endl;
}
void DocbookDocVisitor::endLink ( )
private

Definition at line 1202 of file docbookvisitor.cpp.

References m_t.

Referenced by visit(), and visitPost().

{
m_t << "</link>";
}
void DocbookDocVisitor::endMscFile ( bool  hasCaption)
private

Definition at line 1273 of file docbookvisitor.cpp.

References endl(), m_hide, m_t, and visitPostEnd().

Referenced by visitPost().

{
if (m_hide) return;
visitPostEnd(m_t, hasCaption);
m_t << "</para>" << endl;
}
void DocbookDocVisitor::filter ( const char *  str)
private

Definition at line 1190 of file docbookvisitor.cpp.

References convertToXML(), and m_t.

Referenced by visit(), and visitPre().

{
m_t << convertToXML(str);
}
void DocbookDocVisitor::popEnabled ( )
private

Definition at line 1212 of file docbookvisitor.cpp.

References m_enabled, and m_hide.

Referenced by visit(), and visitPost().

{
bool *v=m_enabled.pop();
ASSERT(v!=0);
m_hide = *v;
delete v;
}
void DocbookDocVisitor::pushEnabled ( )
private

Definition at line 1207 of file docbookvisitor.cpp.

References m_enabled, and m_hide.

Referenced by visit(), and visitPre().

{
m_enabled.push(new bool(m_hide));
}
void DocbookDocVisitor::startDiaFile ( const QCString &  fileName,
const QCString &  width,
const QCString &  height,
bool  hasCaption 
)
private

Definition at line 1295 of file docbookvisitor.cpp.

References Config_getString, DIA_BITMAP, endl(), m_t, visitPreStart(), and writeDiaGraphFromFile().

Referenced by visitPre().

{
QCString baseName=fileName;
int i;
if ((i=baseName.findRev('/'))!=-1)
{
baseName=baseName.right(baseName.length()-i-1);
}
if ((i=baseName.find('.'))!=-1)
{
baseName=baseName.left(i);
}
baseName.prepend("dia_");
QCString outDir = Config_getString(DOCBOOK_OUTPUT);
writeDiaGraphFromFile(fileName,outDir,baseName,DIA_BITMAP);
m_t << "<para>" << endl;
visitPreStart(m_t, hasCaption, baseName + ".png", width, height);
}
void DocbookDocVisitor::startDotFile ( const QCString &  fileName,
const QCString &  width,
const QCString &  height,
bool  hasCaption 
)
private

Definition at line 1340 of file docbookvisitor.cpp.

References Config_getString, endl(), getDotImageExtension(), GOF_BITMAP, m_t, visitPreStart(), and writeDotGraphFromFile().

Referenced by visitPre().

{
QCString baseName=fileName;
int i;
if ((i=baseName.findRev('/'))!=-1)
{
baseName=baseName.right(baseName.length()-i-1);
}
if ((i=baseName.find('.'))!=-1)
{
baseName=baseName.left(i);
}
baseName.prepend("dot_");
QCString outDir = Config_getString(DOCBOOK_OUTPUT);
QCString imgExt = getDotImageExtension();
writeDotGraphFromFile(fileName,outDir,baseName,GOF_BITMAP);
m_t << "<para>" << endl;
visitPreStart(m_t, hasCaption, baseName + "." + imgExt, width, height);
}
void DocbookDocVisitor::startLink ( const QCString &  file,
const QCString &  anchor 
)
private

Definition at line 1195 of file docbookvisitor.cpp.

References m_t.

Referenced by visit(), and visitPre().

{
m_t << "<link linkend=\"" << file;
if (!anchor.isEmpty()) m_t << "_1" << anchor;
m_t << "\">";
}
void DocbookDocVisitor::startMscFile ( const QCString &  fileName,
const QCString &  width,
const QCString &  height,
bool  hasCaption 
)
private

Definition at line 1250 of file docbookvisitor.cpp.

References Config_getString, endl(), m_t, MSC_BITMAP, visitPreStart(), and writeMscGraphFromFile().

Referenced by visitPre().

{
QCString baseName=fileName;
int i;
if ((i=baseName.findRev('/'))!=-1)
{
baseName=baseName.right(baseName.length()-i-1);
}
if ((i=baseName.find('.'))!=-1)
{
baseName=baseName.left(i);
}
baseName.prepend("msc_");
QCString outDir = Config_getString(DOCBOOK_OUTPUT);
writeMscGraphFromFile(fileName,outDir,baseName,MSC_BITMAP);
m_t << "<para>" << endl;
visitPreStart(m_t, hasCaption, baseName + ".png", width, height);
}
void DocbookDocVisitor::visit ( DocWord w)
virtual

Implements DocVisitor.

Definition at line 95 of file docbookvisitor.cpp.

References filter(), m_hide, and DocWord::word().

Referenced by visitPre().

{
if (m_hide) return;
filter(w->word());
}
void DocbookDocVisitor::visit ( DocLinkedWord w)
virtual

Implements DocVisitor.

Definition at line 101 of file docbookvisitor.cpp.

References DocLinkedWord::anchor(), endLink(), DocLinkedWord::file(), filter(), m_hide, startLink(), and DocLinkedWord::word().

{
if (m_hide) return;
startLink(w->file(),w->anchor());
filter(w->word());
}
void DocbookDocVisitor::visit ( DocWhiteSpace w)
virtual

Implements DocVisitor.

Definition at line 109 of file docbookvisitor.cpp.

References DocWhiteSpace::chars(), m_hide, m_insidePre, and m_t.

{
if (m_hide) return;
{
m_t << w->chars();
}
else
{
m_t << " ";
}
}
void DocbookDocVisitor::visit ( DocSymbol s)
virtual

Implements DocVisitor.

Definition at line 122 of file docbookvisitor.cpp.

References HtmlEntityMapper::docbook(), err(), HtmlEntityMapper::instance(), m_hide, m_t, and DocSymbol::symbol().

{
if (m_hide) return;
const char *res = HtmlEntityMapper::instance()->docbook(s->symbol());
if (res)
{
m_t << res;
}
else
{
err("DocBook: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance()->html(s->symbol(),TRUE));
}
}
void DocbookDocVisitor::visit ( DocURL u)
virtual

Implements DocVisitor.

Definition at line 136 of file docbookvisitor.cpp.

References filter(), DocURL::isEmail(), m_hide, m_t, and DocURL::url().

{
if (m_hide) return;
m_t << "<link xlink:href=\"";
if (u->isEmail()) m_t << "mailto:";
filter(u->url());
m_t << "\">";
filter(u->url());
m_t << "</link>";
}
void DocbookDocVisitor::visit ( DocLineBreak )
virtual

Implements DocVisitor.

Definition at line 147 of file docbookvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << endl << "<literallayout>\n</literallayout>" << endl;
}
void DocbookDocVisitor::visit ( DocHorRuler )
virtual

Implements DocVisitor.

Definition at line 153 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<informaltable frame='bottom'><tgroup cols='1'><colspec align='center'/><tbody><row><entry align='center'>\n";
m_t << "</entry></row></tbody></tgroup></informaltable>\n";
}
void DocbookDocVisitor::visit ( DocStyleChange s)
virtual

Implements DocVisitor.

Definition at line 160 of file docbookvisitor.cpp.

References DocStyleChange::Bold, DocStyleChange::Center, DocStyleChange::Code, DocStyleChange::Div, DocStyleChange::enable(), DocStyleChange::Italic, m_hide, m_insidePre, m_t, DocStyleChange::Preformatted, DocStyleChange::Small, DocStyleChange::Span, DocStyleChange::style(), DocStyleChange::Subscript, and DocStyleChange::Superscript.

{
if (m_hide) return;
switch (s->style())
{
if (s->enable()) m_t << "<emphasis role=\"bold\">"; else m_t << "</emphasis>";
break;
if (s->enable()) m_t << "<emphasis>"; else m_t << "</emphasis>";
break;
if (s->enable()) m_t << "<computeroutput>"; else m_t << "</computeroutput>";
break;
if (s->enable()) m_t << "<subscript>"; else m_t << "</subscript>";
break;
if (s->enable()) m_t << "<superscript>"; else m_t << "</superscript>";
break;
if (s->enable()) m_t << "<informaltable frame='none'><tgroup cols='1'><colspec align='center'/><tbody><row><entry align='center'>";
else m_t << "</entry></row></tbody></tgroup></informaltable>";
break;
if (s->enable())
{
m_t << "<literallayout>";
}
else
{
m_t << "</literallayout>";
m_insidePre=FALSE;
}
break;
/* There is no equivalent Docbook tag for rendering Small text */
case DocStyleChange::Small: /* XSLT Stylesheets can be used */ break;
/* HTML only */
case DocStyleChange::Div: /* HTML only */ break;
case DocStyleChange::Span: /* HTML only */ break;
}
}
void DocbookDocVisitor::visit ( DocVerbatim s)
virtual

Implements DocVisitor.

Definition at line 204 of file docbookvisitor.cpp.

References DocVerbatim::Code, Config_getString, DocVerbatim::context(), DocVerbatim::DocbookOnly, DocVerbatim::Dot, endl(), err(), DocVerbatim::exampleFile(), filter(), getLanguageFromFileName(), ParserManager::getParser(), DocVerbatim::HtmlOnly, DocVerbatim::isExample(), DocVerbatim::LatexOnly, m_ci, m_hide, m_langExt, m_t, DocVerbatim::ManOnly, DocVerbatim::Msc, ParserInterface::parseCode(), Doxygen::parserManager, DocVerbatim::PlantUML, DocVerbatim::RtfOnly, DocVerbatim::text(), DocVerbatim::type(), DocVerbatim::Verbatim, writeDotFile(), writeMscFile(), writePlantUMLFile(), writePlantUMLSource(), and DocVerbatim::XmlOnly.

{
if (m_hide) return;
switch(s->type())
{
case DocVerbatim::Code: // fall though
m_t << "<literallayout><computeroutput>";
->parseCode(m_ci,s->context(),s->text(),langExt,
s->isExample(),s->exampleFile());
m_t << "</computeroutput></literallayout>";
break;
m_t << "<literallayout>";
filter(s->text());
m_t << "</literallayout>";
break;
break;
break;
break;
break;
break;
break;
m_t << s->text();
break;
{
static int dotindex = 1;
QCString baseName(4096);
QCString name;
QCString stext = s->text();
m_t << "<para>" << endl;
name.sprintf("%s%d", "dot_inline_dotgraph_", dotindex);
baseName.sprintf("%s%d",
(Config_getString(DOCBOOK_OUTPUT)+"/inline_dotgraph_").data(),
dotindex++
);
QFile file(baseName+".dot");
if (!file.open(IO_WriteOnly))
{
err("Could not open file %s.msc for writing\n",baseName.data());
}
file.writeBlock( stext, stext.length() );
file.close();
writeDotFile(baseName, s);
m_t << "</para>" << endl;
}
break;
{
static int mscindex = 1;
QCString baseName(4096);
QCString name;
QCString stext = s->text();
m_t << "<para>" << endl;
name.sprintf("%s%d", "msc_inline_mscgraph_", mscindex);
baseName.sprintf("%s%d",
(Config_getString(DOCBOOK_OUTPUT)+"/inline_mscgraph_").data(),
mscindex++
);
QFile file(baseName+".msc");
if (!file.open(IO_WriteOnly))
{
err("Could not open file %s.msc for writing\n",baseName.data());
}
QCString text = "msc {";
text+=stext;
text+="}";
file.writeBlock( text, text.length() );
file.close();
writeMscFile(baseName,s);
m_t << "</para>" << endl;
}
break;
{
static QCString docbookOutput = Config_getString(DOCBOOK_OUTPUT);
QCString baseName = writePlantUMLSource(docbookOutput,s->exampleFile(),s->text());
QCString shortName = baseName;
int i;
if ((i=shortName.findRev('/'))!=-1)
{
shortName=shortName.right(shortName.length()-i-1);
}
m_t << "<para>" << endl;
writePlantUMLFile(baseName,s);
m_t << "</para>" << endl;
}
break;
}
}
void DocbookDocVisitor::visit ( DocAnchor anc)
virtual

Implements DocVisitor.

Definition at line 303 of file docbookvisitor.cpp.

References DocAnchor::anchor(), DocAnchor::file(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "<anchor id=\"" << anc->file() << "_1" << anc->anchor() << "\"/>";
}
void DocbookDocVisitor::visit ( DocInclude inc)
virtual

Implements DocVisitor.

Definition at line 309 of file docbookvisitor.cpp.

References DocInclude::blockId(), DocInclude::context(), DocInclude::DontInclude, err(), DocInclude::exampleFile(), DocInclude::extension(), extractBlock(), DocInclude::file(), filter(), getLanguageFromFileName(), ParserManager::getParser(), DocInclude::HtmlInclude, DocInclude::Include, DocInclude::IncludeDoc, DocInclude::IncWithLines, DocInclude::isExample(), DocInclude::LatexInclude, m_ci, m_hide, m_t, parseCode(), Doxygen::parserManager, DocInclude::Snippet, DocInclude::SnippetDoc, DocInclude::text(), DocInclude::type(), and DocInclude::VerbInclude.

{
if (m_hide) return;
switch(inc->type())
{
{
m_t << "<literallayout><computeroutput>";
QFileInfo cfi( inc->file() );
FileDef fd( cfi.dirPath().utf8(), cfi.fileName().utf8() );
inc->text(),
langExt,
inc->isExample(),
inc->exampleFile(), &fd);
m_t << "</computeroutput></literallayout>";
}
break;
m_t << "<literallayout><computeroutput>";
inc->text(),
langExt,
inc->isExample(),
inc->exampleFile());
m_t << "</computeroutput></literallayout>";
break;
break;
break;
break;
m_t << "<verbatim>";
filter(inc->text());
m_t << "</verbatim>";
break;
m_t << "<literallayout><computeroutput>";
inc->context(),
extractBlock(inc->text(),inc->blockId()),
langExt,
inc->isExample(),
inc->exampleFile()
);
m_t << "</computeroutput></literallayout>";
break;
err("Internal inconsistency: found switch SnippetDoc / IncludeDoc in file: %s"
"Please create a bug report\n",__FILE__);
break;
}
}
void DocbookDocVisitor::visit ( DocIncOperator op)
virtual
void DocbookDocVisitor::visit ( DocFormula f)
virtual

Implements DocVisitor.

Definition at line 406 of file docbookvisitor.cpp.

References filter(), m_hide, m_t, DocFormula::name(), and DocFormula::text().

{
if (m_hide) return;
m_t << "<equation><title>" << f->name() << "</title>";
filter(f->text());
m_t << "</equation>";
}
void DocbookDocVisitor::visit ( DocIndexEntry ie)
virtual

Implements DocVisitor.

Definition at line 414 of file docbookvisitor.cpp.

References endl(), DocIndexEntry::entry(), filter(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "<indexentry><primaryie>" << endl;
filter(ie->entry());
m_t << "</primaryie><secondaryie></secondaryie></indexentry>" << endl;
}
void DocbookDocVisitor::visit ( DocSimpleSectSep )
virtual

Implements DocVisitor.

Definition at line 422 of file docbookvisitor.cpp.

References m_t.

{
m_t << "<simplesect/>";
}
void DocbookDocVisitor::visit ( DocCite cite)
virtual

Implements DocVisitor.

Definition at line 427 of file docbookvisitor.cpp.

References DocCite::anchor(), endLink(), DocCite::file(), filter(), m_hide, startLink(), and DocCite::text().

{
if (m_hide) return;
if (!cite->file().isEmpty()) startLink(cite->file(),cite->anchor());
filter(cite->text());
if (!cite->file().isEmpty()) endLink();
}
void DocbookDocVisitor::visitPost ( DocAutoList l)
virtual

Implements DocVisitor.

Definition at line 452 of file docbookvisitor.cpp.

References DocAutoList::isEnumList(), m_hide, and m_t.

{
if (m_hide) return;
if (l->isEnumList())
{
m_t << "</orderedlist>\n";
}
else
{
m_t << "</itemizedlist>\n";
}
}
void DocbookDocVisitor::visitPost ( DocAutoListItem )
virtual

Implements DocVisitor.

Definition at line 471 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</listitem>";
}
void DocbookDocVisitor::visitPost ( DocPara )
virtual

Implements DocVisitor.

Definition at line 484 of file docbookvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "</para>";
m_t << endl;
}
void DocbookDocVisitor::visitPost ( DocRoot )
virtual

Implements DocVisitor.

Definition at line 496 of file docbookvisitor.cpp.

{
//m_t << "<hr><h4><font color=\"red\">Old parser:</font></h4>\n";
}
void DocbookDocVisitor::visitPost ( DocSimpleSect )
virtual

Implements DocVisitor.

Definition at line 666 of file docbookvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "</formalpara>" << endl;
}
void DocbookDocVisitor::visitPost ( DocTitle )
virtual

Implements DocVisitor.

Definition at line 678 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</title>";
}
void DocbookDocVisitor::visitPost ( DocSimpleList )
virtual

Implements DocVisitor.

Definition at line 690 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</itemizedlist>\n";
}
void DocbookDocVisitor::visitPost ( DocSimpleListItem )
virtual

Implements DocVisitor.

Definition at line 702 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</listitem>\n";
}
void DocbookDocVisitor::visitPost ( DocSection )
virtual

Implements DocVisitor.

Definition at line 719 of file docbookvisitor.cpp.

References m_t.

{
m_t << "</section>\n";
}
void DocbookDocVisitor::visitPost ( DocHtmlList s)
virtual

Implements DocVisitor.

Definition at line 733 of file docbookvisitor.cpp.

References m_hide, m_t, DocHtmlList::Ordered, and DocHtmlList::type().

{
if (m_hide) return;
m_t << "</orderedlist>\n";
else
m_t << "</itemizedlist>\n";
}
void DocbookDocVisitor::visitPost ( DocHtmlListItem )
virtual

Implements DocVisitor.

Definition at line 748 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</listitem>\n";
}
void DocbookDocVisitor::visitPost ( DocHtmlDescList )
virtual

Implements DocVisitor.

Definition at line 760 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</variablelist>\n";
}
void DocbookDocVisitor::visitPost ( DocHtmlDescTitle )
virtual

Implements DocVisitor.

Definition at line 772 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</term>\n";
}
void DocbookDocVisitor::visitPost ( DocHtmlDescData )
virtual

Implements DocVisitor.

Definition at line 784 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</listitem></varlistentry>\n";
}
void DocbookDocVisitor::visitPost ( DocHtmlTable )
virtual

Implements DocVisitor.

Definition at line 799 of file docbookvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << " </tbody>" << endl;
m_t << " </tgroup>" << endl;
m_t << "</table>" << endl;
}
void DocbookDocVisitor::visitPost ( DocHtmlRow )
virtual

Implements DocVisitor.

Definition at line 813 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</row>\n";
}
void DocbookDocVisitor::visitPost ( DocHtmlCell )
virtual

Implements DocVisitor.

Definition at line 825 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</entry>";
}
void DocbookDocVisitor::visitPost ( DocHtmlCaption )
virtual

Implements DocVisitor.

Definition at line 837 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</caption>\n";
}
void DocbookDocVisitor::visitPost ( DocInternal )
virtual

Implements DocVisitor.

Definition at line 849 of file docbookvisitor.cpp.

References m_hide.

{
if (m_hide) return;
// TODO: to be implemented
}
void DocbookDocVisitor::visitPost ( DocHRef )
virtual

Implements DocVisitor.

Definition at line 861 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</link>";
}
void DocbookDocVisitor::visitPost ( DocHtmlHeader )
virtual

Implements DocVisitor.

Definition at line 873 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</title></formalpara>\n";
}
void DocbookDocVisitor::visitPost ( DocImage img)
virtual

Implements DocVisitor.

Definition at line 900 of file docbookvisitor.cpp.

References FileDef::absFilePath(), Config_getString, DocImage::DocBook, findFileDef(), Doxygen::imageNameDict, m_hide, m_t, DocImage::name(), popEnabled(), DocImage::type(), and visitPostEnd().

{
if (img->type()==DocImage::DocBook)
{
if (m_hide) return;
visitPostEnd(m_t, img -> hasCaption());
// copy the image to the output dir
QCString baseName=img->name();
int i;
if ((i=baseName.findRev('/'))!=-1 || (i=baseName.findRev('\\'))!=-1)
{
baseName=baseName.right(baseName.length()-i-1);
}
QCString m_file;
bool ambig;
if (fd)
{
m_file=fd->absFilePath();
}
QFile inImage(m_file);
QFile outImage(Config_getString(DOCBOOK_OUTPUT)+"/"+baseName.data());
if (inImage.open(IO_ReadOnly))
{
if (outImage.open(IO_WriteOnly))
{
char *buffer = new char[inImage.size()];
inImage.readBlock(buffer,inImage.size());
outImage.writeBlock(buffer,inImage.size());
outImage.flush();
delete[] buffer;
}
}
}
else
{
}
}
void DocbookDocVisitor::visitPost ( DocDotFile df)
virtual

Implements DocVisitor.

Definition at line 946 of file docbookvisitor.cpp.

References endDotFile(), DocDotFile::hasCaption(), and m_hide.

{
if (m_hide) return;
}
void DocbookDocVisitor::visitPost ( DocMscFile df)
virtual

Implements DocVisitor.

Definition at line 958 of file docbookvisitor.cpp.

References endMscFile(), DocMscFile::hasCaption(), and m_hide.

{
if (m_hide) return;
}
void DocbookDocVisitor::visitPost ( DocDiaFile df)
virtual

Implements DocVisitor.

Definition at line 969 of file docbookvisitor.cpp.

References endDiaFile(), DocDiaFile::hasCaption(), and m_hide.

{
if (m_hide) return;
}
void DocbookDocVisitor::visitPost ( DocLink )
virtual

Implements DocVisitor.

Definition at line 981 of file docbookvisitor.cpp.

References endLink(), and m_hide.

{
if (m_hide) return;
}
void DocbookDocVisitor::visitPost ( DocRef ref)
virtual

Implements DocVisitor.

Definition at line 994 of file docbookvisitor.cpp.

References endLink(), DocRef::file(), and m_hide.

{
if (m_hide) return;
if (!ref->file().isEmpty()) endLink();
}
void DocbookDocVisitor::visitPost ( DocSecRefItem )
virtual

Implements DocVisitor.

Definition at line 1006 of file docbookvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "</tocitem>" << endl;
}
void DocbookDocVisitor::visitPost ( DocSecRefList )
virtual

Implements DocVisitor.

Definition at line 1018 of file docbookvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "</toclist>" << endl;
}
void DocbookDocVisitor::visitPost ( DocParamSect )
virtual

Implements DocVisitor.

Definition at line 1048 of file docbookvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << " </tbody>" << endl;
m_t << " </tgroup>" << endl;
m_t << " </table>" << endl;
m_t << " </formalpara>" << endl;
m_t << " ";
}
void DocbookDocVisitor::visitPost ( DocParamList )
virtual

Implements DocVisitor.

Definition at line 1093 of file docbookvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "</entry>" << endl;
m_t << " </row>" << endl;
}
void DocbookDocVisitor::visitPost ( DocXRefItem x)
virtual

Implements DocVisitor.

Definition at line 1112 of file docbookvisitor.cpp.

References m_hide, m_t, and DocXRefItem::title().

{
if (m_hide) return;
if (x->title().isEmpty()) return;
m_t << "</para>";
}
void DocbookDocVisitor::visitPost ( DocInternalRef )
virtual

Implements DocVisitor.

Definition at line 1125 of file docbookvisitor.cpp.

References endLink(), m_hide, and m_t.

{
if (m_hide) return;
m_t << " ";
}
void DocbookDocVisitor::visitPost ( DocCopy )
virtual

Implements DocVisitor.

Definition at line 1139 of file docbookvisitor.cpp.

References m_hide.

{
if (m_hide) return;
// TODO: to be implemented
}
void DocbookDocVisitor::visitPost ( DocText )
virtual

Implements DocVisitor.

Definition at line 1152 of file docbookvisitor.cpp.

{
// TODO: to be implemented
}
void DocbookDocVisitor::visitPost ( DocHtmlBlockQuote )
virtual

Implements DocVisitor.

Definition at line 1164 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "</blockquote>";
}
void DocbookDocVisitor::visitPost ( DocVhdlFlow )
virtual

Implements DocVisitor.

Definition at line 1176 of file docbookvisitor.cpp.

{
// TODO: to be implemented
}
void DocbookDocVisitor::visitPost ( DocParBlock )
virtual

Implements DocVisitor.

Definition at line 1185 of file docbookvisitor.cpp.

{
}
void DocbookDocVisitor::visitPre ( DocAutoList l)
virtual

Implements DocVisitor.

Definition at line 439 of file docbookvisitor.cpp.

References DocAutoList::isEnumList(), m_hide, and m_t.

{
if (m_hide) return;
if (l->isEnumList())
{
m_t << "<orderedlist>\n";
}
else
{
m_t << "<itemizedlist>\n";
}
}
void DocbookDocVisitor::visitPre ( DocAutoListItem )
virtual

Implements DocVisitor.

Definition at line 465 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<listitem>";
}
void DocbookDocVisitor::visitPre ( DocPara )
virtual

Implements DocVisitor.

Definition at line 477 of file docbookvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << endl;
m_t << "<para>";
}
void DocbookDocVisitor::visitPre ( DocRoot )
virtual

Implements DocVisitor.

Definition at line 491 of file docbookvisitor.cpp.

{
//m_t << "<hr><h4><font color=\"red\">New parser:</font></h4>\n";
}
void DocbookDocVisitor::visitPre ( DocSimpleSect s)
virtual

Implements DocVisitor.

Definition at line 501 of file docbookvisitor.cpp.

References DocSimpleSect::Attention, DocSimpleSect::Author, DocSimpleSect::Authors, convertToXML(), DocSimpleSect::Copyright, DocSimpleSect::Date, endl(), DocSimpleSect::Invar, m_hide, m_insidePre, m_t, DocSimpleSect::Note, DocSimpleSect::Post, DocSimpleSect::Pre, DocSimpleSect::Rcs, DocSimpleSect::Remark, DocSimpleSect::Return, DocSimpleSect::See, DocSimpleSect::Since, theTranslator, Translator::trAttention(), Translator::trAuthor(), Translator::trCopyright(), Translator::trDate(), Translator::trInvariant(), Translator::trNote(), Translator::trPostcondition(), Translator::trPrecondition(), Translator::trRemarks(), Translator::trReturns(), Translator::trSeeAlso(), Translator::trSince(), Translator::trVersion(), Translator::trWarning(), DocSimpleSect::type(), DocSimpleSect::Unknown, DocSimpleSect::User, DocSimpleSect::Version, and DocSimpleSect::Warning.

{
if (m_hide) return;
switch(s->type())
{
{
m_t << "<formalpara><title>" << theTranslator->trSeeAlso() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trSeeAlso()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trReturns()<< ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trReturns()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trAuthor(TRUE, TRUE) << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trAuthor(TRUE, TRUE)) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trAuthor(TRUE, FALSE) << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trAuthor(TRUE, FALSE)) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trVersion() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trVersion()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trSince() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trSince()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trDate() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trDate()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trNote() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trNote()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trWarning() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trWarning()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trPrecondition() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trPrecondition()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trPostcondition() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trPostcondition()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trCopyright() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trCopyright()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trInvariant() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trInvariant()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trRemarks() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trRemarks()) << ": </title>" << endl;
}
break;
{
m_t << "<formalpara><title>" << theTranslator->trAttention() << ": </title>" << endl;
}
else
{
m_t << "<formalpara><title>" << convertToXML(theTranslator->trAttention()) << ": </title>" << endl;
}
break;
m_t << "<formalpara><title></title>" << endl;
break;
m_t << "<formalpara><title></title>" << endl;
break;
case DocSimpleSect::Unknown: m_t << "<formalpara><title></title>" << endl; break;
}
}
void DocbookDocVisitor::visitPre ( DocTitle )
virtual

Implements DocVisitor.

Definition at line 672 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<title>";
}
void DocbookDocVisitor::visitPre ( DocSimpleList )
virtual

Implements DocVisitor.

Definition at line 684 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<itemizedlist>\n";
}
void DocbookDocVisitor::visitPre ( DocSimpleListItem )
virtual

Implements DocVisitor.

Definition at line 696 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<listitem>";
}
void DocbookDocVisitor::visitPre ( DocSection s)
virtual

Implements DocVisitor.

Definition at line 708 of file docbookvisitor.cpp.

References DocSection::anchor(), endl(), DocSection::file(), filter(), m_hide, m_t, and DocSection::title().

{
if (m_hide) return;
m_t << "<section xml:id=\"" << s->file();
if (!s->anchor().isEmpty()) m_t << "_1" << s->anchor();
m_t << "\">" << endl;
m_t << "<title>";
filter(s->title());
m_t << "</title>" << endl;
}
void DocbookDocVisitor::visitPre ( DocHtmlList s)
virtual

Implements DocVisitor.

Definition at line 724 of file docbookvisitor.cpp.

References m_hide, m_t, DocHtmlList::Ordered, and DocHtmlList::type().

{
if (m_hide) return;
m_t << "<orderedlist>\n";
else
m_t << "<itemizedlist>\n";
}
void DocbookDocVisitor::visitPre ( DocHtmlListItem )
virtual

Implements DocVisitor.

Definition at line 742 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<listitem>\n";
}
void DocbookDocVisitor::visitPre ( DocHtmlDescList )
virtual

Implements DocVisitor.

Definition at line 754 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<variablelist>\n";
}
void DocbookDocVisitor::visitPre ( DocHtmlDescTitle )
virtual

Implements DocVisitor.

Definition at line 766 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<varlistentry><term>";
}
void DocbookDocVisitor::visitPre ( DocHtmlDescData )
virtual

Implements DocVisitor.

Definition at line 778 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<listitem>";
}
void DocbookDocVisitor::visitPre ( DocHtmlTable t)
virtual

Implements DocVisitor.

Definition at line 790 of file docbookvisitor.cpp.

References endl(), m_hide, m_t, and DocHtmlTable::numColumns().

{
if (m_hide) return;
m_t << "<table frame=\"all\">" << endl;
m_t << " <title></title>" << endl;
m_t << " <tgroup cols=\"" << t->numColumns() << "\" align=\"left\" colsep=\"1\" rowsep=\"1\">" << endl;
m_t << " <tbody>" << endl;
}
void DocbookDocVisitor::visitPre ( DocHtmlRow )
virtual

Implements DocVisitor.

Definition at line 807 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<row>\n";
}
void DocbookDocVisitor::visitPre ( DocHtmlCell )
virtual

Implements DocVisitor.

Definition at line 819 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<entry>";
}
void DocbookDocVisitor::visitPre ( DocHtmlCaption )
virtual

Implements DocVisitor.

Definition at line 831 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<caption>";
}
void DocbookDocVisitor::visitPre ( DocInternal )
virtual

Implements DocVisitor.

Definition at line 843 of file docbookvisitor.cpp.

References m_hide.

{
if (m_hide) return;
// TODO: to be implemented
}
void DocbookDocVisitor::visitPre ( DocHRef href)
virtual

Implements DocVisitor.

Definition at line 855 of file docbookvisitor.cpp.

References m_hide, m_t, and DocHRef::url().

{
if (m_hide) return;
m_t << "<link xlink:href=\"" << href->url() << "\">";
}
void DocbookDocVisitor::visitPre ( DocHtmlHeader )
virtual

Implements DocVisitor.

Definition at line 867 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<formalpara><title>";
}
void DocbookDocVisitor::visitPre ( DocImage img)
virtual

Implements DocVisitor.

Definition at line 879 of file docbookvisitor.cpp.

References DocImage::DocBook, endl(), m_hide, m_t, DocImage::name(), pushEnabled(), DocImage::type(), and visitPreStart().

{
if (img->type()==DocImage::DocBook)
{
if (m_hide) return;
m_t << endl;
QCString baseName=img->name();
int i;
if ((i=baseName.findRev('/'))!=-1 || (i=baseName.findRev('\\'))!=-1)
{
baseName=baseName.right(baseName.length()-i-1);
}
visitPreStart(m_t, img -> hasCaption(), baseName, img -> width(), img -> height());
}
else
{
m_hide=TRUE;
}
}
void DocbookDocVisitor::visitPre ( DocDotFile df)
virtual

Implements DocVisitor.

Definition at line 940 of file docbookvisitor.cpp.

References DocDotFile::file(), DocDotFile::hasCaption(), DocDotFile::height(), m_hide, startDotFile(), and DocDotFile::width().

{
if (m_hide) return;
startDotFile(df->file(),df->width(),df->height(),df->hasCaption());
}
void DocbookDocVisitor::visitPre ( DocMscFile df)
virtual

Implements DocVisitor.

Definition at line 952 of file docbookvisitor.cpp.

References DocMscFile::file(), DocMscFile::hasCaption(), DocMscFile::height(), m_hide, startMscFile(), and DocMscFile::width().

{
if (m_hide) return;
startMscFile(df->file(),df->width(),df->height(),df->hasCaption());
}
void DocbookDocVisitor::visitPre ( DocDiaFile df)
virtual

Implements DocVisitor.

Definition at line 963 of file docbookvisitor.cpp.

References DocDiaFile::file(), DocDiaFile::hasCaption(), DocDiaFile::height(), m_hide, startDiaFile(), and DocDiaFile::width().

{
if (m_hide) return;
startDiaFile(df->file(),df->width(),df->height(),df->hasCaption());
}
void DocbookDocVisitor::visitPre ( DocLink lnk)
virtual

Implements DocVisitor.

Definition at line 975 of file docbookvisitor.cpp.

References DocLink::anchor(), DocLink::file(), m_hide, and startLink().

{
if (m_hide) return;
startLink(lnk->file(),lnk->anchor());
}
void DocbookDocVisitor::visitPre ( DocRef ref)
virtual

Implements DocVisitor.

Definition at line 987 of file docbookvisitor.cpp.

References DocRef::anchor(), DocRef::file(), filter(), DocRef::hasLinkText(), m_hide, startLink(), and DocRef::targetTitle().

{
if (m_hide) return;
if (!ref->file().isEmpty()) startLink(ref->file(),ref->anchor());
if (!ref->hasLinkText()) filter(ref->targetTitle());
}
void DocbookDocVisitor::visitPre ( DocSecRefItem ref)
virtual

Implements DocVisitor.

Definition at line 1000 of file docbookvisitor.cpp.

References DocSecRefItem::anchor(), DocSecRefItem::file(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "<tocitem id=\"" << ref->file() << "_1" << ref->anchor() << "\">";
}
void DocbookDocVisitor::visitPre ( DocSecRefList )
virtual

Implements DocVisitor.

Definition at line 1012 of file docbookvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "<toclist>" << endl;
}
void DocbookDocVisitor::visitPre ( DocParamSect s)
virtual

Implements DocVisitor.

Definition at line 1024 of file docbookvisitor.cpp.

References endl(), DocParamSect::Exception, m_hide, m_t, DocParamSect::Param, DocParamSect::RetVal, DocParamSect::TemplateParam, theTranslator, Translator::trExceptions(), Translator::trParameters(), Translator::trReturnValues(), Translator::trTemplateParameters(), and DocParamSect::type().

{
if (m_hide) return;
m_t << endl;
m_t << " <formalpara>" << endl;
m_t << " <title/>" << endl;
m_t << " <table frame=\"all\">" << endl;
m_t << " <title>";
switch(s->type())
{
default:
ASSERT(0);
}
m_t << " </title>" << endl;
m_t << " <tgroup cols=\"2\" align=\"left\" colsep=\"1\" rowsep=\"1\">" << endl;
m_t << " <colspec colwidth=\"1*\"/>" << endl;
m_t << " <colspec colwidth=\"4*\"/>" << endl;
m_t << " <tbody>" << endl;
}
void DocbookDocVisitor::visitPre ( DocParamList pl)
virtual

Implements DocVisitor.

Definition at line 1058 of file docbookvisitor.cpp.

References endl(), DocNode::Kind_LinkedWord, DocNode::Kind_Word, m_hide, m_t, DocParamList::parameters(), and visit().

{
if (m_hide) return;
QListIterator<DocNode> li(pl->parameters());
DocNode *param;
m_t << " <row>" << endl;
if (!li.toFirst())
{
m_t << " <entry></entry>" << endl;
}
else
{
m_t << " <entry>";
int cnt = 0;
for (li.toFirst();(param=li.current());++li)
{
if (cnt)
{
m_t << ", ";
}
if (param->kind()==DocNode::Kind_Word)
{
visit((DocWord*)param);
}
else if (param->kind()==DocNode::Kind_LinkedWord)
{
visit((DocLinkedWord*)param);
}
cnt++;
}
m_t << "</entry>" << endl;
}
m_t << " <entry>";
}
void DocbookDocVisitor::visitPre ( DocXRefItem x)
virtual

Implements DocVisitor.

Definition at line 1100 of file docbookvisitor.cpp.

References DocXRefItem::anchor(), DocXRefItem::file(), filter(), m_hide, m_t, and DocXRefItem::title().

{
if (m_hide) return;
if (x->title().isEmpty()) return;
m_t << "<para><link linkend=\"";
m_t << x->file() << "_1" << x->anchor();
m_t << "\">";
filter(x->title());
m_t << "</link>";
m_t << " ";
}
void DocbookDocVisitor::visitPre ( DocInternalRef ref)
virtual

Implements DocVisitor.

Definition at line 1119 of file docbookvisitor.cpp.

References DocInternalRef::anchor(), DocInternalRef::file(), m_hide, and startLink().

{
if (m_hide) return;
startLink(ref->file(),ref->anchor());
}
void DocbookDocVisitor::visitPre ( DocCopy )
virtual

Implements DocVisitor.

Definition at line 1132 of file docbookvisitor.cpp.

References m_hide.

{
if (m_hide) return;
// TODO: to be implemented
}
void DocbookDocVisitor::visitPre ( DocText )
virtual

Implements DocVisitor.

Definition at line 1146 of file docbookvisitor.cpp.

{
// TODO: to be implemented
}
void DocbookDocVisitor::visitPre ( DocHtmlBlockQuote )
virtual

Implements DocVisitor.

Definition at line 1158 of file docbookvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "<blockquote>";
}
void DocbookDocVisitor::visitPre ( DocVhdlFlow )
virtual

Implements DocVisitor.

Definition at line 1170 of file docbookvisitor.cpp.

{
// TODO: to be implemented
}
void DocbookDocVisitor::visitPre ( DocParBlock )
virtual

Implements DocVisitor.

Definition at line 1181 of file docbookvisitor.cpp.

{
}
void DocbookDocVisitor::writeDiaFile ( const QCString &  fileName,
DocVerbatim s 
)
private

Definition at line 1280 of file docbookvisitor.cpp.

References DocVerbatim::children(), Config_getString, DIA_BITMAP, DocVerbatim::hasCaption(), DocVerbatim::height(), m_t, visitCaption(), visitPostEnd(), visitPreStart(), DocVerbatim::width(), and writeDiaGraphFromFile().

{
QCString shortName = baseName;
int i;
if ((i=shortName.findRev('/'))!=-1)
{
shortName=shortName.right(shortName.length()-i-1);
}
QCString outDir = Config_getString(DOCBOOK_OUTPUT);
writeDiaGraphFromFile(baseName+".dia",outDir,shortName,DIA_BITMAP);
visitPreStart(m_t, s->hasCaption(), shortName, s->width(),s->height());
visitCaption(this, s->children());
}
void DocbookDocVisitor::writeDotFile ( const QCString &  fileName,
DocVerbatim s 
)
private

Definition at line 1325 of file docbookvisitor.cpp.

References DocVerbatim::children(), Config_getString, GOF_BITMAP, DocVerbatim::hasCaption(), DocVerbatim::height(), m_t, visitCaption(), visitPostEnd(), visitPreStart(), DocVerbatim::width(), and writeDotGraphFromFile().

Referenced by visit().

{
QCString shortName = baseName;
int i;
if ((i=shortName.findRev('/'))!=-1)
{
shortName=shortName.right(shortName.length()-i-1);
}
QCString outDir = Config_getString(DOCBOOK_OUTPUT);
writeDotGraphFromFile(baseName+".dot",outDir,shortName,GOF_BITMAP);
visitPreStart(m_t, s->hasCaption(), baseName + ".dot", s->width(),s->height());
visitCaption(this, s->children());
}
void DocbookDocVisitor::writeMscFile ( const QCString &  fileName,
DocVerbatim s 
)
private

Definition at line 1220 of file docbookvisitor.cpp.

References DocVerbatim::children(), Config_getString, DocVerbatim::hasCaption(), DocVerbatim::height(), m_t, MSC_BITMAP, visitCaption(), visitPostEnd(), visitPreStart(), DocVerbatim::width(), and writeMscGraphFromFile().

Referenced by visit().

{
QCString shortName = baseName;
int i;
if ((i=shortName.findRev('/'))!=-1)
{
shortName=shortName.right(shortName.length()-i-1);
}
QCString outDir = Config_getString(DOCBOOK_OUTPUT);
writeMscGraphFromFile(baseName+".msc",outDir,shortName,MSC_BITMAP);
visitPreStart(m_t, s->hasCaption(), shortName, s->width(),s->height());
visitCaption(this, s->children());
}
void DocbookDocVisitor::writePlantUMLFile ( const QCString &  fileName,
DocVerbatim s 
)
private

Definition at line 1235 of file docbookvisitor.cpp.

References DocVerbatim::children(), Config_getString, generatePlantUMLOutput(), DocVerbatim::hasCaption(), DocVerbatim::height(), m_t, PUML_BITMAP, visitCaption(), visitPostEnd(), visitPreStart(), and DocVerbatim::width().

Referenced by visit().

{
QCString shortName = baseName;
int i;
if ((i=shortName.findRev('/'))!=-1)
{
shortName=shortName.right(shortName.length()-i-1);
}
QCString outDir = Config_getString(DOCBOOK_OUTPUT);
visitPreStart(m_t, s->hasCaption(), shortName, s->width(),s->height());
visitCaption(this, s->children());
}

Member Data Documentation

CodeOutputInterface& DocbookDocVisitor::m_ci
private

Definition at line 164 of file docbookvisitor.h.

Referenced by visit().

QStack<bool> DocbookDocVisitor::m_enabled
private

Definition at line 167 of file docbookvisitor.h.

Referenced by popEnabled(), and pushEnabled().

bool DocbookDocVisitor::m_hide
private
bool DocbookDocVisitor::m_insidePre
private

Definition at line 165 of file docbookvisitor.h.

Referenced by visit(), and visitPre().

QCString DocbookDocVisitor::m_langExt
private

Definition at line 168 of file docbookvisitor.h.

Referenced by visit().

FTextStream& DocbookDocVisitor::m_t
private

The documentation for this class was generated from the following files: