summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-06-10 14:32:16 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-06-10 14:32:16 (GMT)
commit6bcfa2ef74dee5be64110aa0b06b368d498c9a73 (patch)
treee7d24c06a9c225fe4a29004a178cc28a435cdc67 /src/index.cpp
parentc2107e15c87bc0b964d333e24ec193c1a2d27335 (diff)
downloadDoxygen-6bcfa2ef74dee5be64110aa0b06b368d498c9a73.zip
Doxygen-6bcfa2ef74dee5be64110aa0b06b368d498c9a73.tar.gz
Doxygen-6bcfa2ef74dee5be64110aa0b06b368d498c9a73.tar.bz2
Release-1.2.8.1
Diffstat (limited to 'src/index.cpp')
-rw-r--r--src/index.cpp26
1 files changed, 3 insertions, 23 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 5fc1431..9ce2f94 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -145,13 +145,9 @@ QCString abbreviate(const char *s,const char *name)
void writeQuickLinks(OutputList &ol,bool compact ,bool ext=FALSE)
{
ol.pushGeneratorState();
- //bool manEnabled = ol.isEnabled(OutputGenerator::Man);
- //bool texEnabled = ol.isEnabled(OutputGenerator::Latex);
ol.disableAllBut(OutputGenerator::Html);
QCString extLink;
if (ext) { extLink="_doc"; }
- //if (manEnabled) ol.disable(OutputGenerator::Man);
- //if (texEnabled) ol.disable(OutputGenerator::Latex);
if (compact) ol.startCenter(); else ol.startItemList();
if (!compact) ol.writeListItem();
@@ -280,23 +276,19 @@ void writeQuickLinks(OutputList &ol,bool compact ,bool ext=FALSE)
{
ol.endItemList();
}
- //if (manEnabled) ol.enable(OutputGenerator::Man);
- //if (texEnabled) ol.enable(OutputGenerator::Latex);
ol.popGeneratorState();
}
-static bool manIsEnabled;
-
void startTitle(OutputList &ol,const char *fileName)
{
ol.startTitleHead(fileName);
- manIsEnabled=ol.isEnabled(OutputGenerator::Man);
- if (manIsEnabled) ol.disable(OutputGenerator::Man);
+ ol.pushGeneratorState();
+ ol.disable(OutputGenerator::Man);
}
void endTitle(OutputList &ol,const char *fileName,const char *name)
{
- if (manIsEnabled) ol.enable(OutputGenerator::Man);
+ ol.popGeneratorState();
ol.endTitleHead(fileName,name);
}
@@ -675,7 +667,6 @@ void writeHierarchicalIndex(OutputList &ol)
ol.endTextBlock();
writeClassHierarchy(ol);
endFile(ol);
- //ol.enable(OutputGenerator::Man);
ol.popGeneratorState();
}
@@ -959,7 +950,6 @@ void writeFileIndex(OutputList &ol)
ftvHelp->decContentsDepth();
}
endFile(ol);
- //ol.enable(OutputGenerator::Man);
ol.popGeneratorState();
}
@@ -1059,7 +1049,6 @@ void writeNamespaceIndex(OutputList &ol)
ftvHelp->decContentsDepth();
}
endFile(ol);
- //ol.enable(OutputGenerator::Man);
ol.popGeneratorState();
}
@@ -1984,7 +1973,6 @@ void writeExampleIndex(OutputList &ol)
ftvHelp->decContentsDepth();
}
endFile(ol);
- //ol.enable(OutputGenerator::Man);
ol.popGeneratorState();
}
@@ -2102,7 +2090,6 @@ void writePageIndex(OutputList &ol)
ftvHelp->decContentsDepth();
}
endFile(ol);
- //ol.enable(OutputGenerator::Man);
ol.popGeneratorState();
}
@@ -2797,13 +2784,6 @@ void writeIndex(OutputList &ol)
ol.enable(OutputGenerator::Man);
}
- // restore generator state
- //if (manEnabled) ol.enable(OutputGenerator::Man);
- // else ol.disable(OutputGenerator::Man);
- //if (texEnabled) ol.enable(OutputGenerator::Latex);
- // else ol.disable(OutputGenerator::Latex);
- //if (htmEnabled) ol.enable(OutputGenerator::Html);
- // else ol.disable(OutputGenerator::Html);
ol.popGeneratorState();
}