summaryrefslogtreecommitdiffstats
path: root/src/htmlhelp.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-04-30 17:51:14 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-04-30 17:51:14 (GMT)
commit62d3c6501af58ceb48ce8e56327d07ad69e79374 (patch)
treea37d75aa0ebe073906cb1a3c2c1506b96409f075 /src/htmlhelp.cpp
parentff31b2f109848ea3e08fb17d5821beb7af879193 (diff)
downloadDoxygen-62d3c6501af58ceb48ce8e56327d07ad69e79374.zip
Doxygen-62d3c6501af58ceb48ce8e56327d07ad69e79374.tar.gz
Doxygen-62d3c6501af58ceb48ce8e56327d07ad69e79374.tar.bz2
Release-1.2.15-20020430
Diffstat (limited to 'src/htmlhelp.cpp')
-rw-r--r--src/htmlhelp.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp
index f179449..71941b5 100644
--- a/src/htmlhelp.cpp
+++ b/src/htmlhelp.cpp
@@ -26,6 +26,7 @@
#include "htmlhelp.h"
#include "config.h"
#include "message.h"
+#include "doxygen.h"
//----------------------------------------------------------------------------
@@ -176,7 +177,7 @@ void HtmlHelpIndex::writeFields(QTextStream &t)
if (level2.isEmpty())
{
t << " <LI><OBJECT type=\"text/sitemap\">";
- t << "<param name=\"Local\" value=\"" << f->url << ".html";
+ t << "<param name=\"Local\" value=\"" << f->url << htmlFileExtension;
if (!f->anchor.isEmpty()) t << "#" << f->anchor;
t << "\">";
t << "<param name=\"Name\" value=\"" << level1 << "\">"
@@ -187,7 +188,7 @@ void HtmlHelpIndex::writeFields(QTextStream &t)
if (f->link)
{
t << " <LI><OBJECT type=\"text/sitemap\">";
- t << "<param name=\"Local\" value=\"" << f->url << ".html\">";
+ t << "<param name=\"Local\" value=\"" << f->url << htmlFileExtension << "\">";
t << "<param name=\"Name\" value=\"" << level1 << "\">"
"</OBJECT>\n";
}
@@ -213,7 +214,7 @@ void HtmlHelpIndex::writeFields(QTextStream &t)
if (level2Started)
{
t << " <LI><OBJECT type=\"text/sitemap\">";
- t << "<param name=\"Local\" value=\"" << f->url << ".html";
+ t << "<param name=\"Local\" value=\"" << f->url << htmlFileExtension;
if (!f->anchor.isEmpty()) t << "#" << f->anchor;
t << "\">";
t << "<param name=\"Name\" value=\"" << level2 << "\">"
@@ -307,8 +308,8 @@ void HtmlHelp::createProjectFile()
t.setEncoding(QTextStream::Latin1);
#endif
- QCString indexName="index.html";
- if (Config_getBool("GENERATE_TREEVIEW")) indexName="main.html";
+ QCString indexName="index"+htmlFileExtension;
+ if (Config_getBool("GENERATE_TREEVIEW")) indexName="main"+htmlFileExtension;
t << "[OPTIONS]\n"
"Compatibility=1.1\n"
"Full-text search=Yes\n"
@@ -417,7 +418,7 @@ void HtmlHelp::addContentsItem(bool isDir,
cts << "<param name=\"Name\" value=\"" << name << "\">";
if (ref) // made ref optional param - KPW
{
- cts << "<param name=\"Local\" value=\"" << ref << ".html";
+ cts << "<param name=\"Local\" value=\"" << ref << htmlFileExtension;
if (anchor) cts << "#" << anchor;
cts << "\">";
}