doxygen/doxygen-1.6.3-modify_footer.patch

59 lines
2.6 KiB
Diff
Raw Normal View History

diff -U 3 -H -d -r -N -- doxygen-1.6.3/src/config.xml doxygen-1.6.3.modify_footer/src/config.xml
--- doxygen-1.6.3/src/config.xml 2010-02-13 15:19:31.000000000 +0100
+++ doxygen-1.6.3.modify_footer/src/config.xml 2010-02-21 15:52:16.000000000 +0100
@@ -741,6 +741,10 @@
If the GENERATE_HTML tag is set to YES (the default) Doxygen will
generate HTML output.
' defval='1'/>
+ <option type='bool' id='HTML_FOOTER_DESCRIPTION' docs='
+The HTML_FOOTER_DATE_AND_PROJECT_NAME tag can be used to add build date,
+project name and Doxygen version to HTML footer.
+' defval='0' depends='GENERATE_HTML'/>
<option type='string' id='HTML_OUTPUT' format='dir' docs='
The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
If a relative path is entered the value of OUTPUT_DIRECTORY will be
diff -U 3 -H -d -r -N -- doxygen-1.6.3/src/configoptions.cpp doxygen-1.6.3.modify_footer/src/configoptions.cpp
--- doxygen-1.6.3/src/configoptions.cpp 2010-02-13 15:19:33.000000000 +0100
+++ doxygen-1.6.3.modify_footer/src/configoptions.cpp 2010-02-21 15:52:16.000000000 +0100
@@ -1051,6 +1051,15 @@
TRUE
);
//----
+ cb = cfg->addBool(
+ "HTML_FOOTER_DESCRIPTION",
+ "If the HTML_FOOTER_DESCRIPTION tag is set to YES, Doxygen will \n"
+ "add generated date, project name and doxygen version to HTML footer.",
+ FALSE
+ );
+ //cs->setDefaultValue("FALSE");
+ cs->addDependency("GENERATE_HTML");
+ //----
cs = cfg->addString(
"HTML_OUTPUT",
"The HTML_OUTPUT tag is used to specify where the HTML docs will be put.\n"
diff -U 3 -H -d -r -N -- doxygen-1.6.3/src/htmlgen.cpp doxygen-1.6.3.modify_footer/src/htmlgen.cpp
--- doxygen-1.6.3/src/htmlgen.cpp 2010-01-04 22:22:05.000000000 +0100
+++ doxygen-1.6.3.modify_footer/src/htmlgen.cpp 2010-02-21 15:56:21.000000000 +0100
@@ -787,10 +787,18 @@
{
QTextStream t(&file);
t << "<hr class=\"footer\"/><address style=\"text-align: right;\"><small>\n";
- t << theTranslator->trGeneratedAt( "$datetime", "$projectname" );
- t << "&nbsp;<a href=\"http://www.doxygen.org/index.html\">"
+ if (Config_getBool("HTML_FOOTER_DESCRIPTION"))
+ {
+ t << theTranslator->trGeneratedAt( "$datetime", "$projectname" );
+ t << "&nbsp";
+ }
+ t << "<a href=\"http://www.doxygen.org/index.html\">"
<< "<img class=\"footer\" src=\"doxygen.png\" alt=\"doxygen\"/>"
- << "</a> $doxygenversion";
+ << "</a>";
+ if (Config_getBool("HTML_FOOTER_DESCRIPTION"))
+ {
+ t << " $doxygenversion";
+ }
t << "</small></address>\n"
<< "</body>\n"
<< "</html>\n";