summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-10-03 19:57:09 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-10-03 19:57:09 (GMT)
commitc52e719895be2a133e6574573584df5a91b98ec6 (patch)
tree47b95a7c3d927d419d3628f528e311aa99356173 /src/latexgen.cpp
parente174524c861548adb3cfd48ef59a7a4551cd2bfb (diff)
downloadDoxygen-c52e719895be2a133e6574573584df5a91b98ec6.zip
Doxygen-c52e719895be2a133e6574573584df5a91b98ec6.tar.gz
Doxygen-c52e719895be2a133e6574573584df5a91b98ec6.tar.bz2
Release-1.2.11-20011003
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 6b4f901..da50b21 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -520,9 +520,10 @@ void LatexGenerator::startIndexSection(IndexSections is)
break;
case isNamespaceDocumentation:
{
- NamespaceDef *nd=Doxygen::namespaceList.first();
+ NamespaceSDict::Iterator nli(Doxygen::namespaceSDict);
+ NamespaceDef *nd;
bool found=FALSE;
- while (nd && !found)
+ for (nli.toFirst();(nd=nli.current()) && !found;++nli)
{
if (nd->isLinkableInProject())
{
@@ -530,7 +531,6 @@ void LatexGenerator::startIndexSection(IndexSections is)
t << "{"; // Namespace Documentation}\n":
found=TRUE;
}
- nd=Doxygen::namespaceList.next();
}
}
break;
@@ -683,25 +683,25 @@ void LatexGenerator::endIndexSection(IndexSections is)
break;
case isNamespaceDocumentation:
{
- NamespaceDef *nd=Doxygen::namespaceList.first();
+ NamespaceSDict::Iterator nli(Doxygen::namespaceSDict);
+ NamespaceDef *nd;
bool found=FALSE;
- while (nd && !found)
+ for (nli.toFirst();(nd=nli.current()) && !found;++nli)
{
if (nd->isLinkableInProject())
{
t << "}\n\\input{" << nd->getOutputFileBase() << "}\n";
found=TRUE;
}
- nd=Doxygen::namespaceList.next();
}
- while (nd)
+ while ((nd=nli.current()))
{
if (nd->isLinkableInProject())
{
if (compactLatex) t << "\\input"; else t << "\\include";
t << "{" << nd->getOutputFileBase() << "}\n";
}
- nd=Doxygen::namespaceList.next();
+ ++nli;
}
}
break;
@@ -916,14 +916,15 @@ void LatexGenerator::endIndexKey()
{
}
-void LatexGenerator::startIndexValue()
+void LatexGenerator::startIndexValue(bool hasBrief)
{
- t << " (";
+ t << " ";
+ if (hasBrief) t << "(";
}
-void LatexGenerator::endIndexValue(const char *name)
+void LatexGenerator::endIndexValue(const char *name,bool hasBrief)
{
- t << ")";
+ if (hasBrief) t << ")";
t << "}{\\pageref{" << name << "}}{}" << endl;
}