diff options
author | albert-github <albert.tests@gmail.com> | 2014-08-15 12:57:32 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2014-08-15 12:57:32 (GMT) |
commit | 595943c96860425f9086028b00e1e155e8ec434f (patch) | |
tree | 60406c7761f188e2855efaeda06c2fb5bf7ca7f6 /src/doxygen.cpp | |
parent | 7d9d4320f5d183c4e1ebc87a316589c36f0afeed (diff) | |
download | Doxygen-595943c96860425f9086028b00e1e155e8ec434f.zip Doxygen-595943c96860425f9086028b00e1e155e8ec434f.tar.gz Doxygen-595943c96860425f9086028b00e1e155e8ec434f.tar.bz2 |
Support multiple extra HTML stylesheets.
In regular use it happens that it is more convenient to have multiple extra HTML stylesheets, e.g. in case of different levels of requirements: company, department, project
With this patch it is possible to specify multiple HTML stylesheets.
Note: for compatibility the configuration parameter HTML_EXTRA_STYLESHEET has not been renamed to HTM_EXTRA_STYLESHEETS.
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 9260571..0c0e0d6 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -9151,22 +9151,24 @@ static void copyStyleSheet() copyFile(htmlStyleSheet,destFileName); } } - QCString &htmlExtraStyleSheet = Config_getString("HTML_EXTRA_STYLESHEET"); - if (!htmlExtraStyleSheet.isEmpty()) + QStrList htmlExtraStyleSheet = Config_getList("HTML_EXTRA_STYLESHEET"); + for (uint i=0; i<htmlExtraStyleSheet.count(); ++i) { - QFileInfo fi(htmlExtraStyleSheet); - if (!fi.exists()) - { - err("Style sheet '%s' specified by HTML_EXTRA_STYLESHEET does not exist!\n",htmlExtraStyleSheet.data()); - htmlExtraStyleSheet.resize(0); // revert to the default - } - else + QCString fileName(htmlExtraStyleSheet.at(i)); + if (!fileName.isEmpty()) { - QCString destFileName = Config_getString("HTML_OUTPUT")+"/"+fi.fileName().data(); - copyFile(htmlExtraStyleSheet,destFileName); + QFileInfo fi(fileName); + if (!fi.exists()) + { + err("Style sheet '%s' specified by HTML_EXTRA_STYLESHEET does not exist!\n",fileName.data()); + } + else + { + QCString destFileName = Config_getString("HTML_OUTPUT")+"/"+fi.fileName().data(); + copyFile(fileName, destFileName); + } } } - } static void copyLogo() |