summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp79
1 files changed, 40 insertions, 39 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index a450f00..f15f287 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -79,25 +79,19 @@ void HtmlGenerator::startFile(const char *name,const char *title,bool external)
else
t << "href=\"";
if (Config::htmlStyleSheet.isEmpty())
+ {
t << "doxygen.css";
+ }
else
+ {
t << Config::htmlStyleSheet;
+ }
t << "\" rel=\"stylesheet\" type=\"text/css\">\n"
"</head><body bgcolor=\"#ffffff\">\n";
}
else
{
- t << substitute(
- substitute(
- substitute(
- substitute(header,"$title",lastTitle),
- "$datetime",dateToString(TRUE)
- ),
- "$date",dateToString(FALSE)
- ),
- "$doxygenversion",versionString
- );
-
+ t << substituteKeywords(header,lastTitle);
}
t << "<!-- Generated by Doxygen " << versionString << " on "
<< dateToString(TRUE) << " -->" << endl;
@@ -138,16 +132,7 @@ void HtmlGenerator::writeFooter(int part,bool external)
if (footer.length()==0)
t << "<hr><address><small>";
else
- t << substitute(
- substitute(
- substitute(
- substitute(footer,"$title",lastTitle),
- "$datetime",dateToString(TRUE)
- ),
- "$date",dateToString(FALSE)
- ),
- "$doxygenversion",versionString
- );
+ t << substituteKeywords(footer,lastTitle);
break;
case 1:
if (footer.length()==0)
@@ -195,24 +180,33 @@ void HtmlGenerator::writeStyleInfo(int part)
{
if (part==0)
{
- startPlainFile("doxygen.css");
- t << "H1 { text-align: center }" << endl;
- t << "A.qindex {}" << endl;
- t << "A.qindexRef {}" << endl;
- t << "A.el { text-decoration: none; font-weight: bold }" << endl;
- t << "A.elRef { font-weight: bold }" << endl;
- t << "A.code { text-decoration: none; font-weight: normal; color: #4444ee }" << endl;
- t << "A.codeRef { font-weight: normal; color: #4444ee }" << endl;
- t << "A.gl:link { color: #ffffff }" << endl;
- t << "A.gl:visited { color: #ffffff }" << endl;
- t << "A.gl { text-decoration: none; font-weight: bold; background-color: " << GROUP_COLOR << " }" << endl;
- t << "DL.el { margin-left: -1cm }" << endl;
- t << "DIV.fragment { width: 100%; border: none; background-color: #eeeeee }" << endl;
- t << "DIV.in { margin-left: 16 }" << endl;
- t << "DIV.ah { background-color: black; margin-bottom: 3; margin-top: 3 }" << endl;
- t << "TD.md { background-color: #f2f2ff }" << endl;
- t << endl;
- endPlainFile();
+ if (Config::htmlStyleSheet.isEmpty()) // write default style sheet
+ {
+ startPlainFile("doxygen.css");
+ t << "H1 { text-align: center }" << endl;
+ t << "A.qindex {}" << endl;
+ t << "A.qindexRef {}" << endl;
+ t << "A.el { text-decoration: none; font-weight: bold }" << endl;
+ t << "A.elRef { font-weight: bold }" << endl;
+ t << "A.code { text-decoration: none; font-weight: normal; color: #4444ee }" << endl;
+ t << "A.codeRef { font-weight: normal; color: #4444ee }" << endl;
+ t << "A.gl:link { color: #ffffff }" << endl;
+ t << "A.gl:visited { color: #ffffff }" << endl;
+ t << "A.gl { text-decoration: none; font-weight: bold; background-color: " << GROUP_COLOR << " }" << endl;
+ t << "DL.el { margin-left: -1cm }" << endl;
+ t << "DIV.fragment { width: 100%; border: none; background-color: #eeeeee }" << endl;
+ t << "DIV.in { margin-left: 16 }" << endl;
+ t << "DIV.ah { background-color: black; margin-bottom: 3; margin-top: 3 }" << endl;
+ t << "TD.md { background-color: #f2f2ff }" << endl;
+ t << endl;
+ endPlainFile();
+ }
+ else // write user defined style sheet
+ {
+ startPlainFile(Config::htmlStyleSheet);
+ t << fileToString(Config::htmlStyleSheet);
+ endPlainFile();
+ }
}
}
@@ -372,6 +366,13 @@ void HtmlGenerator::writeHtmlLink(const char *url,const char *text)
t << "</a>";
}
+void HtmlGenerator::writeMailLink(const char *url)
+{
+ t << "<a href=\"mailto:" << url << "\">";
+ docify(url);
+ t << "</a>";
+}
+
void HtmlGenerator::startGroupHeader()
{
t << "<h2>";