diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2001-08-19 18:13:14 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2001-08-19 18:13:14 (GMT) |
commit | 8f7c9d9ba3b6c4e87c87deb6775d4bf642939e77 (patch) | |
tree | 3ff0575884709cdc92f9e462441672f3549ab054 /src/htmlgen.cpp | |
parent | b5cbb79d114ed13945bc882ac8eef1c2be967bbf (diff) | |
download | Doxygen-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.cpp | 33 |
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;) |