19 #include <qfileinfo.h>
37 QListIterator<DocNode> cli(children);
39 for (cli.toFirst();(n=cli.current());++cli) n->
accept(parent);
45 const QCString &height)
62 t <<
" name=\"" << name <<
"\"";
68 else if (!height.isEmpty())
83 t <<
"</" << cmd <<
">" <<
endl;
139 m_t <<
"<ulink url=\"";
150 m_t <<
"<linebreak/>\n";
156 m_t <<
"<hruler/>\n";
165 if (s->
enable())
m_t <<
"<bold>";
else m_t <<
"</bold>";
168 if (s->
enable())
m_t <<
"<emphasis>";
else m_t <<
"</emphasis>";
171 if (s->
enable())
m_t <<
"<computeroutput>";
else m_t <<
"</computeroutput>";
174 if (s->
enable())
m_t <<
"<subscript>";
else m_t <<
"</subscript>";
177 if (s->
enable())
m_t <<
"<superscript>";
else m_t <<
"</superscript>";
180 if (s->
enable())
m_t <<
"<center>";
else m_t <<
"</center>";
183 if (s->
enable())
m_t <<
"<small>";
else m_t <<
"</small>";
188 m_t <<
"<preformatted>";
193 m_t <<
"</preformatted>";
214 m_t <<
"<programlisting>";
218 m_t <<
"</programlisting>";
223 m_t <<
"</verbatim>";
256 m_t <<
"<anchor id=\"" << anc->
file() <<
"_1" << anc->
anchor() <<
"\"/>";
267 m_t <<
"<programlisting>";
268 QFileInfo cfi( inc->
file() );
269 FileDef fd( cfi.dirPath().utf8(), cfi.fileName().utf8() );
283 m_t <<
"</programlisting>";
287 m_t <<
"<programlisting>";
301 m_t <<
"</programlisting>";
308 m_t <<
"</htmlonly>";
311 m_t <<
"<latexonly>";
313 m_t <<
"</latexonly>";
318 m_t <<
"</verbatim>";
321 m_t <<
"<programlisting>";
330 m_t <<
"</programlisting>";
334 err(
"Internal inconsistency: found switch SnippetDoc / IncludeDoc in file: %s"
335 "Please create a bug report\n",__FILE__);
348 m_t <<
"<programlisting>";
381 m_t <<
"<formula id=\"" << f->
id() <<
"\">";
389 m_t <<
"<indexentry>"
392 m_t <<
"</primaryie>"
393 "<secondaryie></secondaryie>"
423 m_t <<
"<orderedlist>\n";
427 m_t <<
"<itemizedlist>\n";
436 m_t <<
"</orderedlist>\n";
440 m_t <<
"</itemizedlist>\n";
453 m_t <<
"</listitem>";
481 m_t <<
"<simplesect kind=\"";
487 m_t <<
"return";
break;
489 m_t <<
"author";
break;
491 m_t <<
"authors";
break;
493 m_t <<
"version";
break;
495 m_t <<
"since";
break;
497 m_t <<
"date";
break;
499 m_t <<
"note";
break;
501 m_t <<
"warning";
break;
505 m_t <<
"post";
break;
507 m_t <<
"copyright";
break;
509 m_t <<
"invariant";
break;
511 m_t <<
"remark";
break;
513 m_t <<
"attention";
break;
526 m_t <<
"</simplesect>\n";
544 m_t <<
"<itemizedlist>\n";
550 m_t <<
"</itemizedlist>\n";
562 m_t <<
"</listitem>\n";
578 m_t <<
"</sect" << s->
level() <<
">\n";
585 m_t <<
"<orderedlist>\n";
587 m_t <<
"<itemizedlist>\n";
594 m_t <<
"</orderedlist>\n";
596 m_t <<
"</itemizedlist>\n";
602 m_t <<
"<listitem>\n";
608 m_t <<
"</listitem>\n";
614 m_t <<
"<variablelist>\n";
620 m_t <<
"</variablelist>\n";
626 m_t <<
"<varlistentry><term>";
632 m_t <<
"</term></varlistentry>\n";
644 m_t <<
"</listitem>\n";
675 if (c->
isHeading())
m_t <<
"<entry thead=\"yes\">";
else m_t <<
"<entry thead=\"no\">";
693 m_t <<
"</caption>\n";
711 m_t <<
"<ulink url=\"";
725 m_t <<
"<heading level=\"" << header->
level() <<
"\">";
731 m_t <<
"</heading>\n";
738 QCString baseName=img->
name();
740 if ((i=baseName.findRev(
'/'))!=-1 || (i=baseName.findRev(
'\\'))!=-1)
742 baseName=baseName.right(baseName.length()-i-1);
747 QFile inImage(img->
name());
749 if (inImage.open(IO_ReadOnly))
751 if (outImage.open(IO_WriteOnly))
753 char *buffer =
new char[inImage.size()];
754 inImage.readBlock(buffer,inImage.size());
755 outImage.writeBlock(buffer,inImage.size());
819 if (!ref->
file().isEmpty())
836 m_t <<
"<tocitem id=\"" << ref->
file() <<
"_1" << ref->
anchor() <<
"\">";
872 m_t <<
"<parameterlist kind=\"";
876 m_t <<
"param";
break;
878 m_t <<
"retval";
break;
880 m_t <<
"exception";
break;
882 m_t <<
"templateparam";
break;
892 m_t <<
"</parameterlist>" <<
endl;
898 m_t <<
"<parameteritem>" <<
endl;
899 m_t <<
"<parameternamelist>" <<
endl;
904 for (li.toFirst();(param=li.current());++li)
910 for (li.toFirst();(type=li.current());++li)
912 m_t <<
"<parametertype>";
921 m_t <<
"</parametertype>" <<
endl;
924 m_t <<
"<parametername";
927 m_t <<
" direction=\"";
951 m_t <<
"</parametername>" <<
endl;
953 m_t <<
"</parameternamelist>" <<
endl;
954 m_t <<
"<parameterdescription>" <<
endl;
960 m_t <<
"</parameterdescription>" <<
endl;
961 m_t <<
"</parameteritem>" <<
endl;
967 if (x->
title().isEmpty())
return;
968 m_t <<
"<xrefsect id=\"";
971 m_t <<
"<xreftitle>";
973 m_t <<
"</xreftitle>";
974 m_t <<
"<xrefdescription>";
980 if (x->
title().isEmpty())
return;
981 m_t <<
"</xrefdescription>";
982 m_t <<
"</xrefsect>";
1021 m_t <<
"<blockquote>";
1027 m_t <<
"</blockquote>";
1041 m_t <<
"<parblock>";
1047 m_t <<
"</parblock>";
1059 m_t <<
"<ref refid=\"" << file;
1060 if (!anchor.isEmpty())
m_t <<
"_1" << anchor;
1061 m_t <<
"\" kindref=\"";
1062 if (!anchor.isEmpty())
m_t <<
"member";
else m_t <<
"compound";
1064 if (!ref.isEmpty())
m_t <<
" external=\"" << ref <<
"\"";