summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-11-26 14:55:14 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-11-26 14:55:14 (GMT)
commita30c2e3c5ea41ae1947e9893c82ed8c8b6d7c5a2 (patch)
tree0bbfa006a4c63e8fe48b3d0022699cffaea24b47 /src/latexgen.cpp
parent2f32e4c28047cdec982a818e8abe5632af2d9511 (diff)
downloadDoxygen-a30c2e3c5ea41ae1947e9893c82ed8c8b6d7c5a2.zip
Doxygen-a30c2e3c5ea41ae1947e9893c82ed8c8b6d7c5a2.tar.gz
Doxygen-a30c2e3c5ea41ae1947e9893c82ed8c8b6d7c5a2.tar.bz2
Release-1.2.3-20001126
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp53
1 files changed, 20 insertions, 33 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 0e37603..e0e72fc 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -494,12 +494,9 @@ void LatexGenerator::startIndexSection(IndexSections is)
bool found=FALSE;
while (gd && !found)
{
- if (gd->countMembers()>0)
- {
- if (Config::compactLatexFlag) t << "\\section"; else t << "\\chapter";
- t << "{"; //Module Documentation}\n";
- found=TRUE;
- }
+ if (Config::compactLatexFlag) t << "\\section"; else t << "\\chapter";
+ t << "{"; //Module Documentation}\n";
+ found=TRUE;
gd=groupList.next();
}
}
@@ -619,20 +616,14 @@ void LatexGenerator::endIndexSection(IndexSections is)
bool found=FALSE;
while (gd && !found)
{
- if (gd->countMembers()>0)
- {
- t << "}\n\\input{" << gd->getOutputFileBase() << "}\n";
- found=TRUE;
- }
+ t << "}\n\\input{" << gd->getOutputFileBase() << "}\n";
+ found=TRUE;
gd=groupList.next();
}
while (gd)
{
- if (gd->countMembers()>0)
- {
- if (Config::compactLatexFlag) t << "\\input"; else t << "\\include";
- t << "{" << gd->getOutputFileBase() << "}\n";
- }
+ if (Config::compactLatexFlag) t << "\\input"; else t << "\\include";
+ t << "{" << gd->getOutputFileBase() << "}\n";
gd=groupList.next();
}
}
@@ -734,24 +725,20 @@ void LatexGenerator::endIndexSection(IndexSections is)
t << "}\n";
PageSDictIterator pdi(*pageSDict);
PageInfo *pi=pdi.toFirst();
- if (pi)
- {
- QCString pageName;
- if (Config::caseSensitiveNames)
- pageName=pi->name.copy();
- else
- pageName=pi->name.lower();
- t << "\\input{" << pageName << "}\n";
- }
- for (++pdi;(pi=pdi.current());++pdi)
+ bool first=TRUE;
+ for (pdi.toFirst();(pi=pdi.current());++pdi)
{
- if (Config::compactLatexFlag) t << "\\input" ; else t << "\\include";
- QCString pageName;
- if (Config::caseSensitiveNames)
- pageName=pi->name.copy();
- else
- pageName=pi->name.lower();
- t << "{" << pageName << "}\n";
+ if (!pi->inGroup)
+ {
+ QCString pageName;
+ if (Config::caseSensitiveNames)
+ pageName=pi->name.copy();
+ else
+ pageName=pi->name.lower();
+ if (Config::compactLatexFlag || first) t << "\\input" ; else t << "\\include";
+ t << "{" << pageName << "}\n";
+ first=FALSE;
+ }
}
}
break;