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/latexgen.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/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 7ffa258..7e072ac 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -223,8 +223,7 @@ static void writeDefaultHeaderPart1(QTextStream &t) "\\usepackage{fancyhdr}\n" "\\usepackage{graphicx}\n" "\\usepackage{float}\n" - "\\usepackage{alltt}\n" - "\\usepackage{doxygen}\n"; + "\\usepackage{alltt}\n"; if (Config_getBool("PDF_HYPERLINKS")) { t << "\\usepackage{times}" << endl; @@ -254,6 +253,7 @@ static void writeDefaultHeaderPart1(QTextStream &t) t << sLanguageSupportCommand; } + t << "\\usepackage{doxygen}\n"; QStrList &extraPackages = Config_getList("EXTRA_PACKAGES"); const char *s=extraPackages.first(); while (s) @@ -1553,6 +1553,43 @@ void LatexGenerator::endImage(bool hasCaption) } } +void LatexGenerator::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("LATEX_OUTPUT")+ +#ifdef _WIN32 + "\\" +#else + "/" +#endif + +baseName; + writeDotGraphFromFile(name,outName,EPS); + if (hasCaption) + t << "\\begin{figure}[H]" << endl; + else + t << "\\mbox{"; + t << "\\includegraphics"; + t << "{" << baseName << ".eps}"; + if (hasCaption) + t << "\\caption{"; + else + t << "}" << endl; +} + +void LatexGenerator::endDotFile(bool hasCaption) +{ + if (hasCaption) + { + t << "}" << endl; + t << "\\end{figure}" << endl; + } +} + void LatexGenerator::startMemberGroupHeader(bool hasHeader) { |