summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2009-06-22 20:14:03 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2009-06-22 20:14:03 (GMT)
commitb70a5b4f9325ec703db37394feeaa9ebc11228b4 (patch)
tree2f918f7da3205101b2a8a300ee9afefe247b3f24 /src/htmlgen.cpp
parent8375a55083e5232e65493e73cb594c9c5e9552ab (diff)
downloadDoxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.zip
Doxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.tar.gz
Doxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.tar.bz2
Release-1.5.9-20090622
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp272
1 files changed, 255 insertions, 17 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index 49dd8e2..0383f55 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -48,9 +48,11 @@ static const char defaultStyleSheet[] =
#include "doxygen_css.h"
;
+#if 0 // old PHP based search engine
static const char search_script[]=
#include "search_php.h"
;
+#endif
static QCString g_header;
static QCString g_footer;
@@ -347,6 +349,141 @@ static unsigned char tab_r_gif[] = {
};
static unsigned int tab_r_gif_len = 2585;
+static unsigned char search_png[] = {
+ 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
+ 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x10,
+ 0x08, 0x02, 0x00, 0x00, 0x00, 0x99, 0x7a, 0xc8, 0x4c, 0x00, 0x00, 0x01,
+ 0xd6, 0x49, 0x44, 0x41, 0x54, 0x28, 0x15, 0x8d, 0x92, 0xbb, 0xae, 0x41,
+ 0x51, 0x10, 0x86, 0xcf, 0x66, 0x0b, 0x22, 0x44, 0x23, 0x4a, 0x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 0x70, 0x10, 0x05, 0x35, 0x1a, 0x0d, 0x8a,
+ 0x9b, 0xcd, 0xa6, 0x50, 0x28, 0xac, 0xd7, 0x6b, 0x87, 0xc3, 0x91, 0xcd,
+ 0x66, 0x59, 0xc1, 0x0f, 0xeb, 0xf1, 0xbd, 0xb5, 0x2d, 0x5e, 0x85, 0x0a,
+ 0xa6, 0x5c, 0x09, 0xa2, 0xb5, 0x58, 0x2c, 0xe0, 0xa3, 0x92, 0xc9, 0x64,
+ 0x02, 0x81, 0xc0, 0x33, 0x59, 0x70, 0x04, 0xff, 0x29, 0x47, 0x0a, 0xfe,
+ 0x7c, 0x3e, 0x9f, 0xcd, 0x66, 0xb1, 0x58, 0x8c, 0x5f, 0xe0, 0x09, 0xf6,
+ 0x68, 0x1b, 0xdc, 0x53, 0x42, 0x08, 0x11, 0x3f, 0x1e, 0x8f, 0xcc, 0x8f,
+ 0xb5, 0xbf, 0xfe, 0x67, 0x0f, 0x32, 0xd0, 0xdf, 0x0d, 0xbf, 0xb6, 0xf0,
+ 0x56, 0xfa, 0x1b, 0x21, 0x36, 0x05, 0xd3, 0x4d, 0xe6, 0x17, 0x7f, 0x00,
+ 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
+};
+static unsigned int search_png_len = 527;
+
+static unsigned char close_png[] = {
+ 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
+ 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x0f,
+ 0x08, 0x02, 0x00, 0x00, 0x00, 0x5b, 0x76, 0x69, 0x23, 0x00, 0x00, 0x01,
+ 0xa0, 0x49, 0x44, 0x41, 0x54, 0x28, 0x15, 0x8d, 0x91, 0x3b, 0xaf, 0x01,
+ 0x51, 0x14, 0x85, 0xef, 0x3c, 0x5c, 0x42, 0xbc, 0x49, 0xbc, 0x12, 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c1, 0x09, 0x55, 0xc4, 0x62, 0xb1, 0x58, 0x3a, 0x9d, 0xe6, 0x2a, 0x38,
+ 0x9f, 0x0f, 0x8b, 0x18, 0x73, 0x49, 0xa5, 0x52, 0x99, 0x4c, 0xc6, 0xe9,
+ 0x74, 0xf2, 0x46, 0x7c, 0xc6, 0x07, 0xc8, 0x99, 0x4c, 0xec, 0x1f, 0x55,
+ 0x51, 0x47, 0x23, 0xd1, 0x4b, 0x5c, 0xff, 0xec, 0x3f, 0x83, 0x85, 0xe4,
+ 0x1a, 0x44, 0x83, 0x01, 0xb3, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e,
+ 0x44, 0xae, 0x42, 0x60, 0x82
+};
+static unsigned int close_png_len = 473;
+
+static unsigned char close_active_png[] = {
+ 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
+ 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x0f,
+ 0x08, 0x02, 0x00, 0x00, 0x00, 0x5b, 0x76, 0x69, 0x23, 0x00, 0x00, 0x01,
+ 0xa0, 0x49, 0x44, 0x41, 0x54, 0x28, 0x15, 0x8d, 0x91, 0x3d, 0x8f, 0x01,
+ 0x51, 0x14, 0x86, 0x77, 0x3e, 0xd6, 0x47, 0x22, 0xbe, 0x82, 0x10, 0x14,
+ 0xa2, 0x21, 0x12, 0x09, 0x89, 0x0a, 0x85, 0x4a, 0x68, 0xf4, 0x12, 0x3f,
+ 0x82, 0x52, 0xaf, 0x92, 0x68, 0x75, 0x5a, 0x7f, 0x41, 0x42, 0x47, 0xa3,
+ 0xa0, 0x42, 0x68, 0x49, 0x44, 0x47, 0x10, 0xf1, 0x11, 0xec, 0x33, 0x7b,
+ 0x67, 0xb7, 0xd8, 0x6a, 0x4f, 0x32, 0x33, 0x77, 0xee, 0x79, 0xce, 0x7b,
+ 0xdf, 0x73, 0xae, 0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, 0x00, 0x00, 0x49, 0x45, 0x4e,
+ 0x44, 0xae, 0x42, 0x60, 0x82
+};
+static unsigned int close_active_png_len = 473;
static const char tabs_css[] =
"/* tabs styles, based on http://www.alistapart.com/articles/slidingdoors */\n"
@@ -408,7 +545,7 @@ static const char tabs_css[] =
" white-space : nowrap;\n"
"}\n"
"\n"
-"DIV.tabs INPUT\n"
+"DIV.tabs #MSearchBox\n"
"{\n"
" float : right;\n"
" display : inline;\n"
@@ -456,25 +593,15 @@ static const char tabs_css[] =
"}\n"
;
-struct tab_data_item
+struct img_data_item
{
const char *name;
unsigned char *content;
unsigned int len;
};
-static tab_data_item tab_data[] =
+static void writeImgData(const char *dir,img_data_item *data)
{
- { "tab_b.gif", tab_b_gif, tab_b_gif_len },
- { "tab_l.gif", tab_l_gif, tab_l_gif_len },
- { "tab_r.gif", tab_r_gif, tab_r_gif_len },
- { "tabs.css", (unsigned char *)tabs_css, 0 },
- { 0, 0, 0 }
-};
-
-static void writeTabData(const char *dir)
-{
- tab_data_item *data = tab_data;
while (data->name)
{
QCString fileName;
@@ -493,6 +620,34 @@ static void writeTabData(const char *dir)
}
}
+static img_data_item tab_data[] =
+{
+ { "tab_b.gif", tab_b_gif, tab_b_gif_len },
+ { "tab_l.gif", tab_l_gif, tab_l_gif_len },
+ { "tab_r.gif", tab_r_gif, tab_r_gif_len },
+ { "tabs.css", (unsigned char *)tabs_css, 0 },
+ { 0, 0, 0 }
+};
+
+static void writeTabData(const char *dir)
+{
+ writeImgData(dir,tab_data);
+}
+
+static img_data_item search_data[] =
+{
+ { "search.png", search_png, search_png_len },
+ { "close.png", close_png, close_png_len },
+ { "close_active.png", close_active_png, close_active_png_len },
+ { 0, 0, 0 }
+};
+
+void HtmlGenerator::writeSearchData(const char *dir)
+{
+ writeImgData(dir,search_data);
+}
+
+
//------------------------------------------------------------------------
unsigned char open_gif[] = {
@@ -568,6 +723,12 @@ static void writeDefaultHeaderFile(QTextStream &t, const char *title,
else
relPathStr=relPath;
+ static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
+ static bool searchEngine = Config_getBool("SEARCHENGINE");
+ if (searchEngine && !generateTreeView)
+ {
+ t << "<!-- This comment will put IE 6, 7 and 8 in quirks mode -->" << endl;
+ }
// t << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
// t << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
t << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
@@ -577,6 +738,11 @@ static void writeDefaultHeaderFile(QTextStream &t, const char *title,
t << convertToHtml(title);
t << "</title>\n";
t << "<link href=\"" << relPathStr << "tabs.css\" rel=\"stylesheet\" type=\"text/css\"/>\n";
+ if (searchEngine && !generateTreeView)
+ {
+ t << "<link href=\"" << relPathStr << "search/search.css\" rel=\"stylesheet\" type=\"text/css\"/>\n";
+ t << "<script type=\"text/javaScript\" src=\"" << relPathStr << "search/search.js\"></script>\n";
+ }
t << "<link ";
t << "href=\"";
if (Config_getString("HTML_STYLESHEET").isEmpty())
@@ -595,7 +761,15 @@ static void writeDefaultHeaderFile(QTextStream &t, const char *title,
}
t << "\" rel=\"stylesheet\" type=\"text/css\"/>\n";
- t << "</head>\n<body>\n";
+ t << "</head>\n";
+ if (searchEngine && !generateTreeView)
+ {
+ t << "<body onload='searchBox.OnSelectItem(0);'>\n";
+ }
+ else
+ {
+ t << "<body>\n";
+ }
}
@@ -706,12 +880,51 @@ void HtmlGenerator::startFile(const char *name,const char *,
}
t << "<!-- " << theTranslator->trGeneratedBy() << " Doxygen "
<< versionString << " -->" << endl;
+ static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
+ static bool searchEngine = Config_getBool("SEARCHENGINE");
+ if (searchEngine && !generateTreeView)
+ {
+ t << "<script type=\"text/javascript\"><!--\n";
+ t << "var searchBox = new SearchBox(\"searchBox\", \""
+ << relPath<< "search\",false);\n";
+ t << "--></script>\n";
+ }
generateDynamicSections(t,relPath);
}
+void HtmlGenerator::writeSearchFooter(QTextStream &t,const QCString &relPath)
+{
+ t << "<!--- window showing the filter options -->\n";
+ t << "<div id=\"MSearchSelectWindow\"\n";
+ t << " onmouseover=\"return searchBox.OnSearchSelectShow()\"\n";
+ t << " onmouseout=\"return searchBox.OnSearchSelectHide()\">\n";
+ writeSearchCategories(t);
+ t << "</div>\n";
+ t << "\n";
+ t << "<!-- iframe showing the search results (closed by default) -->\n";
+ t << "<div id=\"MSearchResultsWindow\">\n";
+ t << "<a href=\"javascript:searchBox.CloseResultsWindow()\" \n";
+ t << " id=\"MSearchResultsWindowClose\"\n";
+ t << " onmouseover=\"return searchBox.OnCloseHighlight(true)\"\n";
+ t << " onmouseout=\"return searchBox.OnCloseHighlight(false)\">"
+ << "<img border=\"0\" src=\"" << relPath << "search/close.png\" "
+ << "alt=\"\"/></a>\n";
+ t << "<iframe src=\"\" frameborder=\"0\" \n";
+ t << " name=\"MSearchResults\" id=\"MSearchResults\">\n";
+ t << "</iframe>\n";
+ t << "</div>\n";
+ t << "\n";
+}
+
static void writePageFooter(QTextStream &t,const QCString &lastTitle,
const QCString relPath)
{
+ static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
+ static bool searchEngine = Config_getBool("SEARCHENGINE");
+ if (searchEngine && !generateTreeView)
+ {
+ HtmlGenerator::writeSearchFooter(t,relPath);
+ }
if (g_footer.isEmpty())
{
t << "<hr size=\"1\"/><address style=\"text-align: right;\"><small>";
@@ -988,8 +1201,9 @@ void HtmlGenerator::endTextLink()
void HtmlGenerator::startHtmlLink(const char *url)
{
+ static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
t << "<a ";
- if (usingTreeIndex()) t << "target=\"top\" ";
+ if (generateTreeView) t << "target=\"top\" ";
t << "href=\"";
if (url) t << url;
t << "\">";
@@ -1151,6 +1365,8 @@ void HtmlGenerator::endClassDiagram(const ClassDiagram &d,
t << "_map\" alt=\"\"/>" << endl;
t << "<map id=\"";
docify(name);
+ t << "_map\" name=\"";
+ docify(name);
t << "_map\">" << endl;
d.writeImage(t,dir,relPath,fileName);
@@ -1273,7 +1489,7 @@ void HtmlGenerator::startMemberSections()
{
t << "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">" << endl;
// HTML is not recursively decomposable, sorry
- t << "<tr><td></td></tr>" << endl;
+ //t << "<tr><td></td></tr>" << endl;
}
}
@@ -1291,7 +1507,7 @@ void HtmlGenerator::startMemberHeader()
DBG_HTML(t << "<!-- startMemberHeader -->" << endl)
if (Config_getBool("HTML_ALIGN_MEMBERS"))
{
- t << "<tr><td colspan=\"2\"><br/><h2>";
+ t << "<tr><td colspan=\"2\"><h2>";
}
else
{
@@ -1840,6 +2056,7 @@ static void renderQuickLinksAsTabs(QTextStream &t,const QCString &relPath,
}
if (hlEntry->parent()==LayoutDocManager::instance().rootNavEntry())
{
+#if 0 // old PHP based search engine
// last item of the top row -> special case for search engine
if (Config_getBool("SEARCHENGINE"))
{
@@ -1864,6 +2081,25 @@ static void renderQuickLinksAsTabs(QTextStream &t,const QCString &relPath,
{
endQuickIndexList(t,TRUE);
}
+#endif
+ static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
+ static bool searchEngine = Config_getBool("SEARCHENGINE");
+ if (searchEngine && !generateTreeView)
+ {
+ t << " <li>\n";
+ t << " <div id=\"MSearchBox\" class=\"MSearchBoxInactive\">\n";
+ t << " <img id=\"MSearchSelect\" src=\"" << relPath << "search/search.png\"\n";
+ t << " onmouseover=\"return searchBox.OnSearchSelectShow()\"\n";
+ t << " onmouseout=\"return searchBox.OnSearchSelectHide()\"\n";
+ t << " alt=\"\"/>\n";
+ t << " <input type=\"text\" id=\"MSearchField\" value=\"Search\" \n";
+ t << " onfocus=\"searchBox.OnSearchFieldFocus(true)\" \n";
+ t << " onblur=\"searchBox.OnSearchFieldFocus(false)\" \n";
+ t << " onkeyup=\"searchBox.OnSearchFieldChange()\"/>\n";
+ t << " </div>\n";
+ t << " </li>\n";
+ }
+ endQuickIndexList(t,TRUE);
}
else // normal case
{
@@ -1953,6 +2189,7 @@ void HtmlGenerator::writeQuickLinks(bool compact,HighlightedItem hli)
writeDefaultQuickLinks(t,compact,hli,relPath);
}
+#if 0 // old PHP based search results page
void HtmlGenerator::writeSearchPage()
{
if (Config_getBool("SEARCHENGINE") && Config_getBool("GENERATE_HTML"))
@@ -2030,6 +2267,7 @@ void HtmlGenerator::writeSearchPage()
}
}
}
+#endif
void HtmlGenerator::generateSectionImages()
{