summaryrefslogtreecommitdiffstats
path: root/src/htmlhelp.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2008-01-16 19:20:21 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2008-01-16 19:20:21 (GMT)
commitfc90c25edfba404f54319eaeeacca39246f95c9e (patch)
tree78bac4e928b25e139605aceefa82537f378d8af0 /src/htmlhelp.cpp
parentf57b7d974fec18d1d8f325c102efd8be5930131d (diff)
downloadDoxygen-fc90c25edfba404f54319eaeeacca39246f95c9e.zip
Doxygen-fc90c25edfba404f54319eaeeacca39246f95c9e.tar.gz
Doxygen-fc90c25edfba404f54319eaeeacca39246f95c9e.tar.bz2
Release-1.5.4
Diffstat (limited to 'src/htmlhelp.cpp')
-rw-r--r--src/htmlhelp.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp
index 58e79f2..1ff3101 100644
--- a/src/htmlhelp.cpp
+++ b/src/htmlhelp.cpp
@@ -1,6 +1,6 @@
/******************************************************************************
*
- *
+ * $Id$
*
* Copyright (C) 1997-2007 by Dimitri van Heesch.
*
@@ -270,6 +270,7 @@ HtmlHelp::HtmlHelp() : indexFileDict(1009)
index = new HtmlHelpIndex;
}
+#if 0
/*! return a reference to the one and only instance of this class.
*/
HtmlHelp *HtmlHelp::getInstance()
@@ -277,6 +278,7 @@ HtmlHelp *HtmlHelp::getInstance()
if (theInstance==0) theInstance = new HtmlHelp;
return theInstance;
}
+#endif
static QDict<QCString> s_languageDict;
@@ -504,47 +506,50 @@ void HtmlHelp::finalize()
* This will start a new unnumbered HTML list in contents file.
* \sa decContentsDepth()
*/
-int HtmlHelp::incContentsDepth()
+void HtmlHelp::incContentsDepth()
{
int i; for (i=0;i<dc+1;i++) cts << " ";
cts << "<UL>\n";
- return ++dc;
+ ++dc;
}
/*! Decrease the level of the contents hierarchy.
* This will end the unnumber HTML list.
* \sa incContentsDepth()
*/
-int HtmlHelp::decContentsDepth()
+void HtmlHelp::decContentsDepth()
{
int i; for (i=0;i<dc;i++) cts << " ";
cts << "</UL>\n";
- return --dc;
+ --dc;
}
/*! Add an list item to the contents file.
* \param isDir boolean indicating if this is a dir or file entry
* \param name the name of the item.
* \param ref the URL of to the item.
+ * \param file the file in which the item is defined.
* \param anchor the anchor of the item.
*/
void HtmlHelp::addContentsItem(bool isDir,
- const char *name,const char *ref,
+ const char *name,
+ const char * /*ref*/,
+ const char *file,
const char *anchor)
{
// If we're using a binary toc then folders cannot have links.
if(Config_getBool("BINARY_TOC") && isDir)
{
- ref = 0;
+ file = 0;
anchor = 0;
}
int i; for (i=0;i<dc;i++) cts << " ";
cts << "<LI><OBJECT type=\"text/sitemap\">";
cts << "<param name=\"Name\" value=\"" << name << "\">";
- if (ref) // made ref optional param - KPW
+ if (file) // made file optional param - KPW
{
- cts << "<param name=\"Local\" value=\"" << ref << Doxygen::htmlFileExtension;
+ cts << "<param name=\"Local\" value=\"" << file << Doxygen::htmlFileExtension;
if (anchor) cts << "#" << anchor;
cts << "\">";
}