summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2016-07-30 13:33:28 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2016-07-30 13:33:28 (GMT)
commit5af8d5e87657a2d3986783493c618df335b3771c (patch)
tree6024dd748c507b0280ad3ce01f53667d0a2fa08f /src/latexgen.cpp
parent98f0816fc000c39f770523b29c68eb68d6ef06d5 (diff)
downloadDoxygen-5af8d5e87657a2d3986783493c618df335b3771c.zip
Doxygen-5af8d5e87657a2d3986783493c618df335b3771c.tar.gz
Doxygen-5af8d5e87657a2d3986783493c618df335b3771c.tar.bz2
Style fixes and added numbering to overloaded members
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 20b4fb1..4877599 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -1522,8 +1522,10 @@ void LatexGenerator::startMemberDoc(const char *clname,
const char *memname,
const char *,
const char *title,
+ int memCount,
+ int memTotal,
bool showInline)
-{
+{
if (memname && memname[0]!='@')
{
t << "\\index{";
@@ -1550,7 +1552,7 @@ void LatexGenerator::startMemberDoc(const char *clname,
t << latexEscapeLabelName(clname,insideTabbing);
t << "@{";
t << latexEscapeIndexChars(clname,insideTabbing);
- t << "}";
+ t << "}";
}
t << "}" << endl;
}
@@ -1560,7 +1562,7 @@ void LatexGenerator::startMemberDoc(const char *clname,
int level=0;
if (showInline) level+=2;
if (compactLatex) level++;
- t << "\\" << levelLab[level];
+ t << "\\" << levelLab[level];
t << "{";
if (pdfHyperlinks)
@@ -1572,6 +1574,10 @@ void LatexGenerator::startMemberDoc(const char *clname,
{
t << "}{" << latexEscapePDFString(title) << "}";
}
+ if (memTotal>1)
+ {
+ t << "\\hspace{0.1cm}{\\footnotesize\\ttfamily [" << memCount << "/" << memTotal << "]}";
+ }
t << "}";
t << "\n{\\ttfamily ";
//disableLinks=TRUE;
@@ -1580,7 +1586,7 @@ void LatexGenerator::startMemberDoc(const char *clname,
void LatexGenerator::endMemberDoc(bool)
{
disableLinks=FALSE;
- t << "}";
+ t << "}\n\n";
//if (Config_getBool(COMPACT_LATEX)) t << "\\hfill";
}
@@ -1992,7 +1998,7 @@ void LatexGenerator::startParameterList(bool openBracket)
{
/* start of ParameterType ParameterName list */
if (openBracket) t << "(";
- t << endl << "\\begin{DoxyParamCaption}" << endl;
+ t << "\\begin{DoxyParamCaption}";
}
void LatexGenerator::endParameterList()
@@ -2015,13 +2021,12 @@ void LatexGenerator::startParameterName(bool /*oneArgOnly*/)
t << "{";
}
-void LatexGenerator::endParameterName(bool last,bool /* emptyList */,bool closeBracket)
+void LatexGenerator::endParameterName(bool last,bool /*emptyList*/,bool closeBracket)
{
- t << "}" << endl;
-
+ t << " }";
if (last)
{
- t << "\\end{DoxyParamCaption}" << endl;
+ t << "\\end{DoxyParamCaption}";
if (closeBracket) t << ")";
}
}