summaryrefslogtreecommitdiffstats
path: root/src/htmlhelp.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-03-23 11:50:34 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-03-23 11:50:34 (GMT)
commite6a78b6b2573388353bdb5dcd7a13dcc11959d13 (patch)
treeb50e97380564df58499cf2a24e17fc865ba800ce /src/htmlhelp.cpp
parent683ef76f7bf1ba929f9c263064bb5f6c8e377275 (diff)
downloadDoxygen-e6a78b6b2573388353bdb5dcd7a13dcc11959d13.zip
Doxygen-e6a78b6b2573388353bdb5dcd7a13dcc11959d13.tar.gz
Doxygen-e6a78b6b2573388353bdb5dcd7a13dcc11959d13.tar.bz2
Enable Previous and Next buttons in chm output file
Enables the Previous and Next buttons in case of a binary table of contents in the chm output file (binary toc is a requirement for the Precious and Next buttons).
Diffstat (limited to 'src/htmlhelp.cpp')
-rw-r--r--src/htmlhelp.cpp28
1 files changed, 22 insertions, 6 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp
index 754893d..c4b8950 100644
--- a/src/htmlhelp.cpp
+++ b/src/htmlhelp.cpp
@@ -495,9 +495,22 @@ void HtmlHelp::createProjectFile()
// the font-size one is not normally settable by the HTML Help Workshop
// utility but the way to set it is described here:
// http://support.microsoft.com/?scid=kb%3Ben-us%3B240062&x=17&y=18
- t << "main=\"" << recode(Config_getString("PROJECT_NAME")) << "\",\"index.hhc\","
+ // NOTE: the 0x70387e number in addition to the above the Next and Prev button
+ // are shown. They can only be shown in case of a binary toc.
+ // dee http://www.mif2go.com/xhtml/htmlhelp_0016_943addingtabsandtoolbarbuttonstohtmlhelp.htm#Rz108x95873
+ // Value has been taken from htmlhelp.h file of the HTML Help Workshop
+ if (Config_getBool("BINARY_TOC"))
+ {
+ t << "main=\"" << recode(Config_getString("PROJECT_NAME")) << "\",\"index.hhc\","
+ "\"index.hhk\",\"" << indexName << "\",\"" <<
+ indexName << "\",,,,,0x23520,,0x70387e,,,,,,,,0" << endl << endl;
+ }
+ else
+ {
+ t << "main=\"" << recode(Config_getString("PROJECT_NAME")) << "\",\"index.hhc\","
"\"index.hhk\",\"" << indexName << "\",\"" <<
indexName << "\",,,,,0x23520,,0x10387e,,,,,,,,0" << endl << endl;
+ }
t << "[FILES]" << endl;
char *s = indexFiles.first();
@@ -620,11 +633,14 @@ void HtmlHelp::addContentsItem(bool isDir,
Definition * /* def */)
{
// If we're using a binary toc then folders cannot have links.
- if(Config_getBool("BINARY_TOC") && isDir)
- {
- file = 0;
- anchor = 0;
- }
+ // Tried this and I didn't see any problems, when not using
+ // the resetting of file and anchor the TOC works better
+ // (prev / next button)
+ //if(Config_getBool("BINARY_TOC") && isDir)
+ //{
+ //file = 0;
+ //anchor = 0;
+ //}
int i; for (i=0;i<dc;i++) cts << " ";
cts << "<LI><OBJECT type=\"text/sitemap\">";
cts << "<param name=\"Name\" value=\"" << convertToHtml(recode(name),TRUE) << "\">";