summaryrefslogtreecommitdiffstats
path: root/src/htmlhelp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/htmlhelp.cpp')
-rw-r--r--src/htmlhelp.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp
index a283338..d365744 100644
--- a/src/htmlhelp.cpp
+++ b/src/htmlhelp.cpp
@@ -302,7 +302,7 @@ static QDict<QCString> s_languageDict;
*/
void HtmlHelp::initialize()
{
- const char *str = Config_getString("CHM_INDEX_ENCODING");
+ const char *str = Config_getString(CHM_INDEX_ENCODING);
if (!str) str = "CP1250"; // use safe and likely default
m_fromUtf8 = portable_iconv_open(str,"UTF-8");
if (m_fromUtf8==(void *)(-1))
@@ -312,7 +312,7 @@ void HtmlHelp::initialize()
}
/* open the contents file */
- QCString fName = Config_getString("HTML_OUTPUT") + "/index.hhc";
+ QCString fName = Config_getString(HTML_OUTPUT) + "/index.hhc";
cf = new QFile(fName);
if (!cf->open(IO_WriteOnly))
{
@@ -329,7 +329,7 @@ void HtmlHelp::initialize()
"<UL>\n";
/* open the contents file */
- fName = Config_getString("HTML_OUTPUT") + "/index.hhk";
+ fName = Config_getString(HTML_OUTPUT) + "/index.hhk";
kf = new QFile(fName);
if (!kf->open(IO_WriteOnly))
{
@@ -465,7 +465,7 @@ static QCString getLanguageString()
void HtmlHelp::createProjectFile()
{
/* Write the project file */
- QCString fName = Config_getString("HTML_OUTPUT") + "/index.hhp";
+ QCString fName = Config_getString(HTML_OUTPUT) + "/index.hhp";
QFile f(fName);
if (f.open(IO_WriteOnly))
{
@@ -473,9 +473,9 @@ void HtmlHelp::createProjectFile()
QCString indexName="index"+Doxygen::htmlFileExtension;
t << "[OPTIONS]\n";
- if (!Config_getString("CHM_FILE").isEmpty())
+ if (!Config_getString(CHM_FILE).isEmpty())
{
- t << "Compiled file=" << Config_getString("CHM_FILE") << "\n";
+ t << "Compiled file=" << Config_getString(CHM_FILE) << "\n";
}
t << "Compatibility=1.1\n"
"Full-text search=Yes\n"
@@ -484,9 +484,9 @@ void HtmlHelp::createProjectFile()
"Default topic=" << indexName << "\n"
"Index file=index.hhk\n"
"Language=" << getLanguageString() << endl;
- if (Config_getBool("BINARY_TOC")) t << "Binary TOC=YES\n";
- if (Config_getBool("GENERATE_CHI")) t << "Create CHI file=YES\n";
- t << "Title=" << recode(Config_getString("PROJECT_NAME")) << endl << endl;
+ if (Config_getBool(BINARY_TOC)) t << "Binary TOC=YES\n";
+ if (Config_getBool(GENERATE_CHI)) t << "Create CHI file=YES\n";
+ t << "Title=" << recode(Config_getString(PROJECT_NAME)) << endl << endl;
t << "[WINDOWS]" << endl;
@@ -500,15 +500,15 @@ void HtmlHelp::createProjectFile()
// 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"))
+ if (Config_getBool(BINARY_TOC))
{
- t << "main=\"" << recode(Config_getString("PROJECT_NAME")) << "\",\"index.hhc\","
+ 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\","
+ t << "main=\"" << recode(Config_getString(PROJECT_NAME)) << "\",\"index.hhc\","
"\"index.hhk\",\"" << indexName << "\",\"" <<
indexName << "\",,,,,0x23520,,0x10387e,,,,,,,,0" << endl << endl;
}
@@ -637,7 +637,7 @@ void HtmlHelp::addContentsItem(bool isDir,
// 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)
+ //if(Config_getBool(BINARY_TOC) && isDir)
//{
//file = 0;
//anchor = 0;
@@ -681,7 +681,7 @@ void HtmlHelp::addIndexItem(Definition *context,MemberDef *md,
{
if (md)
{
- static bool separateMemberPages = Config_getBool("SEPARATE_MEMBER_PAGES");
+ static bool separateMemberPages = Config_getBool(SEPARATE_MEMBER_PAGES);
if (context==0) // global member
{
if (md->getGroupDef())