42 t <<
" <figure>" <<
endl;
43 t <<
" <title></title>" <<
endl;
44 t <<
" <mediaobject>" <<
endl;
45 t <<
" <imageobject>" <<
endl;
53 t <<
" width=\"50%\"";
59 t <<
" align=\"center\" valign=\"middle\" scalefit=\"1\" fileref=\"" << name <<
"\">";
60 t <<
"</imagedata>" <<
endl;
61 t <<
" </imageobject>" <<
endl;
64 t <<
" <caption>" <<
endl;
73 t <<
" </caption>" <<
endl;
75 t <<
" </mediaobject>" <<
endl;
76 t <<
" </figure>" <<
endl;
139 m_t <<
"<link xlink:href=\"";
150 m_t <<
endl <<
"<literallayout>\n</literallayout>" <<
endl;
156 m_t <<
"<informaltable frame='bottom'><tgroup cols='1'><colspec align='center'/><tbody><row><entry align='center'>\n";
157 m_t <<
"</entry></row></tbody></tgroup></informaltable>\n";
166 if (s->
enable())
m_t <<
"<emphasis role=\"bold\">";
else m_t <<
"</emphasis>";
169 if (s->
enable())
m_t <<
"<emphasis>";
else m_t <<
"</emphasis>";
172 if (s->
enable())
m_t <<
"<computeroutput>";
else m_t <<
"</computeroutput>";
175 if (s->
enable())
m_t <<
"<subscript>";
else m_t <<
"</subscript>";
178 if (s->
enable())
m_t <<
"<superscript>";
else m_t <<
"</superscript>";
181 if (s->
enable())
m_t <<
"<informaltable frame='none'><tgroup cols='1'><colspec align='center'/><tbody><row><entry align='center'>";
182 else m_t <<
"</entry></row></tbody></tgroup></informaltable>";
187 m_t <<
"<literallayout>";
192 m_t <<
"</literallayout>";
211 m_t <<
"<literallayout><computeroutput>";
215 m_t <<
"</computeroutput></literallayout>";
218 m_t <<
"<literallayout>";
220 m_t <<
"</literallayout>";
238 static int dotindex = 1;
242 m_t <<
"<para>" <<
endl;
243 name.
sprintf(
"%s%d",
"dot_inline_dotgraph_", dotindex);
251 err(
"Could not open file %s.msc for writing\n",baseName.
data());
256 m_t <<
"</para>" <<
endl;
261 static int mscindex = 1;
265 m_t <<
"<para>" <<
endl;
266 name.
sprintf(
"%s%d",
"msc_inline_mscgraph_", mscindex);
274 err(
"Could not open file %s.msc for writing\n",baseName.
data());
282 m_t <<
"</para>" <<
endl;
291 if ((i=shortName.findRev(
'/'))!=-1)
293 shortName=shortName.
right(shortName.length()-i-1);
295 m_t <<
"<para>" <<
endl;
297 m_t <<
"</para>" <<
endl;
306 m_t <<
"<anchor id=\"" << anc->
file() <<
"_1" << anc->
anchor() <<
"\"/>";
317 m_t <<
"<literallayout><computeroutput>";
319 FileDef fd( cfi.dirPath().utf8(), cfi.fileName().utf8() );
326 m_t <<
"</computeroutput></literallayout>";
330 m_t <<
"<literallayout><computeroutput>";
337 m_t <<
"</computeroutput></literallayout>";
348 m_t <<
"</verbatim>";
351 m_t <<
"<literallayout><computeroutput>";
360 m_t <<
"</computeroutput></literallayout>";
371 m_t <<
"<programlisting>";
404 m_t <<
"<equation><title>" << f->
name() <<
"</title>";
406 m_t <<
"</equation>";
412 m_t <<
"<indexentry><primaryie>" <<
endl;
414 m_t <<
"</primaryie><secondaryie></secondaryie></indexentry>" <<
endl;
419 m_t <<
"<simplesect/>";
439 m_t <<
"<orderedlist>\n";
443 m_t <<
"<itemizedlist>\n";
452 m_t <<
"</orderedlist>\n";
456 m_t <<
"</itemizedlist>\n";
469 m_t <<
"</listitem>";
652 m_t <<
"<formalpara><title></title>" <<
endl;
655 m_t <<
"<formalpara><title></title>" <<
endl;
664 m_t <<
"</formalpara>" <<
endl;
682 m_t <<
"<itemizedlist>\n";
688 m_t <<
"</itemizedlist>\n";
700 m_t <<
"</listitem>\n";
706 m_t <<
"<section xml:id=\"" << s->
file();
716 m_t <<
"</section>\n";
723 m_t <<
"<orderedlist>\n";
725 m_t <<
"<itemizedlist>\n";
732 m_t <<
"</orderedlist>\n";
734 m_t <<
"</itemizedlist>\n";
740 m_t <<
"<listitem>\n";
746 m_t <<
"</listitem>\n";
752 m_t <<
"<variablelist>\n";
758 m_t <<
"</variablelist>\n";
764 m_t <<
"<varlistentry><term>";
782 m_t <<
"</listitem></varlistentry>\n";
788 m_t <<
"<table frame=\"all\">" <<
endl;
789 m_t <<
" <title></title>" <<
endl;
790 m_t <<
" <tgroup cols=\"" << t->
numColumns() <<
"\" align=\"left\" colsep=\"1\" rowsep=\"1\">" <<
endl;
835 m_t <<
"</caption>\n";
853 m_t <<
"<link xlink:href=\"" << href->
url() <<
"\">";
865 m_t <<
"<formalpara><title>";
871 m_t <<
"</title></formalpara>\n";
882 if ((i=baseName.
findRev(
'/'))!=-1 || (i=baseName.
findRev(
'\\'))!=-1)
886 visitPreStart(
m_t, img -> hasCaption(), baseName, img -> width(), img -> height());
904 if ((i=baseName.
findRev(
'/'))!=-1 || (i=baseName.
findRev(
'\\'))!=-1)
915 QFile inImage(m_file);
921 char *buffer =
new char[inImage.
size()];
923 outImage.writeBlock(buffer,inImage.
size());
998 m_t <<
"<tocitem id=\"" << ref->
file() <<
"_1" << ref->
anchor() <<
"\">";
1023 m_t <<
" <formalpara>" <<
endl;
1025 m_t <<
" <table frame=\"all\">" <<
endl;
1037 m_t <<
" <tgroup cols=\"2\" align=\"left\" colsep=\"1\" rowsep=\"1\">" <<
endl;
1038 m_t <<
" <colspec colwidth=\"1*\"/>" <<
endl;
1039 m_t <<
" <colspec colwidth=\"4*\"/>" <<
endl;
1049 m_t <<
" </formalpara>" <<
endl;
1061 m_t <<
" <entry></entry>" <<
endl;
1067 for (li.toFirst();(param=li.
current());++li)
1099 m_t <<
"<para><link linkend=\"";
1156 m_t <<
"<blockquote>";
1162 m_t <<
"</blockquote>";
1192 m_t <<
"<link linkend=\"" <<
file;
1193 if (!anchor.
isEmpty())
m_t <<
"_1" << anchor;
1219 if ((i=shortName.
findRev(
'/'))!=-1)
1221 shortName=shortName.
right(shortName.
length()-i-1);
1234 if ((i=shortName.
findRev(
'/'))!=-1)
1236 shortName=shortName.
right(shortName.
length()-i-1);
1253 if ((i=baseName.
findRev(
'/'))!=-1)
1257 if ((i=baseName.
find(
'.'))!=-1)
1259 baseName=baseName.
left(i);
1279 if ((i=shortName.
findRev(
'/'))!=-1)
1281 shortName=shortName.
right(shortName.
length()-i-1);
1298 if ((i=baseName.
findRev(
'/'))!=-1)
1302 if ((i=baseName.
find(
'.'))!=-1)
1304 baseName=baseName.
left(i);
1324 if ((i=shortName.
findRev(
'/'))!=-1)
1326 shortName=shortName.
right(shortName.
length()-i-1);
1343 if ((i=baseName.
findRev(
'/'))!=-1)
1347 if ((i=baseName.
find(
'.'))!=-1)
1349 baseName=baseName.
left(i);
QCString convertToXML(const char *s)
QCString exampleFile() const
virtual QCString trPrecondition()=0
virtual QCString trSince()=0
ParserInterface * getParser(const char *extension)
static void visitPostEnd(FTextStream &t, const bool hasCaption)
void writeMscGraphFromFile(const char *inFile, const char *outDir, const char *outFile, MscOutputFormat format)
void endDiaFile(bool hasCaption)
virtual QCString trAttention()=0
void startLink(const QCString &file, const QCString &anchor)
void startDiaFile(const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
static TemplateVariant parseCode(MemberDef *md, const QCString &scopeName, const QCString &relPath, const QCString &code, int startLine=-1, int endLine=-1, bool showLineNumbers=FALSE)
virtual QCString trInvariant()=0
virtual QCString trPostcondition()=0
DocbookDocVisitor(FTextStream &t, CodeOutputInterface &ci)
virtual QCString trWarning()=0
QCString writePlantUMLSource(const QCString &outDir, const QCString &fileName, const QCString &content)
int readBlock(char *data, uint len)
void writeMscFile(const QCString &fileName, DocVerbatim *s)
QCString left(uint len) const
virtual QCString trCopyright()=0
void writeDotFile(const QCString &fileName, DocVerbatim *s)
static HtmlEntityMapper * instance()
Simplified and optimized version of QTextStream.
int find(char c, int index=0, bool cs=TRUE) const
static void visitCaption(DocbookDocVisitor *parent, QList< DocNode > children)
int findRev(char c, int index=-1, bool cs=TRUE) const
virtual QCString trReturns()=0
virtual QCString trDate()=0
void startDotFile(const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
virtual QCString trNote()=0
QCString exampleFile() const
QCString extractBlock(const QCString text, const QCString marker)
const char * docbook(DocSymbol::SymType symb) const
Access routine to the docbook code of the HTML entity.
Abstract visitor that participates in the visitor pattern.
virtual QCString trExceptions()=0
void filter(const char *str)
static ParserManager * parserManager
QCString targetTitle() const
int writeBlock(const char *data, uint len)
virtual QCString trParameters()=0
void endDotFile(bool hasCaption)
CodeOutputInterface & m_ci
QCString right(uint len) const
virtual QCString trAuthor(bool first_capital, bool singular)=0
FileDef * findFileDef(const FileNameDict *fnDict, const char *n, bool &ambig)
virtual QCString trReturnValues()=0
QCString & prepend(const char *s)
const QList< DocNode > & children() const
void writeDotGraphFromFile(const char *inFile, const char *outDir, const char *outFile, GraphOutputFormat format)
A bunch of utility functions.
const char * data() const
#define Config_getString(val)
virtual QCString trVersion()=0
QCString getDotImageExtension(void)
void generatePlantUMLOutput(const char *baseName, const char *outDir, PlantUMLOutputFormat format)
Concrete visitor implementation for Docbook output.
void err(const char *fmt,...)
static FileNameDict * imageNameDict
QCString absFilePath() const
The QFile class is an I/O device that operates on files.
QCString & sprintf(const char *format,...)
const QList< DocNode > & parameters()
void writeDiaGraphFromFile(const char *inFile, const char *outDir, const char *outFile, DiaOutputFormat format)
static void visitPreStart(FTextStream &t, const bool hasCaption, QCString name, QCString width, QCString height)
SrcLangExt getLanguageFromFileName(const QCString fileName)
void writePlantUMLFile(const QCString &fileName, DocVerbatim *s)
void visitPost(DocAutoList *)
virtual QCString trTemplateParameters()=0
void endMscFile(bool hasCaption)
void startMscFile(const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
Translator * theTranslator
QCString exampleFile() const
virtual QCString trRemarks()=0
void visitPre(DocAutoList *)
virtual QCString trSeeAlso()=0
QCString extension() const
void writeDiaFile(const QCString &fileName, DocVerbatim *s)
The QFileInfo class provides system-independent file information.
const int DocVisitor_Docbook
virtual void parseCode(CodeOutputInterface &codeOutIntf, const char *scopeName, const QCString &input, SrcLangExt lang, bool isExampleBlock, const char *exampleName=0, FileDef *fileDef=0, int startLine=-1, int endLine=-1, bool inlineFragment=FALSE, MemberDef *memberDef=0, bool showLineNumbers=TRUE, Definition *searchCtx=0, bool collectXRefs=TRUE)=0
virtual void accept(DocVisitor *v)=0
def parent(G, child, parent_type)
QTextStream & endl(QTextStream &s)