summaryrefslogtreecommitdiffstats
path: root/src/htmlhelp.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-02-25 17:49:47 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-02-25 17:49:47 (GMT)
commitba755dd4450d68ee0d47f6d465927b63e6dc3093 (patch)
tree0673a1c66696ceb0da0191a0e834b85eef8c50a2 /src/htmlhelp.cpp
parentd27070014e0f36246e7eec3899c7d55503b1a05a (diff)
downloadDoxygen-ba755dd4450d68ee0d47f6d465927b63e6dc3093.zip
Doxygen-ba755dd4450d68ee0d47f6d465927b63e6dc3093.tar.gz
Doxygen-ba755dd4450d68ee0d47f6d465927b63e6dc3093.tar.bz2
Release-1.2.5-20010225
Diffstat (limited to 'src/htmlhelp.cpp')
-rw-r--r--src/htmlhelp.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp
index e3c2608..5d8936e 100644
--- a/src/htmlhelp.cpp
+++ b/src/htmlhelp.cpp
@@ -305,8 +305,8 @@ void HtmlHelp::createProjectFile()
"Contents file=index.hhc\n"
"Default Window=main\n"
"Default topic=" << indexName << "\n"
- "Index file=index.hhk\n"
- "Binary TOC=YES\n";
+ "Index file=index.hhk\n";
+ if (Config::htmlHelpTocFlag) t << "Binary TOC=YES\n";
if (Config::htmlHelpChiFlag) t << "Create CHI file=YES\n";
t << "Title=" << Config::projectName << endl << endl;
@@ -388,6 +388,13 @@ void HtmlHelp::addContentsItem(bool isDir,
const char *name,const char *ref,
const char *anchor)
{
+ // If we're using a binary toc then folders cannot have links.
+ if(Config::htmlHelpTocFlag && isDir)
+ {
+ ref = 0;
+ anchor = 0;
+ }
+
int i; for (i=0;i<dc;i++) cts << " ";
cts << "<LI><OBJECT type=\"text/sitemap\">";
cts << "<param name=\"Name\" value=\"" << name << "\">";