diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2016-08-31 09:47:12 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2016-08-31 09:47:12 (GMT) |
commit | 9c915b83bc06babe6f0127f6446143ea50d00b62 (patch) | |
tree | b5620b380c41e0155e3326b8242712be1b3a5b57 /src/latexgen.cpp | |
parent | 59a8f09137ebfc25c2f238a417088b50b8fbb631 (diff) | |
download | Doxygen-9c915b83bc06babe6f0127f6446143ea50d00b62.zip Doxygen-9c915b83bc06babe6f0127f6446143ea50d00b62.tar.gz Doxygen-9c915b83bc06babe6f0127f6446143ea50d00b62.tar.bz2 |
Unified display of enum values across output formats and languages
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 86 |
1 files changed, 80 insertions, 6 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index e56f91d..ca60b50 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -1579,7 +1579,7 @@ void LatexGenerator::startMemberDoc(const char *clname, t << "\\hspace{0.1cm}{\\footnotesize\\ttfamily [" << memCount << "/" << memTotal << "]}"; } t << "}"; - t << "\n{\\ttfamily "; + t << "\n{\\footnotesize\\ttfamily "; //disableLinks=TRUE; } @@ -1826,6 +1826,65 @@ void LatexGenerator::writeNonBreakableSpace(int) } } +// ---------------------------------------------- +// nesting of functions below: +// startDescTable() +// - startDescTableRow() +// - startDescTableTitle() +// - endDescTabelTitle() +// - startDescTableData() +// - endDescTableData() +// - endDescTableRow() +// - startDescTableRow() +// - ... +// - endDescTableRow() +// endDescTable() + +void LatexGenerator::startDescTable(const char *title) +{ + t << "\\begin{DoxyEnumFields}{" << title << "}" << endl; +} + +void LatexGenerator::endDescTable() +{ + t << "\\end{DoxyEnumFields}" << endl; +} + +void LatexGenerator::startDescTableRow() +{ + // this is needed to prevent the \hypertarget, \label, and \index commands from messing up + // the row height (based on http://tex.stackexchange.com/a/186102) + t << "\\raisebox{\\heightof{T}}[0pt][0pt]{"; +} + +void LatexGenerator::endDescTableRow() +{ +} + +void LatexGenerator::startDescTableTitle() +{ + t << "}"; +} + +void LatexGenerator::endDescTableTitle() +{ +} + +void LatexGenerator::startDescTableData() +{ + t << "&"; +} + +void LatexGenerator::endDescTableData() +{ + t << "\\\\\n\\hline\n" << endl; +} + +void LatexGenerator::lastIndexPage() +{ +} + + void LatexGenerator::startMemberList() { if (!insideTabbing) @@ -2128,16 +2187,31 @@ void LatexGenerator::lineBreak(const char *) } } -void LatexGenerator::startMemberDocSimple() +void LatexGenerator::startMemberDocSimple(bool isEnum) { - t << "\\begin{DoxyFields}{"; - docify(theTranslator->trCompoundMembers()); + if (isEnum) + { + t << "\\begin{DoxyEnumFields}{"; + docify(theTranslator->trEnumerationValues()); + } + else + { + t << "\\begin{DoxyFields}{"; + docify(theTranslator->trCompoundMembers()); + } t << "}" << endl; } -void LatexGenerator::endMemberDocSimple() +void LatexGenerator::endMemberDocSimple(bool isEnum) { - t << "\\end{DoxyFields}" << endl; + if (isEnum) + { + t << "\\end{DoxyEnumFields}" << endl; + } + else + { + t << "\\end{DoxyFields}" << endl; + } } void LatexGenerator::startInlineMemberType() |