diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-11-26 14:55:14 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-11-26 14:55:14 (GMT) |
commit | a1995ea7b217edfe0a6ddf3d60ea7bde1e23c1d7 (patch) | |
tree | 0bbfa006a4c63e8fe48b3d0022699cffaea24b47 /src/latexgen.cpp | |
parent | ecaf7fbfed68c23e118e564d01a405db24ca9124 (diff) | |
download | Doxygen-a1995ea7b217edfe0a6ddf3d60ea7bde1e23c1d7.zip Doxygen-a1995ea7b217edfe0a6ddf3d60ea7bde1e23c1d7.tar.gz Doxygen-a1995ea7b217edfe0a6ddf3d60ea7bde1e23c1d7.tar.bz2 |
Release-1.2.3-20001126
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 53 |
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; |