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";
422 searchCssJs =
"<link href=\"$relpath^search/search.css\" rel=\"stylesheet\" type=\"text/css\"/>\n";
423 if (!serverBasedSearch)
425 searchCssJs +=
"<script type=\"text/javascript\" src=\"$relpath^search/searchdata.js\"></script>\n";
427 searchCssJs +=
"<script type=\"text/javascript\" src=\"$relpath^search/search.js\"></script>\n";
429 if (!serverBasedSearch)
433 searchCssJs +=
"<script type=\"text/javascript\">\n"
434 " $(function() { init_search(); });\n"
442 searchCssJs +=
"<script type=\"text/javascript\">\n"
444 " if ($('.searchresults').length > 0) { searchBox.DOMSearchField().focus(); }\n"
450 searchCssJs +=
"<link rel=\"search\" href=\"" + relPath +
451 "search_opensearch.php?v=opensearch.xml\" "
452 "type=\"application/opensearchdescription+xml\" title=\"" +
453 (hasProjectName ? projectName :
QCString(
"Doxygen")) +
469 switch (mathJaxVersion)
471 case MATHJAX_VERSION_t::MathJax_3:
474 "<script type=\"text/javascript\">\n"
475 "window.MathJax = {\n"
477 " ignoreHtmlClass: 'tex2jax_ignore',\n"
478 " processHtmlClass: 'tex2jax_process'\n"
484 if (!mathJaxExtensions.empty())
487 mathJaxJs+=
" loader: {\n"
489 for (
const auto &s : mathJaxExtensions)
491 if (!first) mathJaxJs+=
",";
492 mathJaxJs+=
"'[tex]/"+
QCString(s.c_str())+
"'";
498 mathJaxJs+=
" tex: {\n"
505 " packages: ['base','configmacros'";
508 mathJaxJs+=
",'newcommand'";
510 for (
const auto &s : mathJaxExtensions)
512 mathJaxJs+=
",'"+
QCString(s.c_str())+
"'";
528 mathJaxJs +=
"</script>\n";
529 mathJaxJs +=
"<script type=\"text/javascript\" id=\"MathJax-script\" async=\"async\" src=\"" +
530 path +
"es5/tex-" + mathJaxFormat.
lower() +
".js\">";
531 mathJaxJs+=
"</script>\n";
534 case MATHJAX_VERSION_t::MathJax_2:
536 mathJaxJs =
"<script type=\"text/x-mathjax-config\">\n"
537 "MathJax.Hub.Config({\n"
538 " extensions: [\"tex2jax.js\"";
540 for (
const auto &s : mathJaxExtensions)
542 mathJaxJs+=
", \""+
QCString(s.c_str())+
".js\"";
546 mathJaxFormat =
"HTML-CSS";
549 " jax: [\"input/TeX\",\"output/"+mathJaxFormat+
"\"],\n";
552 mathJaxJs +=
" TeX: { Macros: {\n";
557 mathJaxJs +=
"});\n";
563 mathJaxJs +=
"</script>\n";
564 mathJaxJs +=
"<script type=\"text/javascript\" async=\"async\" src=\"" + path +
"MathJax.js\"></script>\n";
573 darkModeJs=
"<script type=\"text/javascript\" src=\"$relpath^darkmode_toggle.js\"></script>\n";
578 treeViewCssJs+=
"<script type=\"text/javascript\" src=\"$relpath^cookie.js\"></script>\n";
591 {
"$navpath", [&]() {
return navPath; } },
592 {
"$stylesheet", [&]() {
return cssFile; } },
593 {
"$treeview", [&]() {
return treeViewCssJs; } },
594 {
"$searchbox", [&]() {
return searchBox; } },
595 {
"$search", [&]() {
return searchCssJs; } },
596 {
"$mathjax", [&]() {
return mathJaxJs; } },
597 {
"$darkmode", [&]() {
return darkModeJs; } },
598 {
"$generatedby", [&]() {
return generatedBy; } },
599 {
"$extrastylesheet",[&]() {
return extraCssText; } },
600 {
"$relpath$", [&]() {
return relPath; } }
603 result =
substitute(result,
"$relpath^",relPath);
609 {
"FULL_SIDEBAR", hasFullSideBar },
610 {
"DISABLE_INDEX", disableIndex },
611 {
"GENERATE_TREEVIEW", treeView },
612 {
"SEARCHENGINE", searchEngine },
613 {
"TITLEAREA", titleArea },
614 {
"PROJECT_NAME", hasProjectName },
615 {
"PROJECT_NUMBER", hasProjectNumber },
616 {
"PROJECT_BRIEF", hasProjectBrief },
617 {
"PROJECT_LOGO", hasProjectLogo },
618 {
"PROJECT_ICON", hasProjectIcon },
619 {
"COPY_CLIPBOARD", hasCopyClipboard },
635 while ((i=definitions.
find(
'\n',p))!=-1)
640 int separator = line.
find(
':');
641 assert(separator!=-1);
642 std::string key = line.
left(separator).
str();
646 map.emplace(key,value);
657 if (colorStyle==HTML_COLORSTYLE_t::LIGHT)
661 else if (colorStyle==HTML_COLORSTYLE_t::DARK)
673 while ((i=input.
find(
"var(",p))!=-1)
676 int j=input.
find(
")",i+4);
678 auto it = mapping.find(input.
mid(i+4,j-i-4).
str());
679 if (it==mapping.end())
681 err(
"failed to find value variable {}. It is not longer defined in doxygen.css\n",input.
mid(i+4,j-i-4));
686 output.
addStr(it->second);
696 if (colorStyle==HTML_COLORSTYLE_t::LIGHT)
700 else if (colorStyle==HTML_COLORSTYLE_t::DARK)
736 const char *p=str.
data();
749 int spacesToNextTabStop = tabSize - (
m_col%tabSize);
750 while (spacesToNextTabStop--)
769 case '\'': *
m_t <<
"'";
m_col++;
771 case '"': *
m_t <<
""";
m_col++;
775 { *
m_t <<
"<"; p++; }
777 { *
m_t <<
">"; p++; }
779 { *
m_t <<
"\\‍(";
m_col++;p++; }
781 { *
m_t <<
"\\‍)";
m_col++;p++; }
788 uint8_t uc =
static_cast<uint8_t
>(c);
791 *
m_t <<
"$" <<
hex[uc>>4] <<
hex[uc&0xF] <<
";";
835 const QCString &anchor,
int l,
bool writeLineAnchor)
839 const int maxLineNrStr = 10;
840 char lineNumber[maxLineNrStr];
841 char lineAnchor[maxLineNrStr];
842 qsnprintf(lineNumber,maxLineNrStr,
"%5d",l);
843 qsnprintf(lineAnchor,maxLineNrStr,
"l%05d",l);
847 *
m_t <<
"<div class=\"line\">";
851 if (writeLineAnchor) *
m_t <<
"<a id=\"" << lineAnchor <<
"\" name=\"" << lineAnchor <<
"\"></a>";
852 *
m_t <<
"<span class=\"lineno\">";
890 *
m_t <<
"<a class=\"" << className <<
"Ref\" ";
895 *
m_t <<
"<a class=\"" << className <<
"\" ";
915 *
m_t <<
"<div class=\"ttc\" id=\"" <<
id <<
"\">";
916 *
m_t <<
"<div class=\"ttname\">";
919 *
m_t <<
"<a href=\"";
935 *
m_t <<
"<div class=\"ttdeci\">";
942 *
m_t <<
"<div class=\"ttdoc\">";
949 *
m_t <<
"<div class=\"ttdef\"><b>" <<
theTranslator->trDefinition() <<
"</b> ";
952 *
m_t <<
"<a href=\"";
968 *
m_t <<
"<div class=\"ttdecl\"><b>" <<
theTranslator->trDeclaration() <<
"</b> ";
971 *
m_t <<
"<a href=\"";
995 *
m_t <<
"<div class=\"line\">";
1018 *
m_t <<
"<span class=\"" << s <<
"\">";
1030 *
m_t <<
"<a id=\"" << anchor <<
"\" name=\"" << anchor <<
"\"></a>";
1035 *
m_t <<
"<div class=\"fragment\">";
1043 *
m_t <<
"</div><!-- fragment -->";
1052 const int maxLineNrStr = 10;
1053 char lineNumber[maxLineNrStr];
1054 qsnprintf(lineNumber,maxLineNrStr,
"%05d",lineNr);
1055 *
m_t <<
"<div class=\"foldopen\" id=\"foldopen" << lineNumber <<
1056 "\" data-start=\"" << startMarker <<
1057 "\" data-end=\"" << endMarker <<
1061 *
m_t <<
"<div class=\"line\">";
1068 *
m_t <<
"<div class=\"line\">";
1147 term(
"Could not create output directory {}\n",dname);
1313 searchCss = mgr.
getAsString(
"search_sidebar.css");
1319 searchCss = mgr.
getAsString(
"search_nomenu_toggle.css");
1328 searchCss = mgr.
getAsString(
"search_fixedtabs.css");
1335 searchCss += mgr.
getAsString(
"search_common.css");
1336 searchCss =
substitute(searchCss,
"$doxygenversion",getDoxygenVersion());
1344 t <<
"/* The standard CSS for doxygen " << getDoxygenVersion() <<
"*/\n\n";
1347 case HTML_COLORSTYLE_t::LIGHT:
1348 case HTML_COLORSTYLE_t::DARK:
1351 case HTML_COLORSTYLE_t::AUTO_LIGHT:
1352 case HTML_COLORSTYLE_t::TOGGLE:
1357 case HTML_COLORSTYLE_t::AUTO_DARK:
1363 if (
Config_getEnum(HTML_COLORSTYLE)==HTML_COLORSTYLE_t::AUTO_LIGHT)
1365 t <<
"@media (prefers-color-scheme: dark) {\n";
1366 t <<
" html:not(.dark-mode) {\n";
1367 t <<
" color-scheme: dark;\n\n";
1371 else if (
Config_getEnum(HTML_COLORSTYLE)==HTML_COLORSTYLE_t::AUTO_DARK)
1373 t <<
"@media (prefers-color-scheme: light) {\n";
1374 t <<
" html:not(.light-mode) {\n";
1375 t <<
" color-scheme: light;\n\n";
1379 else if (
Config_getEnum(HTML_COLORSTYLE)==HTML_COLORSTYLE_t::TOGGLE)
1381 t <<
"html.dark-mode {\n";
1392 " border-bottom: none;\n"
1393 " background-color: var(--nav-background-color);\n"
1394 " border-right: 1px solid var(--nav-border-color);\n"
1402 bool addScrollbarStyling =
Config_getList(HTML_EXTRA_STYLESHEET).empty();
1403 if (addScrollbarStyling)
1418 t <<
"<!-- HTML header for doxygen " << getDoxygenVersion() <<
"-->\n";
1424 t <<
"<!-- HTML footer for doxygen " << getDoxygenVersion() <<
"-->\n";
1451 << getDoxygenVersion() <<
" -->\n";
1455 m_t <<
"<script type=\"text/javascript\">\n";
1456 m_t <<
"var searchBox = new SearchBox(\"searchBox\", \""
1458 m_t <<
"</script>\n";
1462 m_t <<
"<script type=\"text/javascript\">\n";
1463 m_t <<
"$(function() { codefold.init(); });\n";
1464 m_t <<
"</script>\n";
1473 if (searchEngine && !serverBasedSearch)
1475 t <<
"<!-- window showing the filter options -->\n";
1476 t <<
"<div id=\"MSearchSelectWindow\"\n";
1477 t <<
" onmouseover=\"return searchBox.OnSearchSelectShow()\"\n";
1478 t <<
" onmouseout=\"return searchBox.OnSearchSelectHide()\"\n";
1479 t <<
" onkeydown=\"return searchBox.OnSearchSelectKey(event)\">\n";
1482 t <<
"<!-- iframe showing the search results (closed by default) -->\n";
1483 t <<
"<div id=\"MSearchResultsWindow\">\n";
1484 t <<
"<div id=\"MSearchResults\">\n";
1485 t <<
"<div class=\"SRPage\">\n";
1486 t <<
"<div id=\"SRIndex\">\n";
1487 t <<
"<div id=\"SRResults\"></div>\n";
1488 t <<
"<div class=\"SRStatus\" id=\"Loading\">" <<
theTranslator->trLoading() <<
"</div>\n";
1489 t <<
"<div class=\"SRStatus\" id=\"Searching\">" <<
theTranslator->trSearching() <<
"</div>\n";
1490 t <<
"<div class=\"SRStatus\" id=\"NoMatches\">" <<
theTranslator->trNoMatches() <<
"</div>\n";
1510 case TIMESTAMP_t::YES:
1511 case TIMESTAMP_t::DATETIME:
1517 case TIMESTAMP_t::DATE:
1523 case TIMESTAMP_t::NO:
1527 result +=
" \n<a href=\"https://www.doxygen.org/index.html\">\n"
1528 "<img class=\"footer\" src=\"";
1530 result +=
"doxygen.svg\" width=\"104\" height=\"31\" alt=\"doxygen\"/></a> ";
1531 result += getDoxygenVersion();
1559 m_t <<
"<h3 class=\"version\">";
1588 err(
"style sheet {} does not exist or is not readable!\n",
Config_getString(HTML_STYLESHEET));
1603 for (
const auto &
fileName : extraCssFiles)
1642 m_t <<
"<a id=\"" << anchor <<
"\" name=\"" << anchor <<
"\"></a>";
1656 m_t <<
"\n<p class=\"" << classDef <<
"\">";
1688 m_t <<
"<a class=\"elRef\" ";
1693 m_t <<
"<a class=\"el\" ";
1731 m_t <<
"<a class=\"el\" href=\"" << fn <<
"\">";
1741 m_t <<
"<a class=\"elRef\" ";
1746 m_t <<
"<a class=\"el\" ";
1762 m_t <<
"<a href=\"";
1779 if (extraIndentLevel==2)
1783 else if (extraIndentLevel==1)
1795 m_t <<
" class=\"groupheader\">";
1800 if (extraIndentLevel==2)
1804 else if (extraIndentLevel==1)
1816 switch(
type.level())
1825 default:
ASSERT(0);
break;
1827 m_t <<
"<a id=\"" << lab <<
"\" name=\"" << lab <<
"\"></a>";
1832 switch(
type.level())
1841 default:
ASSERT(0);
break;
1854 const char *p=str.
data();
1860 case '<':
m_t <<
"<";
break;
1861 case '>':
m_t <<
">";
break;
1862 case '&':
m_t <<
"&";
break;
1863 case '"':
m_t <<
""";
break;
1864 case '-':
if (inHtmlComment)
m_t <<
"-";
else m_t <<
"-";
break;
1867 {
m_t <<
"<"; p++; }
1869 {
m_t <<
">"; p++; }
1871 {
m_t <<
"\\‍("; p++; }
1873 {
m_t <<
"\\‍)"; p++; }
1894 const QCString &relPath,
int sectionCount)
1898 if (dynamicSections)
1900 t <<
"<div id=\"dynsection-" << sectionCount <<
"\" "
1901 "onclick=\"return dynsection.toggleVisibility(this)\" "
1902 "class=\"dynheader closed\" "
1903 "style=\"cursor:pointer;\">"
1904 "<span class=\"dynarrow\"><span class=\"arrowhead closed\"></span></span>";
1908 t <<
"<div class=\"dynheader\">\n";
1922 if (dynamicSections)
1924 t <<
"<div id=\"dynsection-" << sectionCount <<
"-summary\" "
1925 "class=\"dynsummary\" "
1926 "style=\"display:block;\">\n";
1934 if (dynamicSections)
1944 if (dynamicSections)
1946 t <<
"<div id=\"dynsection-" << sectionCount <<
"-content\" "
1947 "class=\"dyncontent\" "
1948 "style=\"display:none;\">\n";
1952 t <<
"<div class=\"dyncontent\">\n";
1980 m_t <<
" <div class=\"center\">\n";
1981 m_t <<
" <img src=\"";
1983 m_t <<
"_map\" alt=\"\"/>\n";
1993 m_t <<
" <div class=\"center\">\n";
1994 m_t <<
" <img src=\"";
2022 m_t <<
"<table class=\"memberdecls\">\n";
2028 m_t <<
" inherit " << inheritId;
2045 m_t <<
"</td></tr>\n";
2054 m_t <<
"</td></tr>\n";
2058 m_t <<
" inherit " << inheritId;
2060 m_t <<
" template\"><td class=\"memItemLeft\" align=\"right\" valign=\"top\">";
2065 m_t <<
"<div class=\"compoundTemplParams\">";
2076 m_t <<
" </td><td class=\"memItemRight\" valign=\"bottom\">";
2081 if (!initTag)
m_t <<
" </td>";
2093 DBG_HTML(
m_t <<
"<!-- startMemberDescription -->\n")
2096 m_t <<
"<table class=\"memberdecls\">\n";
2099 m_t <<
"<tr class=\"memdesc:" << anchor;
2102 m_t <<
" inherit " << inheritId;
2105 m_t <<
"<td class=\"mdescLeft\"> </td>";
2106 if (typ)
m_t <<
"<td class=\"mdescLeft\"> </td>";
2107 m_t <<
"<td class=\"mdescRight\">";
2112 DBG_HTML(
m_t <<
"<!-- endMemberDescription -->\n")
2113 m_t <<
"<br /></td></tr>\n";
2129 m_t <<
"</table>\n";
2143 m_t <<
"<table class=\"memberdecls\">\n";
2146 m_t <<
"<tr class=\"heading\"><td colspan=\"" << typ <<
"\"><h2";
2149 m_t <<
" id=\"header-" << anchor <<
"\"";
2151 m_t <<
" class=\"groupheader\">";
2154 m_t <<
"<a id=\"" << anchor <<
"\" name=\"" << anchor <<
"\"></a>\n";
2161 m_t <<
"</h2></td></tr>\n";
2167 m_t <<
"<tr><td class=\"ititle\" colspan=\"2\">";
2173 m_t <<
"</td></tr>\n";
2183 m_t <<
"</table>\n";
2218 int memCount,
int memTotal,
bool )
2221 m_t <<
"\n<h2 class=\"memtitle\">"
2222 <<
"<span class=\"permalink\"><a href=\"#" << anchor <<
"\">◆ </a></span>";
2226 m_t <<
" <span class=\"overload\">[" << memCount <<
"/" << memTotal <<
"]</span>";
2229 m_t <<
"\n<div class=\"memitem\">\n";
2230 m_t <<
"<div class=\"memproto\">\n";
2235 DBG_HTML(
m_t <<
"<!-- startMemberDocPrefixItem -->\n";)
2236 m_t <<
"<div class=\"memtemplate\">\n";
2241 DBG_HTML(
m_t <<
"<!-- endMemberDocPrefixItem -->\n";)
2249 m_t <<
" <table class=\"memname\">\n";
2252 m_t <<
" <td class=\"memname\">";
2265 if (openBracket)
m_t <<
"(";
2273 DBG_HTML(
m_t <<
"<!-- startFirstParameterType -->\n";)
2274 m_t <<
" <td class=\"paramtype\">";
2280 m_t <<
" <td class=\"paramkey\">" << key <<
"</td>\n";
2281 m_t <<
" <td></td>\n";
2282 m_t <<
" <td class=\"paramtype\">";
2295 m_t <<
" <td class=\"paramname\"><span class=\"paramname\"><em>";
2301 m_t <<
"</em></span>";
2306 DBG_HTML(
m_t <<
"<!-- startParameterExtra -->\n";)
2316 if (closeBracket)
m_t <<
"</td><td>)";
2323 if (closeBracket)
m_t <<
")";
2335 m_t <<
"<span class=\"paramdefsep\">";
2337 m_t <<
"</span><span class=\"paramdefval\">";
2360 m_t <<
" <td align=\"right\">";
2364 m_t <<
prefix <<
"</td><td>(</td><td colspan=\"2\">";
2365 else if (closeBracket)
2366 m_t <<
" )</td><td></td><td></td><td>";
2368 m_t <<
"</td><td></td><td colspan=\"2\">";
2378 m_t <<
" </table>\n";
2397 if (generateLegend && !umlLook)
2400 m_t <<
"<center><span class=\"legend\">[";
2403 if (generateTreeView)
m_t <<
"target=\"top\" ";
2409 m_t <<
"]</span></center>";
2495 m_t <<
"<tr id=\"" <<
id <<
"\" class=\"groupHeader\"><td colspan=\"2\"><div class=\"groupHeader\">";
2500 m_t <<
"</div></td></tr>\n";
2505 m_t <<
"<tr><td colspan=\"2\"><div class=\"groupText\">";
2510 m_t <<
"</div></td></tr>\n";
2525 m_t <<
"<div class=\"memdoc\">\n";
2531 m_t <<
"\n</div>\n" <<
"</div>\n";
2540 for (
int i=0; i<n; i++)
2548 m_t <<
"<table class=\"fieldtable\">\n"
2549 <<
"<tr><th colspan=\"" << (hasInits?3:2) <<
"\">" << title <<
"</th></tr>";
2553 m_t <<
"</table>\n";
2568 m_t <<
"<td class=\"fieldname\">";
2573 m_t <<
" </td>";
2578 m_t <<
"<td class=\"fieldinit\">";
2583 m_t <<
" </td>";
2588 m_t <<
"<td class=\"fielddoc\">";
2598 m_t <<
"<dl class=\"section examples\"><dt>";
2615 std::visit(visitor,astImpl->
root);
2627 t <<
" <div id=\"navrow1\" class=\"tabs\">\n";
2631 t <<
" <div id=\"navrow2\" class=\"tabs2\">\n";
2633 t <<
" <ul class=\"tablist\">\n";
2661 t <<
" class=\"current\"";
2671 if (!l.
isEmpty()) t <<
"</a>";
2682 case LayoutNavEntry::MainPage:
return TRUE;
2683 case LayoutNavEntry::User:
return TRUE;
2684 case LayoutNavEntry::UserGroup:
return TRUE;
2685 case LayoutNavEntry::Pages:
return index.numIndexedPages()>0;
2686 case LayoutNavEntry::Topics:
return index.numDocumentedGroups()>0;
2687 case LayoutNavEntry::Modules:
return index.numDocumentedModules()>0;
2688 case LayoutNavEntry::ModuleList:
return index.numDocumentedModules()>0;
2690 case LayoutNavEntry::Namespaces:
return showNamespaces && index.numDocumentedNamespaces()>0;
2691 case LayoutNavEntry::NamespaceList:
return showNamespaces && index.numDocumentedNamespaces()>0;
2693 case LayoutNavEntry::Concepts:
return index.numDocumentedConcepts()>0;
2694 case LayoutNavEntry::Classes:
return index.numAnnotatedClasses()>0;
2695 case LayoutNavEntry::ClassList:
return index.numAnnotatedClasses()>0;
2696 case LayoutNavEntry::ClassIndex:
return index.numAnnotatedClasses()>0;
2697 case LayoutNavEntry::ClassHierarchy:
return index.numHierarchyClasses()>0;
2699 case LayoutNavEntry::Files:
return showFiles && index.numDocumentedFiles()>0;
2700 case LayoutNavEntry::FileList:
return showFiles && index.numDocumentedFiles()>0;
2703 case LayoutNavEntry::Interfaces:
return index.numAnnotatedInterfaces()>0;
2704 case LayoutNavEntry::InterfaceList:
return index.numAnnotatedInterfaces()>0;
2705 case LayoutNavEntry::InterfaceIndex:
return index.numAnnotatedInterfaces()>0;
2706 case LayoutNavEntry::InterfaceHierarchy:
return index.numHierarchyInterfaces()>0;
2707 case LayoutNavEntry::Structs:
return index.numAnnotatedStructs()>0;
2708 case LayoutNavEntry::StructList:
return index.numAnnotatedStructs()>0;
2709 case LayoutNavEntry::StructIndex:
return index.numAnnotatedStructs()>0;
2710 case LayoutNavEntry::Exceptions:
return index.numAnnotatedExceptions()>0;
2711 case LayoutNavEntry::ExceptionList:
return index.numAnnotatedExceptions()>0;
2712 case LayoutNavEntry::ExceptionIndex:
return index.numAnnotatedExceptions()>0;
2713 case LayoutNavEntry::ExceptionHierarchy:
return index.numHierarchyExceptions()>0;
2714 case LayoutNavEntry::None:
2715 assert(kind != LayoutNavEntry::None);
2725 for (
const auto &entry : root->
children())
2732 for (
const auto &entry : root->
children())
2737 t <<
"<li><a href=\"" << relPath << url <<
"\"><span>";
2739 t <<
"</span></a>\n";
2752 bool highlightParent,
bool highlightSearch)
2775 entry.get()==hlEntry &&
2776 (!entry->children().empty() ||
2777 (entry->kind()==kind && !highlightParent)
2795 if (disableIndex || !generateTreeView || !fullSidebar)
2797 if (!serverBasedSearch)
2805 if (!highlightSearch)
2846 bool highlightParent=
false;
2874 highlightParent =
true;
break;
2876 highlightParent =
true;
break;
2878 highlightParent =
true;
break;
2880 highlightParent =
true;
break;
2882 highlightParent =
true;
break;
2884 highlightParent =
true;
break;
2886 highlightParent =
true;
break;
2888 highlightParent =
true;
break;
2893 if (!disableIndex && dynamicMenus)
2902 searchPage =
"search.php";
2904 t <<
"<script type=\"text/javascript\" src=\"" << relPath <<
"menudata.js\"></script>\n";
2905 t <<
"<script type=\"text/javascript\" src=\"" << relPath <<
"menu.js\"></script>\n";
2906 t <<
"<script type=\"text/javascript\">\n";
2907 t <<
"$(function() {\n";
2908 t <<
" initMenu('" << relPath <<
"',"
2909 << (searchEngine && !(generateTreeView && fullSidebar)?
"true":
"false") <<
","
2910 << (serverBasedSearch?
"true":
"false") <<
",'"
2911 << searchPage <<
"','"
2913 << (generateTreeView?
"true":
"false")
2917 if (!serverBasedSearch)
2919 if (!disableIndex && dynamicMenus && !fullSidebar)
2921 t <<
" $(function() { init_search(); });\n";
2926 t <<
" $(function() {\n"
2927 <<
" if ($('.searchresults').length > 0) { searchBox.DOMSearchField().focus(); }\n";
2933 t <<
"<div id=\"main-nav\"></div>\n";
2935 else if (!disableIndex)
2939 if (!hlEntry && altKind!=LayoutNavEntry::None) { hlEntry=root->
find(altKind); kind=altKind; }
2942 highlightParent=
TRUE;
2943 hlEntry = root->
children().front().get();
2944 if (hlEntry==
nullptr)
2949 if (kind==LayoutNavEntry::UserGroup)
2957 t <<
"<div id=\"main-nav\">\n";
2961 t <<
"</div><!-- main-nav -->\n";
2964 else if (!generateTreeView)
2968 if (generateTreeView && !disableIndex && fullSidebar && !extraTabs)
2970 t <<
"<div id=\"container\"><div id=\"doc-content\">\n";
2977 m_t <<
"</div><!-- top -->\n";
2978 if (!generateTreeView)
2980 m_t <<
"<div id=\"doc-content\">\n";
2989 if (generateTreeView)
2996 "<div id=\"side-nav\" class=\"ui-resizable side-nav-resizable\">\n");
2999 " <div id=\"nav-tree\">\n"
3000 " <div id=\"nav-tree-contents\">\n"
3001 " <div id=\"nav-sync\" class=\"sync\"></div>\n"
3004 " <div id=\"splitbar\" style=\"-moz-user-select:none;\" \n"
3005 " class=\"ui-resizable-handle\">\n"
3008 "<script type=\"text/javascript\">\n"
3009 "$(function(){initNavTree('" + fn +
"','" + relpath +
"','" + allMembersFile +
"'); });\n"
3013 result+=
"<div id=\"container\">\n<div id=\"doc-content\">\n";
3031 m_t <<
"<div class=\"contents\">\n";
3036 m_t <<
"</div><!-- contents -->\n";
3046 m_t <<
"</div><!-- PageDoc -->\n";
3060 bool quickLinksAfterSplitbar = !disableIndex && generateTreeView && fullSidebar;
3065 QCString configFileName = htmlOutput+
"/search_config.php";
3071 t <<
"$config = array(\n";
3072 t <<
" 'PROJECT_NAME' => \"" <<
convertToHtml(projectName) <<
"\",\n";
3073 t <<
" 'GENERATE_TREEVIEW' => " << (generateTreeView?
"true":
"false") <<
",\n";
3074 t <<
" 'DISABLE_INDEX' => " << (disableIndex?
"true":
"false") <<
",\n";
3075 t <<
" 'FULL_SIDEBAR' => " << (fullSidebar?
"true":
"false") <<
",\n";
3077 t <<
"$translator = array(\n";
3078 t <<
" 'search_results_title' => \"" <<
theTranslator->trSearchResultsTitle() <<
"\",\n";
3079 t <<
" 'search_results' => array(\n";
3080 t <<
" 0 => \"" <<
theTranslator->trSearchResults(0) <<
"\",\n";
3081 t <<
" 1 => \"" <<
theTranslator->trSearchResults(1) <<
"\",\n";
3084 t <<
" 'search_matches' => \"" <<
theTranslator->trSearchMatches() <<
"\",\n";
3085 t <<
" 'search' => \"" <<
theTranslator->trSearch() <<
"\",\n";
3103 t <<
"<!-- " <<
theTranslator->trGeneratedBy() <<
" Doxygen "
3104 << getDoxygenVersion() <<
" -->\n";
3105 t <<
"<script type=\"text/javascript\">\n";
3106 t <<
"var searchBox = new SearchBox(\"searchBox\", \""
3110 if (!disableIndex && !quickLinksAfterSplitbar)
3114 if (generateTreeView)
3116 t <<
"</div><!-- top -->\n";
3119 if (quickLinksAfterSplitbar)
3123 t <<
"<!-- generated -->\n";
3126 t <<
"require_once \"search_functions.php\";\n";
3131 if (generateTreeView)
3133 t <<
"</div><!-- doc-content -->\n";
3134 t <<
"</div><!-- container -->\n";
3141 QCString scriptName = htmlOutput+
"/search/search.js";
3150 err(
"Failed to open file '{}' for writing...\n",scriptName);
3159 bool quickLinksAfterSplitbar = !disableIndex && generateTreeView && fullSidebar;
3168 t <<
"<!-- " <<
theTranslator->trGeneratedBy() <<
" Doxygen "
3169 << getDoxygenVersion() <<
" -->\n";
3170 t <<
"<script type=\"text/javascript\">\n";
3171 t <<
"var searchBox = new SearchBox(\"searchBox\", \""
3175 if (!disableIndex && !quickLinksAfterSplitbar)
3179 if (generateTreeView)
3181 t <<
"</div><!-- top -->\n";
3184 if (quickLinksAfterSplitbar)
3189 t <<
"<div class=\"header\">\n";
3190 t <<
" <div class=\"headertitle\">\n";
3191 t <<
" <div class=\"title\">" <<
theTranslator->trSearchResultsTitle() <<
"</div>\n";
3194 t <<
"<div class=\"contents\">\n";
3196 t <<
"<div id=\"searchresults\"></div>\n";
3199 if (generateTreeView)
3201 t <<
"</div><!-- doc-content -->\n";
3202 t <<
"</div><!-- container -->\n";
3210 QCString scriptName = dname+
"/search/search.js";
3215 t <<
"var searchResultsText=["
3220 t <<
"var tagMap = {\n";
3224 for (
const auto &ml : extraSearchMappings)
3227 int eqPos = mapLine.
find(
'=');
3234 if (!first) t <<
",\n";
3235 t <<
" \"" << tagName <<
"\": \"" << destName <<
"\"";
3240 if (!first) t <<
"\n";
3244 t <<
"$(function() {\n";
3245 t <<
" var query = trim(getURLParameter('query'));\n";
3246 t <<
" if (query) {\n";
3247 t <<
" searchFor(query,0,20);\n";
3249 t <<
" var results = $('#results');\n";
3250 t <<
" results.html('<p>" <<
theTranslator->trSearchResults(0) <<
"</p>');\n";
3256 err(
"Failed to open file '{}' for writing...\n",scriptName);
3262 m_t <<
"<div class=\"typeconstraint\">\n";
3263 m_t <<
"<dl><dt><b>" << header <<
"</b></dt><dd>\n";
3264 m_t <<
"<table border=\"0\" cellspacing=\"2\" cellpadding=\"0\">\n";
3269 m_t <<
"<tr><td valign=\"top\"><em>";
3274 m_t <<
"</em></td>";
3279 m_t <<
"<td> :</td><td valign=\"top\"><em>";
3284 m_t <<
"</em></td>";
3289 m_t <<
"<td> ";
3294 m_t <<
"</td></tr>\n";
3299 m_t <<
"</table>\n";
3309 m_t <<
"<br class=\"" << style <<
"\" />\n";
3319 m_t <<
"<div class=\"header\">\n";
3324 m_t <<
" <div class=\"headertitle\">";
3336 m_t <<
"</div><!--header-->\n";
3343 m_t <<
"<table class=\"memberdecls\">\n";
3346 m_t <<
"<tr><td colspan=\"2\"><h3>";
3351 m_t <<
"</h3></td></tr>\n";
3356 DBG_HTML(
m_t <<
"<!-- startMemberDocSimple -->\n";)
3357 m_t <<
"<table class=\"fieldtable\">\n";
3358 m_t <<
"<tr><th colspan=\"" << (isEnum?
"2":
"3") <<
"\">";
3366 m_t <<
"</table>\n";
3371 DBG_HTML(
m_t <<
"<!-- startInlineMemberType -->\n";)
3372 m_t <<
"<tr><td class=\"fieldtype\">\n";
3377 DBG_HTML(
m_t <<
"<!-- endInlineMemberType -->\n";)
3383 DBG_HTML(
m_t <<
"<!-- startInlineMemberName -->\n";)
3384 m_t <<
"<td class=\"fieldname\">\n";
3389 DBG_HTML(
m_t <<
"<!-- endInlineMemberName -->\n";)
3395 DBG_HTML(
m_t <<
"<!-- startInlineMemberDoc -->\n";)
3396 m_t <<
"<td class=\"fielddoc\">\n";
3402 m_t <<
"</td></tr>\n";
3408 m_t <<
"<span class=\"mlabels\">";
3413 DBG_HTML(
m_t <<
"<!-- writeLabel(" << label <<
") -->\n";)
3415 auto convertLabelToClass = [](
const std::string &lab) {
3428 for (
size_t i=0; i<l; i++)
3430 char c = input.
at(i);
3431 if (c<0 || (c>=
'a' && c<=
'z') || c==
'_')
3436 else if (nmstart && (c<0 || (c>=
'a' && c<=
'z') || (c>=
'0' && c<=
'9') || c==
'_'))
3440 else if (nmstart && (c==
' ' || c==
'-'))
3448 m_t <<
"<span class=\"mlabel " << convertLabelToClass(label.
stripWhiteSpace().
str()) <<
"\">" << label <<
"</span>";
3462 DBG_HTML(
m_t <<
"<!-- writeInheritedSectionTitle -->\n";)
3464 if (!a.isEmpty()) a.
prepend(
"#");
3469 classLink +=
" href=\"";
3474 classLink +=
"href=\"";
3479 classLink=classLink+fn+a;
3481 m_t <<
"<tr class=\"inherit_header " <<
id <<
"\">"
3482 <<
"<td colspan=\"2\" onclick=\"javascript:dynsection.toggleInherit('" <<
id <<
"')\">"
3483 <<
"<span class=\"dynarrow\"><span class=\"arrowhead closed\"></span></span>"
3492 m_t <<
" <div class=\"summary\">\n";
3498 m_t <<
"<a href=\"";
3517 m_t <<
"<div id=\"page-nav\" class=\"page-nav-panel\">\n";
3518 m_t <<
"<div id=\"page-nav-resize-handle\"></div>\n";
3519 m_t <<
"<div id=\"page-nav-tree\">\n";
3520 m_t <<
"<div id=\"page-nav-contents\">\n";
3521 m_t <<
"</div><!-- page-nav-contents -->\n";
3522 m_t <<
"</div><!-- page-nav-tree -->\n";
3523 m_t <<
"</div><!-- page-nav -->\n";
3547 m_t <<
"<div class=\"toc\">";
3566 if (
type.isSection())
3569 int nextLevel =
type.level();
3577 char cs[2] = {
static_cast<char>(
'0'+l+1), 0 };
3578 const char *empty = (l!=nextLevel-1) ?
" empty" :
"";
3597 char cs[2] = {
static_cast<char>(
'0'+nextLevel), 0 };
3602 m_t <<
"<a href=\"#"+label+
"\">";
3610 int nextLevel =
type.level();
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 startTocEntry(const SectionInfo *si) 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 startMemberGroupHeader(const QCString &, bool) 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 startParameterType(bool first, const QCString &key) override
void startDescTableInit() override
void startLocalToc(int level) 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 writePageOutline() 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)
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)
void endLocalToc() override
std::unique_ptr< OutputCodeList > m_codeList
static void writeHeaderFile(TextStream &t, const QCString &cssname)
void startConstraintType() override
void endConstraintParam() override
static QCString writeSplitBarAsString(const QCString &name, const QCString &relpath, const QCString &allMembersFile)
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 startGroupHeader(const QCString &, int) override
void endInclDepGraph(DotInclDepGraph &g) override
void startParameterExtra() override
void startProjectNumber() override
void writeGraphicalHierarchy(DotGfxHierarchyTable &g) override
void startExamples() override
void docify(const QCString &text) override
void endInlineMemberDoc() override
void writeSplitBar(const QCString &name, const QCString &allMembersFile) override
void endCallGraph(DotCallGraph &g) override
void endConstraintType() override
void endMemberSubtitle() override
void startMemberDocPrefixItem() override
void startSection(const QCString &, const QCString &, SectionType) override
void endTocEntry(const SectionInfo *si) 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 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.
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.
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
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)