summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2008-03-16 22:09:59 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2008-03-16 22:09:59 (GMT)
commit5b23c9573e3e7925987dc706c17357d54f517e40 (patch)
tree087be77a871260c8a278c994394567a146fb25b8 /src/index.cpp
parent8051d0cfdd4afcaaa8458926c807d471691dfb5e (diff)
downloadDoxygen-5b23c9573e3e7925987dc706c17357d54f517e40.zip
Doxygen-5b23c9573e3e7925987dc706c17357d54f517e40.tar.gz
Doxygen-5b23c9573e3e7925987dc706c17357d54f517e40.tar.bz2
Release-1.5.5-20080316
Diffstat (limited to 'src/index.cpp')
-rw-r--r--src/index.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 711e760..e2b7750 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -2937,7 +2937,7 @@ void writeIndex(OutputList &ol)
ol.startIndexSection(isMainPage);
if (mainPageHasTitle())
{
- ol.parseDoc(defFileName,defLine,Doxygen::mainPage,0,Doxygen::mainPage->title(),FALSE,FALSE);
+ ol.parseText(Doxygen::mainPage->title());
}
else
{
@@ -2954,13 +2954,22 @@ void writeIndex(OutputList &ol)
bool first=Doxygen::mainPage==0;
for (pdi.toFirst();(pd=pdi.current());++pdi)
{
- if (!pd->getGroupDef() && !pd->isReference())
+ if (!pd->getGroupDef() && !pd->isReference() &&
+ !pd->hasParentPage()
+ )
{
QCString title = pd->title();
if (title.isEmpty()) title=pd->name();
ol.startIndexSection(isPageDocumentation);
ol.parseText(title);
ol.endIndexSection(isPageDocumentation);
+ ol.pushGeneratorState(); // write TOC title (RTF only)
+ ol.disableAllBut(OutputGenerator::RTF);
+ ol.startIndexSection(isPageDocumentation2);
+ ol.parseText(title);
+ ol.endIndexSection(isPageDocumentation2);
+ ol.popGeneratorState();
+ ol.writeAnchor(0,pd->name());
ol.writePageLink(pd->getOutputFileBase(),first);
first=FALSE;