summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-08-19 18:13:14 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-08-19 18:13:14 (GMT)
commit8f7c9d9ba3b6c4e87c87deb6775d4bf642939e77 (patch)
tree3ff0575884709cdc92f9e462441672f3549ab054 /src/htmlgen.cpp
parentb5cbb79d114ed13945bc882ac8eef1c2be967bbf (diff)
downloadDoxygen-8f7c9d9ba3b6c4e87c87deb6775d4bf642939e77.zip
Doxygen-8f7c9d9ba3b6c4e87c87deb6775d4bf642939e77.tar.gz
Doxygen-8f7c9d9ba3b6c4e87c87deb6775d4bf642939e77.tar.bz2
Release-1.2.9-20010819
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index a69d631..568906a 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -858,6 +858,39 @@ void HtmlGenerator::endImage(bool hasCaption)
t << "</div>" << endl;
}
+void HtmlGenerator::startDotFile(const char *name,bool hasCaption)
+{
+ QCString baseName=name;
+ int i;
+ if ((i=baseName.findRev('/'))!=-1 || (i=baseName.findRev('\\'))!=-1)
+ {
+ baseName=baseName.right(baseName.length()-i-1);
+ }
+ QCString outName = Config_getString("HTML_OUTPUT")+
+#ifdef _WIN32
+ "\\"
+#else
+ "/"
+#endif
+ +baseName;
+ writeDotGraphFromFile(name,outName,GIF);
+ t << "<div align=\"center\">" << endl;
+ t << "<img src=\"" << baseName << ".gif\" alt=\"" << baseName << "\">" << endl;
+ if (hasCaption)
+ {
+ t << "<p><strong>";
+ }
+}
+
+void HtmlGenerator::endDotFile(bool hasCaption)
+{
+ if (hasCaption)
+ {
+ t << "</strong></p>" << endl;
+ }
+ t << "</div>" << endl;
+}
+
void HtmlGenerator::startMemberDoc(const char *,const char *,const char *,const char *)
{
DBG_HTML(t << "<!-- startMemberDoc -->" << endl;)