diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-05-28 19:46:08 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-05-28 19:46:08 (GMT) |
commit | 832e08dcc70203d84f75249583a95fa172492aa2 (patch) | |
tree | 1f7723f69aa2917d2408894c68e7150f7b7ff3d5 /src/latexgen.cpp | |
parent | f38608d4bec002a5051c860a599dd4d5229a9671 (diff) | |
download | Doxygen-832e08dcc70203d84f75249583a95fa172492aa2.zip Doxygen-832e08dcc70203d84f75249583a95fa172492aa2.tar.gz Doxygen-832e08dcc70203d84f75249583a95fa172492aa2.tar.bz2 |
Release-1.1.3-20000528
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 671d377..fecebd8 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -27,6 +27,7 @@ #include "diagram.h" #include "language.h" #include "version.h" +#include "dot.h" static QCString filterTitle(const char *s) { @@ -549,7 +550,7 @@ void LatexGenerator::writeStyleInfo(int part) { case 0: { - QCString pname=Config::projectName.stripWhiteSpace(); + //QCString pname=Config::projectName.stripWhiteSpace(); startPlainFile("doxygen.sty"); t << "\\NeedsTeXFormat{LaTeX2e}\n"; t << "\\ProvidesPackage{doxygen}\n"; @@ -765,7 +766,8 @@ void LatexGenerator::writeObjectLink(const char *ref, const char *f, { t << "\\hyperlink{"; if (f) t << f; - if (anchor) t << "_" << anchor; + if (f && anchor) t << "_"; + if (anchor) t << anchor; t << "}{"; docify(text); t << "}"; @@ -910,6 +912,15 @@ void LatexGenerator::endDoxyAnchor() } } +void LatexGenerator::writeAnchor(const char *fName,const char *name) +{ + t << "\\label{" << name << "}" << endl; + if (fName && Config::pdfHyperFlag) + { + t << "\\hypertarget{" << fName << "_" << name << "}{}" << endl; + } +} + //void LatexGenerator::writeLatexLabel(const char *clName,const char *anchor) //{ @@ -939,6 +950,10 @@ void LatexGenerator::writeSection(const char *lab,const char *title,bool sub) if (sub) t << "subsection{"; else t << "section{"; docify(title); t << "}\\label{" << lab << "}" << endl; + if (Config::pdfHyperFlag) + { + t << "\\hypertarget{" << lab << "}{}"; + } } void LatexGenerator::writeSectionRef(const char *,const char *lab, @@ -955,6 +970,7 @@ void LatexGenerator::writeSectionRefItem(const char *,const char *lab, t << "}{\\ref{" << lab << "}}{}" << endl; } +// TODO: remove this function void LatexGenerator::writeSectionRefAnchor(const char *,const char *lab, const char *title) { @@ -1277,3 +1293,23 @@ void LatexGenerator::endMemberGroup(bool) { t << "\\end{Indent}" << endl; } + +void LatexGenerator::startDotGraph() +{ +} + +void LatexGenerator::endDotGraph(DotClassGraph &g) +{ + g.writeGraph(t,EPS,Config::latexOutputDir); +} + +void LatexGenerator::startInclDepGraph() +{ +} + +void LatexGenerator::endInclDepGraph(DotInclDepGraph &g) +{ + g.writeGraph(t,EPS,Config::latexOutputDir); +} + + |