70static constexpr auto hex=
"0123456789ABCDEF";
78 t <<
" <div id=\"MSearchBox\" class=\"MSearchBoxInactive\">\n";
79 t <<
" <span class=\"left\">\n";
80 t <<
" <span id=\"MSearchSelect\" class=\"search-icon\" ";
81 t <<
"onmouseover=\"return searchBox.OnSearchSelectShow()\" ";
82 t <<
"onmouseout=\"return searchBox.OnSearchSelectHide()\">";
83 t <<
"<span class=\"search-icon-dropdown\"></span></span>\n";
84 t <<
" <input type=\"text\" id=\"MSearchField\" value=\"\" placeholder=\""
86 t <<
" onfocus=\"searchBox.OnSearchFieldFocus(true)\" \n";
87 t <<
" onblur=\"searchBox.OnSearchFieldFocus(false)\" \n";
88 t <<
" onkeyup=\"searchBox.OnSearchFieldChange(event)\"/>\n";
89 t <<
" </span><span class=\"right\">\n";
90 t <<
" <a id=\"MSearchClose\" href=\"javascript:searchBox.CloseResultsWindow()\">"
91 <<
"<div id=\"MSearchCloseImg\" class=\"close-icon\"></div></a>\n";
101 t <<
" <div id=\"MSearchBox\" class=\"MSearchBoxInactive\">\n";
102 t <<
" <div class=\"left\">\n";
103 t <<
" <form id=\"FSearchBox\" action=\"" << relPath;
112 t <<
"\" method=\"get\">\n";
113 t <<
" <span id=\"MSearchSelectExt\" class=\"search-icon\"></span>\n";
116 t <<
" <input type=\"text\" id=\"MSearchField\" name=\"query\" value=\"\" placeholder=\""
117 <<
theTranslator->trSearch() <<
"\" size=\"20\" accesskey=\"S\" \n";
118 t <<
" onfocus=\"searchBox.OnSearchFieldFocus(true)\" \n";
119 t <<
" onblur=\"searchBox.OnSearchFieldFocus(false)\"/>\n";
121 t <<
" </div><div class=\"right\"></div>\n";
152 if (macrofile.
isEmpty())
return "";
157 const char *data = s.
data();
166 while (i < size && (data[i] ==
' ' || data[i] ==
'\t' || data[i] ==
'\n'))
168 if (data[i] ==
'\n') line++;
171 if (i >= size)
break;
175 warn(macrofile,line,
"file contains non valid code, expected '\\' got '{:c}'",data[i]);
181 i += strlen(
"newcommand");
185 i += strlen(
"renewcommand");
189 warn(macrofile,line,
"file contains non valid code, expected 'newcommand' or 'renewcommand'");
195 warn(macrofile,line,
"file contains non valid code, expected '{{' got '{:c}'",data[i]);
201 warn(macrofile,line,
"file contains non valid code, expected '\\' got '{:c}'",data[i]);
207 while (i < size && (data[i] !=
'}')) out.
addChar(data[i++]);
210 warn(macrofile,line,
"file contains non valid code, no closing '}}' for command");
223 while (i < size && (data[i] !=
']')) nr += data[i++];
226 warn(macrofile,line,
"file contains non valid code, no closing ']'");
231 else if (data[i] !=
'{')
233 warn(macrofile,line,
"file contains non valid code, expected '[' or '{{' got '{:c}'",data[i]);
240 warn(macrofile,line,
"file contains non valid code, expected '{{' got '{:c}'",data[i]);
248 while (i < size && cnt)
262 else if (data[i] !=
'"') out.
addChar(data[i++]);
288 warn(macrofile,line,
"file contains non valid code, no closing '}}' for replacement");
345 bool hasProjectName = !projectName.
isEmpty();
352 bool hasCookie = treeView || searchEngine ||
Config_getEnum(HTML_COLORSTYLE)==HTML_COLORSTYLE_t::TOGGLE;
353 static bool titleArea = (hasProjectName || hasProjectBrief || hasProjectLogo || (disableIndex && searchEngine));
358 cssFile =
"doxygen.css";
371 cssFile =
"doxygen.css";
378 for (
const auto &fileName : extraCssFile)
380 if (!fileName.empty())
382 QCString htmlStyleSheet = fileName.c_str();
385 extraCssText +=
"<link href=\""+htmlStyleSheet+
"\" rel=\"stylesheet\" type=\"text/css\"/>\n";
392 extraCssText +=
"<link href=\"$relpath^"+
stripPath(fileName.c_str())+
"\" rel=\"stylesheet\" type=\"text/css\"/>\n";
400 case TIMESTAMP_t::YES:
401 case TIMESTAMP_t::DATETIME:
405 case TIMESTAMP_t::DATE:
409 case TIMESTAMP_t::NO:
415 treeViewCssJs =
"<link href=\"$relpath^navtree.css\" rel=\"stylesheet\" type=\"text/css\"/>\n"
416 "<script type=\"text/javascript\" src=\"$relpath^navtreedata.js\"></script>\n"
417 "<script type=\"text/javascript\" src=\"$relpath^navtree.js\"></script>\n";
419 treeViewCssJs +=
"<script type=\"text/javascript\" src=\"$relpath^resize.js\"></script>\n";
423 searchCssJs =
"<link href=\"$relpath^search/search.css\" rel=\"stylesheet\" type=\"text/css\"/>\n";
424 if (!serverBasedSearch)
426 searchCssJs +=
"<script type=\"text/javascript\" src=\"$relpath^search/searchdata.js\"></script>\n";
428 searchCssJs +=
"<script type=\"text/javascript\" src=\"$relpath^search/search.js\"></script>\n";
430 if (!serverBasedSearch)
434 searchCssJs +=
"<script type=\"text/javascript\">\n"
435 "/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */\n"
436 " $(function() { init_search(); });\n"
437 "/* @license-end */\n"
445 searchCssJs +=
"<script type=\"text/javascript\">\n"
446 "/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */\n"
448 " if ($('.searchresults').length > 0) { searchBox.DOMSearchField().focus(); }\n"
450 " /* @license-end */\n"
455 searchCssJs +=
"<link rel=\"search\" href=\"" + relPath +
456 "search_opensearch.php?v=opensearch.xml\" "
457 "type=\"application/opensearchdescription+xml\" title=\"" +
458 (hasProjectName ? projectName :
QCString(
"Doxygen")) +
474 switch (mathJaxVersion)
476 case MATHJAX_VERSION_t::MathJax_3:
479 "<script type=\"text/javascript\">\n"
480 "window.MathJax = {\n"
482 " ignoreHtmlClass: 'tex2jax_ignore',\n"
483 " processHtmlClass: 'tex2jax_process'\n"
489 if (!mathJaxExtensions.empty())
492 mathJaxJs+=
" loader: {\n"
494 for (
const auto &s : mathJaxExtensions)
496 if (!first) mathJaxJs+=
",";
497 mathJaxJs+=
"'[tex]/"+
QCString(s.c_str())+
"'";
503 mathJaxJs+=
" tex: {\n"
510 " packages: ['base','configmacros'";
513 mathJaxJs+=
",'newcommand'";
515 for (
const auto &s : mathJaxExtensions)
517 mathJaxJs+=
",'"+
QCString(s.c_str())+
"'";
533 mathJaxJs +=
"</script>\n";
534 mathJaxJs +=
"<script type=\"text/javascript\" id=\"MathJax-script\" async=\"async\" src=\"" +
535 path +
"es5/tex-" + mathJaxFormat.
lower() +
".js\">";
536 mathJaxJs+=
"</script>\n";
539 case MATHJAX_VERSION_t::MathJax_2:
541 mathJaxJs =
"<script type=\"text/x-mathjax-config\">\n"
542 "MathJax.Hub.Config({\n"
543 " extensions: [\"tex2jax.js\"";
545 for (
const auto &s : mathJaxExtensions)
547 mathJaxJs+=
", \""+
QCString(s.c_str())+
".js\"";
551 mathJaxFormat =
"HTML-CSS";
554 " jax: [\"input/TeX\",\"output/"+mathJaxFormat+
"\"],\n";
557 mathJaxJs +=
" TeX: { Macros: {\n";
562 mathJaxJs +=
"});\n";
568 mathJaxJs +=
"</script>\n";
569 mathJaxJs +=
"<script type=\"text/javascript\" async=\"async\" src=\"" + path +
"MathJax.js\"></script>\n";
578 darkModeJs=
"<script type=\"text/javascript\" src=\"$relpath^darkmode_toggle.js\"></script>\n";
583 treeViewCssJs+=
"<script type=\"text/javascript\" src=\"$relpath^cookie.js\"></script>\n";
596 {
"$navpath", [&]() {
return navPath; } },
597 {
"$stylesheet", [&]() {
return cssFile; } },
598 {
"$treeview", [&]() {
return treeViewCssJs; } },
599 {
"$searchbox", [&]() {
return searchBox; } },
600 {
"$search", [&]() {
return searchCssJs; } },
601 {
"$mathjax", [&]() {
return mathJaxJs; } },
602 {
"$darkmode", [&]() {
return darkModeJs; } },
603 {
"$generatedby", [&]() {
return generatedBy; } },
604 {
"$extrastylesheet",[&]() {
return extraCssText; } },
605 {
"$relpath$", [&]() {
return relPath; } }
608 result =
substitute(result,
"$relpath^",relPath);
614 {
"FULL_SIDEBAR", hasFullSideBar },
615 {
"DISABLE_INDEX", disableIndex },
616 {
"GENERATE_TREEVIEW", treeView },
617 {
"SEARCHENGINE", searchEngine },
618 {
"TITLEAREA", titleArea },
619 {
"PROJECT_NAME", hasProjectName },
620 {
"PROJECT_NUMBER", hasProjectNumber },
621 {
"PROJECT_BRIEF", hasProjectBrief },
622 {
"PROJECT_LOGO", hasProjectLogo },
623 {
"PROJECT_ICON", hasProjectIcon },
624 {
"COPY_CLIPBOARD", hasCopyClipboard },
640 while ((i=definitions.
find(
'\n',p))!=-1)
645 int separator = line.
find(
':');
646 assert(separator!=-1);
647 std::string key = line.
left(separator).
str();
651 map.emplace(key,value);
662 if (colorStyle==HTML_COLORSTYLE_t::LIGHT)
666 else if (colorStyle==HTML_COLORSTYLE_t::DARK)
678 while ((i=input.
find(
"var(",p))!=-1)
681 int j=input.
find(
")",i+4);
683 auto it = mapping.find(input.
mid(i+4,j-i-4).
str());
684 if (it==mapping.end())
686 err(
"failed to find value variable {}. It is not longer defined in doxygen.css\n",input.
mid(i+4,j-i-4));
691 output.
addStr(it->second);
701 if (colorStyle==HTML_COLORSTYLE_t::LIGHT)
705 else if (colorStyle==HTML_COLORSTYLE_t::DARK)
741 const char *p=str.
data();
754 int spacesToNextTabStop = tabSize - (
m_col%tabSize);
755 while (spacesToNextTabStop--)
774 case '\'': *
m_t <<
"'";
m_col++;
776 case '"': *
m_t <<
""";
m_col++;
780 { *
m_t <<
"<"; p++; }
782 { *
m_t <<
">"; p++; }
784 { *
m_t <<
"\\‍(";
m_col++;p++; }
786 { *
m_t <<
"\\‍)";
m_col++;p++; }
793 uint8_t uc =
static_cast<uint8_t
>(c);
796 *
m_t <<
"$" <<
hex[uc>>4] <<
hex[uc&0xF] <<
";";
840 const QCString &anchor,
int l,
bool writeLineAnchor)
844 const int maxLineNrStr = 10;
845 char lineNumber[maxLineNrStr];
846 char lineAnchor[maxLineNrStr];
847 qsnprintf(lineNumber,maxLineNrStr,
"%5d",l);
848 qsnprintf(lineAnchor,maxLineNrStr,
"l%05d",l);
852 *
m_t <<
"<div class=\"line\">";
856 if (writeLineAnchor) *
m_t <<
"<a id=\"" << lineAnchor <<
"\" name=\"" << lineAnchor <<
"\"></a>";
857 *
m_t <<
"<span class=\"lineno\">";
895 *
m_t <<
"<a class=\"" << className <<
"Ref\" ";
900 *
m_t <<
"<a class=\"" << className <<
"\" ";
920 *
m_t <<
"<div class=\"ttc\" id=\"" <<
id <<
"\">";
921 *
m_t <<
"<div class=\"ttname\">";
924 *
m_t <<
"<a href=\"";
940 *
m_t <<
"<div class=\"ttdeci\">";
947 *
m_t <<
"<div class=\"ttdoc\">";
954 *
m_t <<
"<div class=\"ttdef\"><b>" <<
theTranslator->trDefinition() <<
"</b> ";
957 *
m_t <<
"<a href=\"";
973 *
m_t <<
"<div class=\"ttdecl\"><b>" <<
theTranslator->trDeclaration() <<
"</b> ";
976 *
m_t <<
"<a href=\"";
1000 *
m_t <<
"<div class=\"line\">";
1023 *
m_t <<
"<span class=\"" << s <<
"\">";
1035 *
m_t <<
"<a id=\"" << anchor <<
"\" name=\"" << anchor <<
"\"></a>";
1040 *
m_t <<
"<div class=\"fragment\">";
1048 *
m_t <<
"</div><!-- fragment -->";
1057 const int maxLineNrStr = 10;
1058 char lineNumber[maxLineNrStr];
1059 qsnprintf(lineNumber,maxLineNrStr,
"%05d",lineNr);
1060 *
m_t <<
"<div class=\"foldopen\" id=\"foldopen" << lineNumber <<
1061 "\" data-start=\"" << startMarker <<
1062 "\" data-end=\"" << endMarker <<
1066 *
m_t <<
"<div class=\"line\">";
1073 *
m_t <<
"<div class=\"line\">";
1152 term(
"Could not create output directory {}\n",dname);
1331 searchCss = mgr.
getAsString(
"search_sidebar.css");
1337 searchCss = mgr.
getAsString(
"search_nomenu_toggle.css");
1346 searchCss = mgr.
getAsString(
"search_fixedtabs.css");
1353 searchCss += mgr.
getAsString(
"search_common.css");
1354 searchCss =
substitute(searchCss,
"$doxygenversion",getDoxygenVersion());
1362 t <<
"/* The standard CSS for doxygen " << getDoxygenVersion() <<
"*/\n\n";
1365 case HTML_COLORSTYLE_t::LIGHT:
1366 case HTML_COLORSTYLE_t::DARK:
1369 case HTML_COLORSTYLE_t::AUTO_LIGHT:
1370 case HTML_COLORSTYLE_t::TOGGLE:
1375 case HTML_COLORSTYLE_t::AUTO_DARK:
1381 if (
Config_getEnum(HTML_COLORSTYLE)==HTML_COLORSTYLE_t::AUTO_LIGHT)
1383 t <<
"@media (prefers-color-scheme: dark) {\n";
1384 t <<
" html:not(.dark-mode) {\n";
1385 t <<
" color-scheme: dark;\n\n";
1389 else if (
Config_getEnum(HTML_COLORSTYLE)==HTML_COLORSTYLE_t::AUTO_DARK)
1391 t <<
"@media (prefers-color-scheme: light) {\n";
1392 t <<
" html:not(.light-mode) {\n";
1393 t <<
" color-scheme: light;\n\n";
1397 else if (
Config_getEnum(HTML_COLORSTYLE)==HTML_COLORSTYLE_t::TOGGLE)
1399 t <<
"html.dark-mode {\n";
1410 " border-bottom: none;\n"
1411 " background-color: var(--nav-background-color);\n"
1412 " border-right: 1px solid var(--nav-border-color);\n"
1420 bool addScrollbarStyling =
Config_getList(HTML_EXTRA_STYLESHEET).empty();
1421 if (addScrollbarStyling)
1436 t <<
"<!-- HTML header for doxygen " << getDoxygenVersion() <<
"-->\n";
1442 t <<
"<!-- HTML footer for doxygen " << getDoxygenVersion() <<
"-->\n";
1469 << getDoxygenVersion() <<
" -->\n";
1473 m_t <<
"<script type=\"text/javascript\">\n";
1474 m_t <<
"/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */\n";
1475 m_t <<
"var searchBox = new SearchBox(\"searchBox\", \""
1477 m_t <<
"/* @license-end */\n";
1478 m_t <<
"</script>\n";
1482 m_t <<
"<script type=\"text/javascript\">\n";
1483 m_t <<
"/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */\n";
1484 m_t <<
"$(function() { codefold.init(); });\n";
1485 m_t <<
"/* @license-end */\n";
1486 m_t <<
"</script>\n";
1495 if (searchEngine && !serverBasedSearch)
1497 t <<
"<!-- window showing the filter options -->\n";
1498 t <<
"<div id=\"MSearchSelectWindow\"\n";
1499 t <<
" onmouseover=\"return searchBox.OnSearchSelectShow()\"\n";
1500 t <<
" onmouseout=\"return searchBox.OnSearchSelectHide()\"\n";
1501 t <<
" onkeydown=\"return searchBox.OnSearchSelectKey(event)\">\n";
1504 t <<
"<!-- iframe showing the search results (closed by default) -->\n";
1505 t <<
"<div id=\"MSearchResultsWindow\">\n";
1506 t <<
"<div id=\"MSearchResults\">\n";
1507 t <<
"<div class=\"SRPage\">\n";
1508 t <<
"<div id=\"SRIndex\">\n";
1509 t <<
"<div id=\"SRResults\"></div>\n";
1510 t <<
"<div class=\"SRStatus\" id=\"Loading\">" <<
theTranslator->trLoading() <<
"</div>\n";
1511 t <<
"<div class=\"SRStatus\" id=\"Searching\">" <<
theTranslator->trSearching() <<
"</div>\n";
1512 t <<
"<div class=\"SRStatus\" id=\"NoMatches\">" <<
theTranslator->trNoMatches() <<
"</div>\n";
1532 case TIMESTAMP_t::YES:
1533 case TIMESTAMP_t::DATETIME:
1539 case TIMESTAMP_t::DATE:
1545 case TIMESTAMP_t::NO:
1549 result +=
" \n<a href=\"https://www.doxygen.org/index.html\">\n"
1550 "<img class=\"footer\" src=\"";
1552 result +=
"doxygen.svg\" width=\"104\" height=\"31\" alt=\"doxygen\"/></a> ";
1553 result += getDoxygenVersion();
1581 m_t <<
"<h3 class=\"version\">";
1610 err(
"style sheet {} does not exist or is not readable!\n",
Config_getString(HTML_STYLESHEET));
1625 for (
const auto &
fileName : extraCssFiles)
1665 m_t <<
"<a id=\"" << anchor <<
"\" name=\"" << anchor <<
"\"></a>";
1679 m_t <<
"\n<p class=\"" << classDef <<
"\">";
1711 m_t <<
"<a class=\"elRef\" ";
1716 m_t <<
"<a class=\"el\" ";
1754 m_t <<
"<a class=\"el\" href=\"" << fn <<
"\">";
1764 m_t <<
"<a class=\"elRef\" ";
1769 m_t <<
"<a class=\"el\" ";
1785 m_t <<
"<a href=\"";
1802 if (extraIndentLevel==2)
1804 m_t <<
"<h4 class=\"groupheader\">";
1806 else if (extraIndentLevel==1)
1808 m_t <<
"<h3 class=\"groupheader\">";
1812 m_t <<
"<h2 class=\"groupheader\">";
1818 if (extraIndentLevel==2)
1822 else if (extraIndentLevel==1)
1834 switch(
type.level())
1843 default:
ASSERT(0);
break;
1845 m_t <<
"<a id=\"" << lab <<
"\" name=\"" << lab <<
"\"></a>";
1850 switch(
type.level())
1859 default:
ASSERT(0);
break;
1872 const char *p=str.
data();
1878 case '<':
m_t <<
"<";
break;
1879 case '>':
m_t <<
">";
break;
1880 case '&':
m_t <<
"&";
break;
1881 case '"':
m_t <<
""";
break;
1882 case '-':
if (inHtmlComment)
m_t <<
"-";
else m_t <<
"-";
break;
1885 {
m_t <<
"<"; p++; }
1887 {
m_t <<
">"; p++; }
1889 {
m_t <<
"\\‍("; p++; }
1891 {
m_t <<
"\\‍)"; p++; }
1912 const QCString &relPath,
int sectionCount)
1916 if (dynamicSections)
1918 t <<
"<div id=\"dynsection-" << sectionCount <<
"\" "
1919 "onclick=\"return dynsection.toggleVisibility(this)\" "
1920 "class=\"dynheader closed\" "
1921 "style=\"cursor:pointer;\">"
1922 "<span class=\"dynarrow\"><span class=\"arrowhead closed\"></span></span>";
1926 t <<
"<div class=\"dynheader\">\n";
1940 if (dynamicSections)
1942 t <<
"<div id=\"dynsection-" << sectionCount <<
"-summary\" "
1943 "class=\"dynsummary\" "
1944 "style=\"display:block;\">\n";
1952 if (dynamicSections)
1962 if (dynamicSections)
1964 t <<
"<div id=\"dynsection-" << sectionCount <<
"-content\" "
1965 "class=\"dyncontent\" "
1966 "style=\"display:none;\">\n";
1970 t <<
"<div class=\"dyncontent\">\n";
1998 m_t <<
" <div class=\"center\">\n";
1999 m_t <<
" <img src=\"";
2001 m_t <<
"_map\" alt=\"\"/>\n";
2011 m_t <<
" <div class=\"center\">\n";
2012 m_t <<
" <img src=\"";
2040 m_t <<
"<table class=\"memberdecls\">\n";
2043 m_t <<
"<tr class=\"memitem:" << anchor;
2046 m_t <<
" inherit " << inheritId;
2051 m_t <<
" id=\"r_" << anchor <<
"\"";
2063 m_t <<
"</td></tr>\n";
2072 m_t <<
"</td></tr>\n";
2073 m_t <<
"<tr class=\"memitem:" << anchor;
2076 m_t <<
" inherit " << inheritId;
2078 m_t <<
" template\"><td class=\"memItemLeft\" align=\"right\" valign=\"top\">";
2083 m_t <<
"<div class=\"compoundTemplParams\">";
2094 m_t <<
" </td><td class=\"memItemRight\" valign=\"bottom\">";
2099 if (!initTag)
m_t <<
" </td>";
2111 DBG_HTML(
m_t <<
"<!-- startMemberDescription -->\n")
2114 m_t <<
"<table class=\"memberdecls\">\n";
2117 m_t <<
"<tr class=\"memdesc:" << anchor;
2120 m_t <<
" inherit " << inheritId;
2123 m_t <<
"<td class=\"mdescLeft\"> </td>";
2124 if (typ)
m_t <<
"<td class=\"mdescLeft\"> </td>";
2125 m_t <<
"<td class=\"mdescRight\">";
2130 DBG_HTML(
m_t <<
"<!-- endMemberDescription -->\n")
2131 m_t <<
"<br /></td></tr>\n";
2147 m_t <<
"</table>\n";
2161 m_t <<
"<table class=\"memberdecls\">\n";
2164 m_t <<
"<tr class=\"heading\"><td colspan=\"" << typ <<
"\"><h2 class=\"groupheader\">";
2167 m_t <<
"<a id=\"" << anchor <<
"\" name=\"" << anchor <<
"\"></a>\n";
2174 m_t <<
"</h2></td></tr>\n";
2180 m_t <<
"<tr><td class=\"ititle\" colspan=\"2\">";
2186 m_t <<
"</td></tr>\n";
2196 m_t <<
"</table>\n";
2231 int memCount,
int memTotal,
bool )
2234 m_t <<
"\n<h2 class=\"memtitle\">"
2235 <<
"<span class=\"permalink\"><a href=\"#" << anchor <<
"\">◆ </a></span>";
2239 m_t <<
" <span class=\"overload\">[" << memCount <<
"/" << memTotal <<
"]</span>";
2242 m_t <<
"\n<div class=\"memitem\">\n";
2243 m_t <<
"<div class=\"memproto\">\n";
2248 DBG_HTML(
m_t <<
"<!-- startMemberDocPrefixItem -->\n";)
2249 m_t <<
"<div class=\"memtemplate\">\n";
2254 DBG_HTML(
m_t <<
"<!-- endMemberDocPrefixItem -->\n";)
2262 m_t <<
" <table class=\"memname\">\n";
2265 m_t <<
" <td class=\"memname\">";
2278 if (openBracket)
m_t <<
"(";
2286 DBG_HTML(
m_t <<
"<!-- startFirstParameterType -->\n";)
2287 m_t <<
" <td class=\"paramtype\">";
2293 m_t <<
" <td class=\"paramkey\">" << key <<
"</td>\n";
2294 m_t <<
" <td></td>\n";
2295 m_t <<
" <td class=\"paramtype\">";
2308 m_t <<
" <td class=\"paramname\"><span class=\"paramname\"><em>";
2314 m_t <<
"</em></span>";
2319 DBG_HTML(
m_t <<
"<!-- startParameterExtra -->\n";)
2329 if (closeBracket)
m_t <<
"</td><td>)";
2336 if (closeBracket)
m_t <<
")";
2348 m_t <<
"<span class=\"paramdefsep\">";
2350 m_t <<
"</span><span class=\"paramdefval\">";
2373 m_t <<
" <td align=\"right\">";
2377 m_t <<
prefix <<
"</td><td>(</td><td colspan=\"2\">";
2378 else if (closeBracket)
2379 m_t <<
" )</td><td></td><td></td><td>";
2381 m_t <<
"</td><td></td><td colspan=\"2\">";
2391 m_t <<
" </table>\n";
2410 if (generateLegend && !umlLook)
2413 m_t <<
"<center><span class=\"legend\">[";
2416 if (generateTreeView)
m_t <<
"target=\"top\" ";
2422 m_t <<
"]</span></center>";
2508 m_t <<
"<tr class=\"groupHeader\"><td colspan=\"2\"><div class=\"groupHeader\">";
2513 m_t <<
"</div></td></tr>\n";
2518 m_t <<
"<tr><td colspan=\"2\"><div class=\"groupText\">";
2523 m_t <<
"</div></td></tr>\n";
2538 m_t <<
"<div class=\"memdoc\">\n";
2544 m_t <<
"\n</div>\n" <<
"</div>\n";
2553 for (
int i=0; i<n; i++)
2561 m_t <<
"<table class=\"fieldtable\">\n"
2562 <<
"<tr><th colspan=\"" << (hasInits?3:2) <<
"\">" << title <<
"</th></tr>";
2566 m_t <<
"</table>\n";
2581 m_t <<
"<td class=\"fieldname\">";
2586 m_t <<
" </td>";
2591 m_t <<
"<td class=\"fieldinit\">";
2596 m_t <<
" </td>";
2601 m_t <<
"<td class=\"fielddoc\">";
2611 m_t <<
"<dl class=\"section examples\"><dt>";
2628 std::visit(visitor,astImpl->
root);
2640 t <<
" <div id=\"navrow1\" class=\"tabs\">\n";
2644 t <<
" <div id=\"navrow2\" class=\"tabs2\">\n";
2646 t <<
" <ul class=\"tablist\">\n";
2674 t <<
" class=\"current\"";
2684 if (!l.
isEmpty()) t <<
"</a>";
2695 case LayoutNavEntry::MainPage:
return TRUE;
2696 case LayoutNavEntry::User:
return TRUE;
2697 case LayoutNavEntry::UserGroup:
return TRUE;
2698 case LayoutNavEntry::Pages:
return index.numIndexedPages()>0;
2699 case LayoutNavEntry::Topics:
return index.numDocumentedGroups()>0;
2700 case LayoutNavEntry::Modules:
return index.numDocumentedModules()>0;
2701 case LayoutNavEntry::ModuleList:
return index.numDocumentedModules()>0;
2703 case LayoutNavEntry::Namespaces:
return showNamespaces && index.numDocumentedNamespaces()>0;
2704 case LayoutNavEntry::NamespaceList:
return showNamespaces && index.numDocumentedNamespaces()>0;
2706 case LayoutNavEntry::Concepts:
return index.numDocumentedConcepts()>0;
2707 case LayoutNavEntry::Classes:
return index.numAnnotatedClasses()>0;
2708 case LayoutNavEntry::ClassList:
return index.numAnnotatedClasses()>0;
2709 case LayoutNavEntry::ClassIndex:
return index.numAnnotatedClasses()>0;
2710 case LayoutNavEntry::ClassHierarchy:
return index.numHierarchyClasses()>0;
2712 case LayoutNavEntry::Files:
return showFiles && index.numDocumentedFiles()>0;
2713 case LayoutNavEntry::FileList:
return showFiles && index.numDocumentedFiles()>0;
2716 case LayoutNavEntry::Interfaces:
return index.numAnnotatedInterfaces()>0;
2717 case LayoutNavEntry::InterfaceList:
return index.numAnnotatedInterfaces()>0;
2718 case LayoutNavEntry::InterfaceIndex:
return index.numAnnotatedInterfaces()>0;
2719 case LayoutNavEntry::InterfaceHierarchy:
return index.numHierarchyInterfaces()>0;
2720 case LayoutNavEntry::Structs:
return index.numAnnotatedStructs()>0;
2721 case LayoutNavEntry::StructList:
return index.numAnnotatedStructs()>0;
2722 case LayoutNavEntry::StructIndex:
return index.numAnnotatedStructs()>0;
2723 case LayoutNavEntry::Exceptions:
return index.numAnnotatedExceptions()>0;
2724 case LayoutNavEntry::ExceptionList:
return index.numAnnotatedExceptions()>0;
2725 case LayoutNavEntry::ExceptionIndex:
return index.numAnnotatedExceptions()>0;
2726 case LayoutNavEntry::ExceptionHierarchy:
return index.numHierarchyExceptions()>0;
2727 case LayoutNavEntry::None:
2728 assert(kind != LayoutNavEntry::None);
2738 for (
const auto &entry : root->
children())
2745 for (
const auto &entry : root->
children())
2750 t <<
"<li><a href=\"" << relPath << url <<
"\"><span>";
2752 t <<
"</span></a>\n";
2765 bool highlightParent,
bool highlightSearch)
2788 entry.get()==hlEntry &&
2789 (!entry->children().empty() ||
2790 (entry->kind()==kind && !highlightParent)
2808 if (disableIndex || !generateTreeView || !fullSidebar)
2810 if (!serverBasedSearch)
2818 if (!highlightSearch)
2859 bool highlightParent=
false;
2887 highlightParent =
true;
break;
2889 highlightParent =
true;
break;
2891 highlightParent =
true;
break;
2893 highlightParent =
true;
break;
2895 highlightParent =
true;
break;
2897 highlightParent =
true;
break;
2899 highlightParent =
true;
break;
2901 highlightParent =
true;
break;
2906 if (!disableIndex && dynamicMenus)
2915 searchPage =
"search.php";
2917 t <<
"<script type=\"text/javascript\" src=\"" << relPath <<
"menudata.js\"></script>\n";
2918 t <<
"<script type=\"text/javascript\" src=\"" << relPath <<
"menu.js\"></script>\n";
2919 t <<
"<script type=\"text/javascript\">\n";
2920 t <<
"/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */\n";
2921 t <<
"$(function() {\n";
2922 t <<
" initMenu('" << relPath <<
"',"
2923 << (searchEngine && !(generateTreeView && fullSidebar)?
"true":
"false") <<
","
2924 << (serverBasedSearch?
"true":
"false") <<
",'"
2925 << searchPage <<
"','"
2927 << (generateTreeView?
"true":
"false")
2931 if (!serverBasedSearch)
2933 if (!disableIndex && dynamicMenus && !fullSidebar)
2935 t <<
" $(function() { init_search(); });\n";
2940 t <<
" $(function() {\n"
2941 <<
" if ($('.searchresults').length > 0) { searchBox.DOMSearchField().focus(); }\n";
2946 t <<
"/* @license-end */\n";
2948 t <<
"<div id=\"main-nav\"></div>\n";
2950 else if (!disableIndex)
2954 if (!hlEntry && altKind!=LayoutNavEntry::None) { hlEntry=root->
find(altKind); kind=altKind; }
2957 highlightParent=
TRUE;
2958 hlEntry = root->
children().front().get();
2959 if (hlEntry==
nullptr)
2964 if (kind==LayoutNavEntry::UserGroup)
2972 t <<
"<div id=\"main-nav\">\n";
2976 t <<
"</div><!-- main-nav -->\n";
2979 else if (!generateTreeView)
2983 if (generateTreeView && !disableIndex && fullSidebar && !extraTabs)
2985 t <<
"<div id=\"doc-content\">\n";
2992 m_t <<
"</div><!-- top -->\n";
2993 if (!generateTreeView)
2995 m_t <<
"<div id=\"doc-content\">\n";
3004 if (generateTreeView)
3011 "<div id=\"side-nav\" class=\"ui-resizable side-nav-resizable\">\n");
3014 " <div id=\"nav-tree\">\n"
3015 " <div id=\"nav-tree-contents\">\n"
3016 " <div id=\"nav-sync\" class=\"sync\"></div>\n"
3019 " <div id=\"splitbar\" style=\"-moz-user-select:none;\" \n"
3020 " class=\"ui-resizable-handle\">\n"
3023 "<script type=\"text/javascript\">\n"
3024 "/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */\n"
3025 "$(function(){initNavTree('" + fn +
3027 "'); initResizable(true); });\n"
3028 "/* @license-end */\n"
3032 result+=
"<div id=\"doc-content\">\n";
3037 result +=
"<script type=\"text/javascript\">\n"
3038 "/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */\n"
3039 "$(function(){ initResizable(false); });\n"
3040 "/* @license-end */\n"
3058 m_t <<
"<div class=\"contents\">\n";
3063 m_t <<
"</div><!-- contents -->\n";
3073 m_t <<
"</div><!-- PageDoc -->\n";
3087 bool quickLinksAfterSplitbar = !disableIndex && generateTreeView && fullSidebar;
3092 QCString configFileName = htmlOutput+
"/search_config.php";
3098 t <<
"$config = array(\n";
3099 t <<
" 'PROJECT_NAME' => \"" <<
convertToHtml(projectName) <<
"\",\n";
3100 t <<
" 'GENERATE_TREEVIEW' => " << (generateTreeView?
"true":
"false") <<
",\n";
3101 t <<
" 'DISABLE_INDEX' => " << (disableIndex?
"true":
"false") <<
",\n";
3102 t <<
" 'FULL_SIDEBAR' => " << (fullSidebar?
"true":
"false") <<
",\n";
3104 t <<
"$translator = array(\n";
3105 t <<
" 'search_results_title' => \"" <<
theTranslator->trSearchResultsTitle() <<
"\",\n";
3106 t <<
" 'search_results' => array(\n";
3107 t <<
" 0 => \"" <<
theTranslator->trSearchResults(0) <<
"\",\n";
3108 t <<
" 1 => \"" <<
theTranslator->trSearchResults(1) <<
"\",\n";
3111 t <<
" 'search_matches' => \"" <<
theTranslator->trSearchMatches() <<
"\",\n";
3112 t <<
" 'search' => \"" <<
theTranslator->trSearch() <<
"\",\n";
3130 t <<
"<!-- " <<
theTranslator->trGeneratedBy() <<
" Doxygen "
3131 << getDoxygenVersion() <<
" -->\n";
3132 t <<
"<script type=\"text/javascript\">\n";
3133 t <<
"/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */\n";
3134 t <<
"var searchBox = new SearchBox(\"searchBox\", \""
3136 t <<
"/* @license-end */\n";
3139 if (!disableIndex && !quickLinksAfterSplitbar)
3143 if (generateTreeView)
3145 t <<
"</div><!-- top -->\n";
3148 if (quickLinksAfterSplitbar)
3152 t <<
"<!-- generated -->\n";
3155 t <<
"require_once \"search_functions.php\";\n";
3160 if (generateTreeView)
3162 t <<
"</div><!-- doc-content -->\n";
3169 QCString scriptName = htmlOutput+
"/search/search.js";
3178 err(
"Failed to open file '{}' for writing...\n",scriptName);
3187 bool quickLinksAfterSplitbar = !disableIndex && generateTreeView && fullSidebar;
3196 t <<
"<!-- " <<
theTranslator->trGeneratedBy() <<
" Doxygen "
3197 << getDoxygenVersion() <<
" -->\n";
3198 t <<
"<script type=\"text/javascript\">\n";
3199 t <<
"/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */\n";
3200 t <<
"var searchBox = new SearchBox(\"searchBox\", \""
3202 t <<
"/* @license-end */\n";
3205 if (!disableIndex && !quickLinksAfterSplitbar)
3209 if (generateTreeView)
3211 t <<
"</div><!-- top -->\n";
3214 if (quickLinksAfterSplitbar)
3219 t <<
"<div class=\"header\">\n";
3220 t <<
" <div class=\"headertitle\">\n";
3221 t <<
" <div class=\"title\">" <<
theTranslator->trSearchResultsTitle() <<
"</div>\n";
3224 t <<
"<div class=\"contents\">\n";
3226 t <<
"<div id=\"searchresults\"></div>\n";
3229 if (generateTreeView)
3231 t <<
"</div><!-- doc-content -->\n";
3239 QCString scriptName = dname+
"/search/search.js";
3244 t <<
"var searchResultsText=["
3249 t <<
"var tagMap = {\n";
3253 for (
const auto &ml : extraSearchMappings)
3256 int eqPos = mapLine.
find(
'=');
3263 if (!first) t <<
",\n";
3264 t <<
" \"" << tagName <<
"\": \"" << destName <<
"\"";
3269 if (!first) t <<
"\n";
3273 t <<
"$(function() {\n";
3274 t <<
" var query = trim(getURLParameter('query'));\n";
3275 t <<
" if (query) {\n";
3276 t <<
" searchFor(query,0,20);\n";
3278 t <<
" var results = $('#results');\n";
3279 t <<
" results.html('<p>" <<
theTranslator->trSearchResults(0) <<
"</p>');\n";
3285 err(
"Failed to open file '{}' for writing...\n",scriptName);
3291 m_t <<
"<div class=\"typeconstraint\">\n";
3292 m_t <<
"<dl><dt><b>" << header <<
"</b></dt><dd>\n";
3293 m_t <<
"<table border=\"0\" cellspacing=\"2\" cellpadding=\"0\">\n";
3298 m_t <<
"<tr><td valign=\"top\"><em>";
3303 m_t <<
"</em></td>";
3308 m_t <<
"<td> :</td><td valign=\"top\"><em>";
3313 m_t <<
"</em></td>";
3318 m_t <<
"<td> ";
3323 m_t <<
"</td></tr>\n";
3328 m_t <<
"</table>\n";
3338 m_t <<
"<br class=\"" << style <<
"\" />\n";
3348 m_t <<
"<div class=\"header\">\n";
3353 m_t <<
" <div class=\"headertitle\">";
3365 m_t <<
"</div><!--header-->\n";
3372 m_t <<
"<table class=\"memberdecls\">\n";
3375 m_t <<
"<tr><td colspan=\"2\"><h3>";
3380 m_t <<
"</h3></td></tr>\n";
3385 DBG_HTML(
m_t <<
"<!-- startMemberDocSimple -->\n";)
3386 m_t <<
"<table class=\"fieldtable\">\n";
3387 m_t <<
"<tr><th colspan=\"" << (isEnum?
"2":
"3") <<
"\">";
3395 m_t <<
"</table>\n";
3400 DBG_HTML(
m_t <<
"<!-- startInlineMemberType -->\n";)
3401 m_t <<
"<tr><td class=\"fieldtype\">\n";
3406 DBG_HTML(
m_t <<
"<!-- endInlineMemberType -->\n";)
3412 DBG_HTML(
m_t <<
"<!-- startInlineMemberName -->\n";)
3413 m_t <<
"<td class=\"fieldname\">\n";
3418 DBG_HTML(
m_t <<
"<!-- endInlineMemberName -->\n";)
3424 DBG_HTML(
m_t <<
"<!-- startInlineMemberDoc -->\n";)
3425 m_t <<
"<td class=\"fielddoc\">\n";
3431 m_t <<
"</td></tr>\n";
3437 m_t <<
"<span class=\"mlabels\">";
3442 DBG_HTML(
m_t <<
"<!-- writeLabel(" << label <<
") -->\n";)
3444 auto convertLabelToClass = [](
const std::string &lab) {
3457 for (
size_t i=0; i<l; i++)
3459 char c = input.
at(i);
3460 if (c<0 || (c>=
'a' && c<=
'z') || c==
'_')
3465 else if (nmstart && (c<0 || (c>=
'a' && c<=
'z') || (c>=
'0' && c<=
'9') || c==
'_'))
3469 else if (nmstart && (c==
' ' || c==
'-'))
3477 m_t <<
"<span class=\"mlabel " << convertLabelToClass(label.
stripWhiteSpace().
str()) <<
"\">" << label <<
"</span>";
3491 DBG_HTML(
m_t <<
"<!-- writeInheritedSectionTitle -->\n";)
3493 if (!a.isEmpty()) a.
prepend(
"#");
3498 classLink +=
" href=\"";
3503 classLink +=
"href=\"";
3508 classLink=classLink+fn+a;
3510 m_t <<
"<tr class=\"inherit_header " <<
id <<
"\">"
3511 <<
"<td colspan=\"2\" onclick=\"javascript:dynsection.toggleInherit('" <<
id <<
"')\">"
3512 <<
"<span class=\"dynarrow\"><span class=\"arrowhead closed\"></span></span>"
3521 m_t <<
" <div class=\"summary\">\n";
3527 m_t <<
"<a href=\"";
3565 auto writeIndent = [&]() {
for (
int i=0;i<indent*2;i++)
m_t <<
" "; };
3568 m_t <<
"<div class=\"toc\">";
3578 if (
type.isSection())
3581 int nextLevel =
type.level();
3582 if (nextLevel>level)
3584 for (
int l=level;l<nextLevel;l++)
3589 cs[0]=
static_cast<char>(
'0'+l+1);
3590 const char *empty = (l!=nextLevel-1) ?
" empty" :
"";
3591 incIndent(
"<li class=\"level" +
QCString(cs) + empty +
"\">");
3595 else if (nextLevel<level)
3597 for (
int l=level;l>nextLevel;l--)
3599 if (l <= maxLevel) decIndent(
"</li>");
3601 if (l <= maxLevel) decIndent(
"</ul>");
3604 if (nextLevel <= maxLevel)
3606 if (inLi[nextLevel] || level>nextLevel)
3609 cs[0]=
static_cast<char>(
'0'+nextLevel);
3610 incIndent(
"<li class=\"level" +
QCString(cs) +
"\">");
3614 if (titleDoc.
isEmpty()) titleDoc = label;
3616 m_t <<
"<a href=\"#"+label+
"\">"
3619 inLi[nextLevel]=
true;
3624 if (level > maxLevel) level = maxLevel;
Class representing a built-in class diagram.
void writeImage(TextStream &t, const QCString &path, const QCString &relPath, const QCString &file, bool generateMap=true) const
The common base class of all entity definitions found in the sources.
Class representing a directory in the file system.
bool mkdir(const std::string &path, bool acceptsAbsPath=true) const
Class representing the abstract syntax tree of a documentation block.
Representation of an call graph.
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)
Representation of a class inheritance or dependency graph.
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool TBRank=TRUE, bool imageMap=TRUE, int graphId=-1)
Representation of an directory dependency graph.
QCString writeGraph(TextStream &out, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1, bool linkRelations=TRUE)
Represents a graphical class hierarchy.
void writeGraph(TextStream &t, const QCString &path, const QCString &fileName)
Representation of a group collaboration graph.
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)
Representation of an include dependency graph.
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)
static PageLinkedMap * exampleLinkedMap
static IndexList * indexList
static QCString htmlFileExtension
Minimal replacement for QFileInfo.
std::string fileName() const
std::string absFilePath() const
Class representing a string buffer optimized for growing.
void addStr(const QCString &s)
Generator for HTML code fragments.
void codify(const QCString &text) override
void startSpecialComment() override
void endCodeLine() override
void startFontClass(const QCString &s) override
void writeCodeAnchor(const QCString &anchor) override
size_t m_stripIndentAmount
void writeCodeLink(CodeSymbolType type, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip) override
void startFold(int, const QCString &, const QCString &) override
void writeLineNumber(const QCString &, const QCString &, const QCString &, int, bool) override
void startCodeLine(int) override
void _writeCodeLink(const QCString &className, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip)
void setRelativePath(const QCString &path)
void setStripIndentAmount(size_t amount) override
void endSpecialComment() override
HtmlCodeGenerator(TextStream *t, const QCString &relPath)
void writeTooltip(const QCString &id, const DocLinkInfo &docInfo, const QCString &decl, const QCString &desc, const SourceLinkInfo &defInfo, const SourceLinkInfo &declInfo) override
void endFontClass() override
void startCodeFragment(const QCString &style) override
void endCodeFragment(const QCString &) override
void stripCodeComments(bool b) override
OutputType type() const override
Concrete visitor implementation for HTML output.
void startClassDiagram() override
void writeLogo() override
void endParameterExtra(bool last, bool emptyList, bool closeBracket) override
void startInlineMemberName() override
void endDescTableInit() override
void startTextLink(const QCString &file, const QCString &anchor) override
void startInlineMemberType() override
void endDescTable() override
void startParameterDefVal(const char *sep) override
void endMemberGroupHeader() override
void startIndexKey() override
void lineBreak(const QCString &style) override
void startParameterName(bool) override
void startMemberItem(const QCString &anchor, MemberItemType, const QCString &inheritId) override
static void writeSearchPage()
void startInclDepGraph() override
void insertMemberAlignLeft(MemberItemType, bool) override
void writeQuickLinks(HighlightedItem hli, const QCString &file, bool extraTabs) override
void startMemberSubtitle() override
HtmlGenerator & operator=(const HtmlGenerator &)
void writeFooter(const QCString &navPath) override
void startMemberDocName(bool) override
void endParameterType() override
void startLabels() override
void startCallGraph() override
void endMemberList() override
static QCString getNavTreeCss()
void startParagraph(const QCString &classDef) override
void endIndexList() override
void writeSearchInfo() override
void startContents() override
void startMemberDoc(const QCString &clName, const QCString &memName, const QCString &anchor, const QCString &title, int memCount, int memTotal, bool showInline) override
void startDescTableRow() override
void startDoxyAnchor(const QCString &fName, const QCString &manName, const QCString &anchor, const QCString &name, const QCString &args) override
void startDirDepGraph() override
void startCompoundTemplateParams() override
void startConstraintParam() override
void endGroupHeader(int) override
void writeNavigationPath(const QCString &s) override
void writeObjectLink(const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name) override
void startMemberDescription(const QCString &anchor, const QCString &inheritId, bool typ) override
void writeChar(char c) override
void endConstraintList() override
void endParameterList() override
void writeDoc(const IDocNodeAST *node, const Definition *, const MemberDef *, int id) override
void startDotGraph() override
void endIndent() override
void endParameterName() override
void endPageDoc() override
void startMemberDocList() override
static QCString writeLogoAsString(const QCString &path)
void endDescTableRow() override
void writeSplitBar(const QCString &name) override
void startParameterType(bool first, const QCString &key) override
void startDescTableInit() override
void startMemberList() override
void endQuickIndices() override
void startHeaderSection() override
void startDescTableTitle() override
void endDirDepGraph(DotDirDeps &g) override
void startIndexList() override
void endParameterDefVal() override
void endMemberGroup(bool) override
void endInlineHeader() override
static void writeFooterFile(TextStream &t)
void endMemberDescription() override
void startGroupCollaboration() override
void endClassDiagram(const ClassDiagram &, const QCString &, const QCString &) override
void startConstraintList(const QCString &) override
void startDescTable(const QCString &title, const bool hasInits) override
void endConstraintDocs() override
void writeNonBreakableSpace(int) override
void startInlineMemberDoc() override
void exceptionEntry(const QCString &, bool) override
static void writeTabData()
Additional initialization after indices have been created.
void endExamples() override
void endIndexKey() override
void writeString(const QCString &text) override
void endMemberDocName() override
void endContents() override
void endInlineMemberType() override
void startMemberGroupDocs() override
void startMemberDocSimple(bool) override
void startIndexItem(const QCString &ref, const QCString &file) override
OutputType type() const override
void endHeaderSection() override
void startIndent() override
void writeStyleInfo(int part) override
void addIndexItem(const QCString &, const QCString &) override
void docify_(const QCString &text, bool inHtmlComment)
void endMemberGroupDocs() override
void endDotGraph(DotClassGraph &g) override
void endMemberHeader() override
void endTextLink() override
void writeLabel(const QCString &l, bool isLast) override
void startMemberSections() override
static void writeSearchData(const QCString &dir)
static QCString writeSplitBarAsString(const QCString &name, const QCString &relpath)
void endMemberSections() override
void endMemberDocList() override
void endCompoundTemplateParams() override
static void writeExternalSearchPage()
void endDescTableData() override
void startDescTableData() override
void writeStartAnnoItem(const QCString &type, const QCString &file, const QCString &path, const QCString &name) override
static void writePageFooter(TextStream &t, const QCString &, const QCString &, const QCString &)
void endParagraph() override
void insertMemberAlign(bool) override
static void writeStyleSheetFile(TextStream &t)
void endDoxyAnchor(const QCString &fName, const QCString &anchor) override
void startMemberTemplateParams() override
void endLabels() override
void startPageDoc(const QCString &pageTitle) override
void endMemberDeclaration(const QCString &anchor, const QCString &inheritId) override
HtmlCodeGenerator * m_codeGen
void startIndexValue(bool) override
void endGroupCollaboration(DotGroupCollaboration &g) override
static void writeSearchInfoStatic(TextStream &t, const QCString &relPath)
std::unique_ptr< OutputCodeList > m_codeList
static void writeHeaderFile(TextStream &t, const QCString &cssname)
void startConstraintType() override
void endConstraintParam() override
void startTitleHead(const QCString &) override
void startFile(const QCString &name, const QCString &manName, const QCString &title, int id, int hierarchyLevel) override
void endIndexValue(const QCString &, bool) override
void addCodeGen(OutputCodeList &list) override
void startConstraintDocs() override
void endMemberTemplateParams(const QCString &anchor, const QCString &inheritId) override
void endPlainFile() override
void startIndexListItem() override
void endProjectNumber() override
void writeSummaryLink(const QCString &file, const QCString &anchor, const QCString &title, bool first) override
void endMemberDocPrefixItem() override
void endDescTableTitle() override
void addLabel(const QCString &, const QCString &) override
void endInclDepGraph(DotInclDepGraph &g) override
void startParameterExtra() override
void writeLocalToc(const SectionRefs &sr, const LocalToc <) override
void startProjectNumber() override
void writeGraphicalHierarchy(DotGfxHierarchyTable &g) override
void startExamples() override
void docify(const QCString &text) override
void endInlineMemberDoc() override
void endCallGraph(DotCallGraph &g) override
void endConstraintType() override
void endMemberSubtitle() override
void startGroupHeader(int) override
void startMemberDocPrefixItem() override
void startSection(const QCString &, const QCString &, SectionType) override
void endMemberItem(MemberItemType) override
void startMemberGroup() override
void endMemberDoc(bool) override
void endIndexItem(const QCString &ref, const QCString &file) override
void startMemberHeader(const QCString &, int) override
void endTitleHead(const QCString &, const QCString &) override
void endSection(const QCString &, SectionType) override
void startInlineHeader() override
void endInlineMemberName() override
void endMemberDocSimple(bool) override
void writeInheritedSectionTitle(const QCString &id, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &title, const QCString &name) override
void endIndexListItem() override
static QCString getMathJaxMacros()
void startParameterList(bool) override
void startMemberGroupHeader(bool) override
void startPlainFile(const QCString &name) override
opaque representation of the abstract syntax tree (AST)
static Index & instance()
static LayoutDocManager & instance()
Returns a reference to this singleton.
LayoutNavEntry * rootNavEntry() const
returns the (invisible) root of the navigation tree.
bool isHtmlEnabled() const
A model of a class/file/namespace member symbol.
Class representing a list of different code generators.
void add(OutputCodeIntfPtr &&p)
Abstract interface for output generators.
QCString fileName() const
This is an alternative implementation of QCString.
int find(char c, int index=0, bool cs=TRUE) const
QCString & prepend(const char *s)
size_t length() const
Returns the length of the string, not counting the 0-terminator.
bool startsWith(const char *s) const
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
char & at(size_t i)
Returns a reference to the character at index i.
bool isEmpty() const
Returns TRUE iff the string is empty.
QCString stripWhiteSpace() const
returns a copy of this string with leading and trailing whitespace removed
const std::string & str() const
QCString right(size_t len) const
void reserve(size_t size)
Reserve space for size bytes without changing the string contents.
int findRev(char c, int index=-1, bool cs=TRUE) const
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
QCString left(size_t len) const
Singleton for managing resources compiled into an executable.
static ResourceMgr & instance()
Returns the one and only instance of this class.
bool copyResource(const QCString &name, const QCString &targetDir) const
Copies a registered resource to a given target directory.
QCString getAsString(const QCString &name) const
Gets the resource data as a C string.
class that provide information about a section.
class that represents a list of constant references to sections.
static constexpr int Section
static constexpr int Subsection
static constexpr int Subsubsection
static constexpr int Page
static constexpr int Paragraph
static constexpr int Subsubparagraph
static constexpr int Subparagraph
Text streaming class that buffers data.
bool empty() const
Returns true iff the buffer is empty.
std::string str() const
Return the contents of the buffer as a std::string object.
#define Config_getInt(name)
#define Config_getList(name)
#define Config_getEnumAsString(name)
#define Config_getBool(name)
#define Config_getString(name)
#define Config_getEnum(name)
std::vector< std::string > StringVector
std::unordered_map< std::string, std::string > StringUnorderedMap
std::vector< bool > BoolVector
QCString dateToString(DateTimeType includeTime)
Returns the current date, when includeTime is set also the time is provided.
static constexpr auto hex
static QCString replaceVariables(const QCString &input)
static void fillColorStyleMap(const QCString &definitions, StringUnorderedMap &map)
static void startSectionContent(TextStream &t, int sectionCount)
static QCString g_header_file
static void endQuickIndexList(TextStream &t)
static QCString g_mathjax_code
static void writeServerSearchBox(TextStream &t, const QCString &relPath, bool highlightSearch)
static void startQuickIndexList(TextStream &t, bool topLevel=TRUE)
static void startSectionSummary(TextStream &t, int sectionCount)
static void startQuickIndexItem(TextStream &t, const QCString &l, bool hl, bool, const QCString &relPath)
static void renderQuickLinksAsTabs(TextStream &t, const QCString &relPath, LayoutNavEntry *hlEntry, LayoutNavEntry::Kind kind, bool highlightParent, bool highlightSearch)
static const SelectionMarkerInfo htmlMarkerInfo
static QCString getConvertLatexMacro()
Convert a set of LaTeX commands \(re)newcommand to a form readable by MathJax LaTeX syntax:
static void writeDefaultQuickLinks(TextStream &t, HighlightedItem hli, const QCString &file, const QCString &relPath, bool extraTabs)
static QCString g_footer_file
static void endSectionContent(TextStream &t)
static QCString getSearchBox(bool serverSide, QCString relPath, bool highlightSearch)
static QCString g_latex_macro
static void fillColorStyleMaps()
static void endQuickIndexItem(TextStream &t, const QCString &l)
static StringUnorderedMap g_lightMap
static void startSectionHeader(TextStream &t, const QCString &relPath, int sectionCount)
static QCString substituteHtmlKeywords(const QCString &file, const QCString &str, const QCString &title, const QCString &relPath, const QCString &navPath=QCString())
static void writeDefaultStyleSheet(TextStream &t)
static void renderQuickLinksAsTree(TextStream &t, const QCString &relPath, LayoutNavEntry *root)
static bool quickLinkVisible(LayoutNavEntry::Kind kind)
static std::mutex g_indexLock
static StringUnorderedMap g_darkMap
static void endSectionHeader(TextStream &t)
static void writeClientSearchBox(TextStream &t, const QCString &relPath)
static void endSectionSummary(TextStream &t)
Translator * theTranslator
#define warn(file, line, fmt,...)
std::ofstream openOutputStream(const QCString &name, bool append=false)
OutputCodeDefer< HtmlCodeGenerator > HtmlCodeGeneratorDefer
Portable versions of functions that are platform dependent.
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
static void writeIndent(TextStream &t, int indent)
Web server based search engine.
Some helper functions for std::string.
bool literal_at(const char *data, const char(&str)[N])
returns TRUE iff data points to a substring that matches string literal str
Base class for the layout of a navigation item at the top of the HTML pages.
const LayoutNavEntryList & children() const
LayoutNavEntry * parent() const
LayoutNavEntry * find(LayoutNavEntry::Kind k, const QCString &file=QCString()) const
constexpr const char * codeSymbolType2Str(CodeSymbolType type)
std::string convertUTF8ToLower(const std::string &input)
Converts the input string into a lower case version, also taking into account non-ASCII characters th...
const char * writeUTF8Char(TextStream &t, const char *s)
Writes the UTF8 character pointed to by s to stream t and returns a pointer to the next character.
Various UTF8 related helper functions.
QCString externalRef(const QCString &relPath, const QCString &ref, bool href)
size_t updateColumnCount(const char *s, size_t col)
QCString convertToHtml(const QCString &s, bool keepEntities)
void checkBlocks(const QCString &s, const QCString fileName, const SelectionMarkerInfo &markerInfo)
QCString correctURL(const QCString &url, const QCString &relPath)
Corrects URL url according to the relative path relPath.
QCString stripPath(const QCString &s)
QCString removeEmptyLines(const QCString &s)
QCString selectBlocks(const QCString &s, const SelectionBlockList &blockList, const SelectionMarkerInfo &markerInfo)
remove disabled blocks and all block markers from s and return the result as a string
QCString substituteKeywords(const QCString &file, const QCString &s, const KeywordSubstitutionList &keywords)
QCString relativePathToRoot(const QCString &name)
void clearSubDirs(const Dir &d)
QCString fileToString(const QCString &name, bool filter, bool isSourceCode)
QCString filterTitle(const QCString &title)
void createSubDirs(const Dir &d)
QCString externalLinkTarget(const bool parent)
QCString replaceColorMarkers(const QCString &str)
Replaces any markers of the form ##AA in input string str by new markers of the form #AABBCC,...
QCString convertToId(const QCString &s)
void addHtmlExtensionIfMissing(QCString &fName)
QCString createHtmlUrl(const QCString &relPath, const QCString &ref, bool href, bool isLocalFile, const QCString &targetFileName, const QCString &anchor)
A bunch of utility functions.
QCString fixSpaces(const QCString &s)