diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-12-24 16:12:24 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-12-24 16:12:24 (GMT) |
commit | 48f4fd9c2d9ba8b374e3c052f888df9bc220df92 (patch) | |
tree | 2e3f5d0757e53645fc902d0a87aa44dfd31d2d4d /src/pagedef.cpp | |
parent | dd7602fdd31d8f3e0f88be553da084a1e3fdec45 (diff) | |
download | Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.zip Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.tar.gz Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.tar.bz2 |
Release-1.7.2-20101224
Diffstat (limited to 'src/pagedef.cpp')
-rw-r--r-- | src/pagedef.cpp | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/src/pagedef.cpp b/src/pagedef.cpp index e7bcc1a..8563ec0 100644 --- a/src/pagedef.cpp +++ b/src/pagedef.cpp @@ -69,13 +69,15 @@ bool PageDef::hasParentPage() const void PageDef::writeDocumentation(OutputList &ol) { + static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW"); + //outputList->disable(OutputGenerator::Man); QCString pageName; pageName=escapeCharsInString(name(),FALSE,TRUE); //printf("PageDef::writeDocumentation: %s\n",getOutputFileBase().data()); - startFile(ol,getOutputFileBase(),pageName,title(),HLI_Pages,TRUE); + startFile(ol,getOutputFileBase(),pageName,title(),HLI_Pages,!generateTreeView); ol.pushGeneratorState(); //1.{ @@ -92,13 +94,15 @@ void PageDef::writeDocumentation(OutputList &ol) ol.enable(OutputGenerator::Html); } - if (getOuterScope()!=Doxygen::globalScope && !Config_getBool("DISABLE_INDEX")) + if (!generateTreeView) { - getOuterScope()->writeNavigationPath(ol); + if (getOuterScope()!=Doxygen::globalScope && !Config_getBool("DISABLE_INDEX")) + { + getOuterScope()->writeNavigationPath(ol); + } + ol.endQuickIndices(); } - ol.endQuickIndices(); - // save old generator state and write title only to Man generator ol.pushGeneratorState(); //2.{ @@ -135,7 +139,16 @@ void PageDef::writeDocumentation(OutputList &ol) ol.popGeneratorState(); //1.} - endFile(ol); + if (generateTreeView && getOuterScope()!=Doxygen::globalScope && !Config_getBool("DISABLE_INDEX")) + { + ol.endContents(); + getOuterScope()->writeNavigationPath(ol); + endFile(ol,TRUE); + } + else + { + endFile(ol); + } if (!Config_getString("GENERATE_TAGFILE").isEmpty()) { |