summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>1999-12-15 19:26:45 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>1999-12-15 19:26:45 (GMT)
commite04496cb647291b94c0b27b8babb127a79803579 (patch)
treebec2e27efcff1ecb747c25b00bb9fea1e068d151 /src/latexgen.cpp
parent322885a8700a209812bf5a94205260c9bef6ac1f (diff)
downloadDoxygen-e04496cb647291b94c0b27b8babb127a79803579.zip
Doxygen-e04496cb647291b94c0b27b8babb127a79803579.tar.gz
Doxygen-e04496cb647291b94c0b27b8babb127a79803579.tar.bz2
mods for doxygen-0.49-990522
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp78
1 files changed, 67 insertions, 11 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 50ec496..2f2f62b 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -172,6 +172,10 @@ void LatexGenerator::startIndexSection(IndexSections is)
if (compactLatexFlag) t << "\\section"; else t << "\\chapter";
t << "{"; //Module Index}\n"
break;
+ case isNamespaceIndex:
+ if (compactLatexFlag) t << "\\section"; else t << "\\chapter";
+ t << "{"; //Namespace Index}\"
+ break;
case isClassHierarchyIndex:
if (compactLatexFlag) t << "\\section"; else t << "\\chapter";
t << "{"; //Hierarchical Index}\n"
@@ -200,17 +204,28 @@ void LatexGenerator::startIndexSection(IndexSections is)
}
}
break;
+ case isNamespaceDocumentation:
+ {
+ NamespaceDef *nd=namespaceList.first();
+ bool found=FALSE;
+ while (nd && !found)
+ {
+ if (nd->hasDocumentation())
+ {
+ if (compactLatexFlag) t << "\\section"; else t << "\\chapter";
+ t << "{"; // Namespace Documentation}\n":
+ found=TRUE;
+ }
+ nd=namespaceList.next();
+ }
+ }
+ break;
case isClassDocumentation:
{
ClassDef *cd=classList.first();
bool found=FALSE;
while (cd && !found)
{
- //if (cd->classFile()[0]!='@' && !cd->getReference() &&
- // (cd->hasDocumentation() || !hideClassFlag) &&
- // (cd->protection()!=Private || extractPrivateFlag)
- // )
-
if (!cd->isReference() && cd->isVisible())
{
if (compactLatexFlag) t << "\\section"; else t << "\\chapter";
@@ -282,6 +297,9 @@ void LatexGenerator::endIndexSection(IndexSections is)
case isModuleIndex:
t << "}\n\\input{modules}\n";
break;
+ case isNamespaceIndex:
+ t << "}\n\\input{namespaces}\n";
+ break;
case isClassHierarchyIndex:
t << "}\n\\input{hierarchy}\n";
break;
@@ -299,7 +317,7 @@ void LatexGenerator::endIndexSection(IndexSections is)
{
if (gd->hasDocumentation() || gd->countMembers()>0)
{
- t << "}\n\\input{" << gd->groupFile() << "}\n";
+ t << "}\n\\input{" << gd->getOutputFileBase() << "}\n";
found=TRUE;
}
gd=groupList.next();
@@ -309,12 +327,36 @@ void LatexGenerator::endIndexSection(IndexSections is)
if (gd->hasDocumentation() || gd->countMembers()>0)
{
if (compactLatexFlag) t << "\\input"; else t << "\\include";
- t << "{" << gd->groupFile() << "}\n";
+ t << "{" << gd->getOutputFileBase() << "}\n";
}
gd=groupList.next();
}
}
break;
+ case isNamespaceDocumentation:
+ {
+ NamespaceDef *nd=namespaceList.first();
+ bool found=FALSE;
+ while (nd && !found)
+ {
+ if (nd->hasDocumentation() || nd->countMembers()>0)
+ {
+ t << "}\n\\input{" << nd->getOutputFileBase() << "}\n";
+ found=TRUE;
+ }
+ nd=namespaceList.next();
+ }
+ while (nd)
+ {
+ if (nd->hasDocumentation() || nd->countMembers()>0)
+ {
+ if (compactLatexFlag) t << "\\input"; else t << "\\include";
+ t << "{" << nd->getOutputFileBase() << "}\n";
+ }
+ nd=namespaceList.next();
+ }
+ }
+ break;
case isClassDocumentation:
{
ClassDef *cd=classList.first();
@@ -327,7 +369,7 @@ void LatexGenerator::endIndexSection(IndexSections is)
// )
if (!cd->isReference() && cd->isVisible())
{
- t << "}\n\\input{" << cd->classFile() << "}\n";
+ t << "}\n\\input{" << cd->getOutputFileBase() << "}\n";
found=TRUE;
}
cd=classList.next();
@@ -341,7 +383,7 @@ void LatexGenerator::endIndexSection(IndexSections is)
if (!cd->isReference() && cd->isVisible())
{
if (compactLatexFlag) t << "\\input"; else t << "\\include";
- t << "{" << cd->classFile() << "}\n";
+ t << "{" << cd->getOutputFileBase() << "}\n";
}
cd=classList.next();
}
@@ -360,13 +402,13 @@ void LatexGenerator::endIndexSection(IndexSections is)
{
if (isFirst)
{
- t << "}\n\\input{" << fd->diskName() << "}\n";
+ t << "}\n\\input{" << fd->getOutputFileBase() << "}\n";
isFirst=FALSE;
}
else
{
if (compactLatexFlag) t << "\\input" ; else t << "\\include";
- t << "{" << fd->diskName() << "}\n";
+ t << "{" << fd->getOutputFileBase() << "}\n";
}
}
fd=fn->next();
@@ -670,6 +712,11 @@ void LatexGenerator::writeDoxyAnchor(const char *clname,const char *anchor,const
t << "}" << endl;
}
+void LatexGenerator::writeLatexLabel(const char *clName,const char *anchor)
+{
+ writeDoxyAnchor(clName,anchor,0);
+}
+
void LatexGenerator::addToIndex(const char *s1,const char *s2)
{
if (s1)
@@ -709,6 +756,15 @@ void LatexGenerator::writeSectionRefItem(const char *,const char *lab,
t << "}{\\ref{" << lab << "}}" << endl;
}
+void LatexGenerator::writeSectionRefAnchor(const char *,const char *lab,
+ const char *title)
+{
+ startBold();
+ docify(title);
+ endBold();
+ t << " (p. \\pageref{" << lab << "})" << endl;
+}
+
//void LatexGenerator::docify(const char *str)
//{
// docifyStatic(t,str);