summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
authormueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-02-08 18:36:07 (GMT)
committermueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-02-08 18:36:07 (GMT)
commit6e9c313b87a0daa86ca108e93d67fc4c9e5bec68 (patch)
tree918babf3afc522698cc5ff63bd28ff5f8897964a /src/htmlgen.cpp
parent5620fa248663fa5ee8b2d8a26d773df60c2a4994 (diff)
downloadDoxygen-6e9c313b87a0daa86ca108e93d67fc4c9e5bec68.zip
Doxygen-6e9c313b87a0daa86ca108e93d67fc4c9e5bec68.tar.gz
Doxygen-6e9c313b87a0daa86ca108e93d67fc4c9e5bec68.tar.bz2
mods for doxygen-1.0.0
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>";