71static constexpr auto hex=
"0123456789ABCDEF";
79 t <<
" <div id=\"MSearchBox\" class=\"MSearchBoxInactive\">\n";
80 t <<
" <span class=\"left\">\n";
81 t <<
" <span id=\"MSearchSelect\" class=\"search-icon\" ";
82 t <<
"onmouseover=\"return searchBox.OnSearchSelectShow()\" ";
83 t <<
"onmouseout=\"return searchBox.OnSearchSelectHide()\">";
84 t <<
"<span class=\"search-icon-dropdown\"></span></span>\n";
85 t <<
" <input type=\"text\" id=\"MSearchField\" value=\"\" placeholder=\""
87 t <<
" onfocus=\"searchBox.OnSearchFieldFocus(true)\" \n";
88 t <<
" onblur=\"searchBox.OnSearchFieldFocus(false)\" \n";
89 t <<
" onkeyup=\"searchBox.OnSearchFieldChange(event)\"/>\n";
90 t <<
" </span><span class=\"right\">\n";
91 t <<
" <a id=\"MSearchClose\" href=\"javascript:searchBox.CloseResultsWindow()\">"
92 <<
"<div id=\"MSearchCloseImg\" class=\"close-icon\"></div></a>\n";
102 t <<
" <div id=\"MSearchBox\" class=\"MSearchBoxInactive\">\n";
103 t <<
" <div class=\"left\">\n";
104 t <<
" <form id=\"FSearchBox\" action=\"" << relPath;
113 t <<
"\" method=\"get\">\n";
114 t <<
" <span id=\"MSearchSelectExt\" class=\"search-icon\"></span>\n";
117 t <<
" <input type=\"text\" id=\"MSearchField\" name=\"query\" value=\"\" placeholder=\""
118 <<
theTranslator->trSearch() <<
"\" size=\"20\" accesskey=\"S\" \n";
119 t <<
" onfocus=\"searchBox.OnSearchFieldFocus(true)\" \n";
120 t <<
" onblur=\"searchBox.OnSearchFieldFocus(false)\"/>\n";
122 t <<
" </div><div class=\"right\"></div>\n";
153 if (macrofile.
isEmpty())
return "";
158 const char *data = s.
data();
167 while (i < size && (data[i] ==
' ' || data[i] ==
'\t' || data[i] ==
'\n'))
169 if (data[i] ==
'\n') line++;
172 if (i >= size)
break;
176 warn(macrofile,line,
"file contains non valid code, expected '\\' got '{:c}'",data[i]);
182 i += strlen(
"newcommand");
186 i += strlen(
"renewcommand");
190 warn(macrofile,line,
"file contains non valid code, expected 'newcommand' or 'renewcommand'");
196 warn(macrofile,line,
"file contains non valid code, expected '{{' got '{:c}'",data[i]);
202 warn(macrofile,line,
"file contains non valid code, expected '\\' got '{:c}'",data[i]);
208 while (i < size && (data[i] !=
'}')) out.
addChar(data[i++]);
211 warn(macrofile,line,
"file contains non valid code, no closing '}}' for command");
224 while (i < size && (data[i] !=
']')) nr += data[i++];
227 warn(macrofile,line,
"file contains non valid code, no closing ']'");
232 else if (data[i] !=
'{')
234 warn(macrofile,line,
"file contains non valid code, expected '[' or '{{' got '{:c}'",data[i]);
241 warn(macrofile,line,
"file contains non valid code, expected '{{' got '{:c}'",data[i]);
249 while (i < size && cnt)
263 else if (data[i] !=
'"') out.
addChar(data[i++]);
289 warn(macrofile,line,
"file contains non valid code, no closing '}}' for replacement");
329 bool isSource =
false)
346 bool hasProjectName = !projectName.
isEmpty();
353 bool hasCookie = treeView || searchEngine ||
Config_getEnum(HTML_COLORSTYLE)==HTML_COLORSTYLE_t::TOGGLE;
354 static bool titleArea = (hasProjectName || hasProjectBrief || hasProjectLogo || (disableIndex && searchEngine));
359 cssFile =
"doxygen.css";
372 cssFile =
"doxygen.css";
379 for (
const auto &fileName : extraCssFile)
381 if (!fileName.empty())
386 extraCssText +=
"<link href=\""+htmlStyleSheet+
"\" rel=\"stylesheet\" type=\"text/css\"/>\n";
393 extraCssText +=
"<link href=\"$relpath^"+
stripPath(fileName)+
"\" rel=\"stylesheet\" type=\"text/css\"/>\n";
401 case TIMESTAMP_t::NO:
405 generatedBy =
theTranslator->trGeneratedAt(
"<span class=\"timestamp\"></span>",
411 treeViewCssJs =
"<link href=\"$relpath^navtree.css\" rel=\"stylesheet\" type=\"text/css\"/>\n"
412 "<script type=\"text/javascript\" src=\"$relpath^navtreedata.js\"></script>\n"
413 "<script type=\"text/javascript\" src=\"$relpath^navtree.js\"></script>\n";
418 searchCssJs =
"<link href=\"$relpath^search/search.css\" rel=\"stylesheet\" type=\"text/css\"/>\n";
419 if (!serverBasedSearch)
421 searchCssJs +=
"<script type=\"text/javascript\" src=\"$relpath^search/searchdata.js\"></script>\n";
423 searchCssJs +=
"<script type=\"text/javascript\" src=\"$relpath^search/search.js\"></script>\n";
425 if (!serverBasedSearch)
429 searchCssJs +=
"<script type=\"text/javascript\">\n"
430 " $(function() { init_search(); });\n"
438 searchCssJs +=
"<script type=\"text/javascript\">\n"
440 " if ($('.searchresults').length > 0) { searchBox.DOMSearchField().focus(); }\n"
446 searchCssJs +=
"<link rel=\"search\" href=\"" + relPath +
447 "search_opensearch.php?v=opensearch.xml\" "
448 "type=\"application/opensearchdescription+xml\" title=\"" +
449 (hasProjectName ? projectName :
QCString(
"Doxygen")) +
456 if (mathJax && !isSource)
465 auto writeMathJax3Packages = [&mathJaxJs](
const StringVector &mathJaxExtensions)
467 mathJaxJs +=
" packages: ['base','configmacros'";
470 mathJaxJs+=
",'newcommand'";
472 for (
const auto &s : mathJaxExtensions)
474 mathJaxJs+=
",'"+s+
"'";
479 auto writeMathJax4Packages = [&mathJaxJs](
const StringVector &mathJaxExtensions)
481 mathJaxJs +=
" packages: {\n";
483 for (
const auto &s : mathJaxExtensions)
485 if (!first) mathJaxJs+=
",";
488 mathJaxJs+=
"\n '[-]': ['";
489 mathJaxJs+=s.
data()+1;
494 mathJaxJs+=
"\n '[+]': ['"+s+
"']";
498 mathJaxJs +=
"\n }\n";
501 auto writeMathJaxScript = [&path,&mathJaxJs](
const QCString &pathPostfix,
505 mathJaxJs +=
"<script type=\"text/javascript\">\n"
506 "window.MathJax = {\n"
508 " ignoreHtmlClass: 'tex2jax_ignore',\n"
509 " processHtmlClass: 'tex2jax_process'\n"
516 if (!mathJaxExtensions.empty())
519 mathJaxJs+=
" loader: {\n"
521 for (
const auto &s : mathJaxExtensions)
525 if (!first) mathJaxJs+=
",";
526 mathJaxJs+=
"'[tex]/"+s+
"'";
533 mathJaxJs+=
" tex: {\n"
540 writePackages(mathJaxExtensions);
554 mathJaxJs+=
"</script>\n";
555 mathJaxJs +=
"<script type=\"text/javascript\" id=\"MathJax-script\" async=\"async\" src=\"" +
556 path + pathPostfix +
"tex-" + mathJaxFormat.
lower() +
".js\">";
557 mathJaxJs+=
"</script>\n";
560 switch (mathJaxVersion)
562 case MATHJAX_VERSION_t::MathJax_4:
563 writeMathJaxScript(
"",writeMathJax4Packages);
565 case MATHJAX_VERSION_t::MathJax_3:
566 writeMathJaxScript(
"es5/",writeMathJax3Packages);
568 case MATHJAX_VERSION_t::MathJax_2:
571 mathJaxJs =
"<script type=\"text/x-mathjax-config\">\n"
572 "MathJax.Hub.Config({\n"
573 " extensions: [\"tex2jax.js\"";
575 for (
const auto &s : mathJaxExtensions)
577 mathJaxJs+=
", \""+
QCString(s)+
".js\"";
581 mathJaxFormat =
"HTML-CSS";
584 " jax: [\"input/TeX\",\"output/"+mathJaxFormat+
"\"],\n";
587 mathJaxJs +=
" TeX: { Macros: {\n";
592 mathJaxJs +=
"});\n";
598 mathJaxJs +=
"</script>\n";
599 mathJaxJs +=
"<script type=\"text/javascript\" async=\"async\" src=\"" + path +
"MathJax.js\"></script>\n";
608 darkModeJs=
"<script type=\"text/javascript\" src=\"$relpath^darkmode_toggle.js\"></script>\n";
613 treeViewCssJs+=
"<script type=\"text/javascript\" src=\"$relpath^cookie.js\"></script>\n";
626 {
"$datetime", [&]() ->
QCString {
return "<span class=\"datetime\"></span>"; } },
627 {
"$date", [&]() ->
QCString {
return "<span class=\"date\"></span>"; } },
628 {
"$time", [&]() ->
QCString {
return "<span class=\"time\"></span>"; } },
629 {
"$year", [&]() ->
QCString {
return "<span class=\"year\"></span>"; } },
630 {
"$navpath", [&]() ->
QCString {
return navPath; } },
631 {
"$stylesheet", [&]() ->
QCString {
return cssFile; } },
632 {
"$treeview", [&]() ->
QCString {
return treeViewCssJs; } },
633 {
"$searchbox", [&]() ->
QCString {
return searchBox; } },
634 {
"$search", [&]() ->
QCString {
return searchCssJs; } },
635 {
"$mathjax", [&]() ->
QCString {
return mathJaxJs; } },
636 {
"$darkmode", [&]() ->
QCString {
return darkModeJs; } },
637 {
"$generatedby", [&]() ->
QCString {
return generatedBy; } },
638 {
"$extrastylesheet",[&]() ->
QCString {
return extraCssText; } },
639 {
"$relpath$", [&]() ->
QCString {
return relPath; } }
642 result =
substitute(result,
"$relpath^",relPath);
648 {
"FULL_SIDEBAR", hasFullSideBar },
649 {
"DISABLE_INDEX", disableIndex },
650 {
"GENERATE_TREEVIEW", treeView },
651 {
"SEARCHENGINE", searchEngine },
652 {
"TITLEAREA", titleArea },
653 {
"PROJECT_NAME", hasProjectName },
654 {
"PROJECT_NUMBER", hasProjectNumber },
655 {
"PROJECT_BRIEF", hasProjectBrief },
656 {
"PROJECT_LOGO", hasProjectLogo },
657 {
"PROJECT_ICON", hasProjectIcon },
658 {
"COPY_CLIPBOARD", hasCopyClipboard },
674 while ((i=definitions.
find(
'\n',p))!=-1)
679 int separator = line.
find(
':');
680 assert(separator!=-1);
681 std::string key = line.
left(separator).
str();
685 map.emplace(key,value);
696 if (colorStyle==HTML_COLORSTYLE_t::LIGHT)
700 else if (colorStyle==HTML_COLORSTYLE_t::DARK)
712 while ((i=input.
find(
"var(",p))!=-1)
715 int j=input.
find(
")",i+4);
717 auto it = mapping.find(input.
mid(i+4,j-i-4).
str());
718 if (it==mapping.end())
720 err(
"failed to find value variable {}. It is not longer defined in doxygen.css\n",input.
mid(i+4,j-i-4));
725 output.
addStr(it->second);
735 if (colorStyle==HTML_COLORSTYLE_t::LIGHT)
739 else if (colorStyle==HTML_COLORSTYLE_t::DARK)
775 const char *p=str.
data();
788 int spacesToNextTabStop = tabSize - (
m_col%tabSize);
789 while (spacesToNextTabStop--)
808 case '\'': *
m_t <<
"'";
m_col++;
810 case '"': *
m_t <<
""";
m_col++;
814 { *
m_t <<
"<"; p++; }
816 { *
m_t <<
">"; p++; }
818 { *
m_t <<
"\\‍[";
m_col++;p++; }
820 { *
m_t <<
"\\‍]";
m_col++;p++; }
822 { *
m_t <<
"\\‍(";
m_col++;p++; }
824 { *
m_t <<
"\\‍)";
m_col++;p++; }
831 uint8_t uc =
static_cast<uint8_t
>(c);
834 *
m_t <<
"$" <<
hex[uc>>4] <<
hex[uc&0xF] <<
";";
878 const QCString &anchor,
int l,
bool writeLineAnchor)
882 const int maxLineNrStr = 10;
883 char lineNumber[maxLineNrStr];
884 char lineAnchor[maxLineNrStr];
885 qsnprintf(lineNumber,maxLineNrStr,
"%5d",l);
886 qsnprintf(lineAnchor,maxLineNrStr,
"l%05d",l);
891 *
m_t <<
"<div class=\"line\">";
895 if (writeLineAnchor) *
m_t <<
"<a id=\"" << lineAnchor <<
"\" name=\"" << lineAnchor <<
"\"></a>";
896 *
m_t <<
"<span class=\"lineno\">";
934 *
m_t <<
"<a class=\"" << className <<
"Ref\" ";
939 *
m_t <<
"<a class=\"" << className <<
"\" ";
959 *
m_t <<
"<div class=\"ttc\" id=\"" <<
id <<
"\">";
960 *
m_t <<
"<div class=\"ttname\">";
963 *
m_t <<
"<a href=\"";
979 *
m_t <<
"<div class=\"ttdeci\">";
986 *
m_t <<
"<div class=\"ttdoc\">";
993 *
m_t <<
"<div class=\"ttdef\"><b>" <<
theTranslator->trDefinition() <<
"</b> ";
996 *
m_t <<
"<a href=\"";
1012 *
m_t <<
"<div class=\"ttdecl\"><b>" <<
theTranslator->trDeclaration() <<
"</b> ";
1015 *
m_t <<
"<a href=\"";
1040 *
m_t <<
"<div class=\"line\">";
1064 *
m_t <<
"<span class=\"" << s <<
"\">";
1076 *
m_t <<
"<a id=\"" << anchor <<
"\" name=\"" << anchor <<
"\"></a>";
1081 *
m_t <<
"<div class=\"fragment\">";
1093 *
m_t <<
"</div><!-- fragment -->";
1103 const int maxLineNrStr = 10;
1104 char lineNumber[maxLineNrStr];
1105 qsnprintf(lineNumber,maxLineNrStr,
"%05d",lineNr);
1106 *
m_t <<
"<div class=\"foldopen\" id=\"foldopen" << lineNumber <<
1107 "\" data-start=\"" << startMarker <<
1108 "\" data-end=\"" << endMarker <<
1112 *
m_t <<
"<div class=\"line\">";
1120 *
m_t <<
"<div class=\"line\">";
1196 return (str.
contains(
"$datetime",
false) ||
1209 term(
"Could not create output directory {}\n",dname);
1379 searchCss = mgr.
getAsString(
"search_sidebar.css");
1385 searchCss = mgr.
getAsString(
"search_nomenu_toggle.css");
1394 searchCss = mgr.
getAsString(
"search_fixedtabs.css");
1401 searchCss += mgr.
getAsString(
"search_common.css");
1402 searchCss =
substitute(searchCss,
"$doxygenversion",getDoxygenVersion());
1410 t <<
"/* The standard CSS for doxygen " << getDoxygenVersion() <<
"*/\n\n";
1413 case HTML_COLORSTYLE_t::LIGHT:
1414 case HTML_COLORSTYLE_t::DARK:
1417 case HTML_COLORSTYLE_t::AUTO_LIGHT:
1418 case HTML_COLORSTYLE_t::TOGGLE:
1423 case HTML_COLORSTYLE_t::AUTO_DARK:
1429 if (
Config_getEnum(HTML_COLORSTYLE)==HTML_COLORSTYLE_t::AUTO_LIGHT)
1431 t <<
"@media (prefers-color-scheme: dark) {\n";
1432 t <<
" html:not(.dark-mode) {\n";
1433 t <<
" color-scheme: dark;\n\n";
1437 else if (
Config_getEnum(HTML_COLORSTYLE)==HTML_COLORSTYLE_t::AUTO_DARK)
1439 t <<
"@media (prefers-color-scheme: light) {\n";
1440 t <<
" html:not(.light-mode) {\n";
1441 t <<
" color-scheme: light;\n\n";
1445 else if (
Config_getEnum(HTML_COLORSTYLE)==HTML_COLORSTYLE_t::TOGGLE)
1447 t <<
"html.dark-mode {\n";
1458 " border-bottom: none;\n"
1459 " background-color: var(--nav-background-color);\n"
1460 " border-right: 1px solid var(--nav-border-color);\n"
1475 case TIMESTAMP_t::YES:
1476 case TIMESTAMP_t::DATETIME:
1479 case TIMESTAMP_t::DATE:
1485 t <<
"--timestamp: '" << timeStampStr <<
"';\n";
1498 t <<
"span.timestamp { content: ' '; }\n";
1499 t <<
"span.timestamp:before { content: var(--timestamp); }\n\n";
1503 t <<
"span.datetime { content: ' '; }\n";
1504 t <<
"span.datetime:before { content: var(--datetime); }\n\n";
1505 t <<
"span.date { content: ' '; }\n";
1506 t <<
"span.date:before { content: var(--date); }\n\n";
1507 t <<
"span.time { content: ' '; }\n";
1508 t <<
"span.time:before { content: var(--time); }\n\n";
1509 t <<
"span.year { content: ' '; }\n";
1510 t <<
"span.year:before { content: var(--year); }\n\n";
1517 bool addScrollbarStyling =
Config_getList(HTML_EXTRA_STYLESHEET).empty();
1518 if (addScrollbarStyling)
1533 t <<
"<!-- HTML header for doxygen " << getDoxygenVersion() <<
"-->\n";
1539 t <<
"<!-- HTML footer for doxygen " << getDoxygenVersion() <<
"-->\n";
1566 << getDoxygenVersion() <<
" -->\n";
1570 m_t <<
"<script type=\"text/javascript\">\n";
1571 m_t <<
"var searchBox = new SearchBox(\"searchBox\", \""
1573 m_t <<
"</script>\n";
1577 m_t <<
"<script type=\"text/javascript\">\n";
1578 m_t <<
"$(function() { codefold.init(); });\n";
1579 m_t <<
"</script>\n";
1588 if (searchEngine && !serverBasedSearch)
1590 t <<
"<!-- window showing the filter options -->\n";
1591 t <<
"<div id=\"MSearchSelectWindow\"\n";
1592 t <<
" onmouseover=\"return searchBox.OnSearchSelectShow()\"\n";
1593 t <<
" onmouseout=\"return searchBox.OnSearchSelectHide()\"\n";
1594 t <<
" onkeydown=\"return searchBox.OnSearchSelectKey(event)\">\n";
1597 t <<
"<!-- iframe showing the search results (closed by default) -->\n";
1598 t <<
"<div id=\"MSearchResultsWindow\">\n";
1599 t <<
"<div id=\"MSearchResults\">\n";
1600 t <<
"<div class=\"SRPage\">\n";
1601 t <<
"<div id=\"SRIndex\">\n";
1602 t <<
"<div id=\"SRResults\"></div>\n";
1603 t <<
"<div class=\"SRStatus\" id=\"Loading\">" <<
theTranslator->trLoading() <<
"</div>\n";
1604 t <<
"<div class=\"SRStatus\" id=\"Searching\">" <<
theTranslator->trSearching() <<
"</div>\n";
1605 t <<
"<div class=\"SRStatus\" id=\"NoMatches\">" <<
theTranslator->trNoMatches() <<
"</div>\n";
1625 case TIMESTAMP_t::NO:
1629 result =
theTranslator->trGeneratedAt(
"<span class=\"timestamp\"></span>",
1633 result +=
" \n<a href=\"https://www.doxygen.org/index.html\">\n"
1634 "<img class=\"footer\" src=\"";
1636 result +=
"doxygen.svg\" width=\"104\" height=\"31\" alt=\"doxygen\"/></a> ";
1637 result += getDoxygenVersion();
1665 m_t <<
"<h3 class=\"version\">";
1694 err(
"style sheet {} does not exist or is not readable!\n",
Config_getString(HTML_STYLESHEET));
1709 for (
const auto &
fileName : extraCssFiles)
1748 m_t <<
"<a id=\"" << anchor <<
"\" name=\"" << anchor <<
"\"></a>";
1762 m_t <<
"\n<p class=\"" << classDef <<
"\">";
1794 m_t <<
"<a class=\"elRef\" ";
1799 m_t <<
"<a class=\"el\" ";
1837 m_t <<
"<a class=\"el\" href=\"" << fn <<
"\">";
1847 m_t <<
"<a class=\"elRef\" ";
1852 m_t <<
"<a class=\"el\" ";
1868 m_t <<
"<a href=\"";
1885 if (extraIndentLevel==2)
1889 else if (extraIndentLevel==1)
1901 m_t <<
" class=\"groupheader\">";
1906 if (extraIndentLevel==2)
1910 else if (extraIndentLevel==1)
1922 switch(
type.level())
1931 default:
ASSERT(0);
break;
1933 m_t <<
"<a id=\"" << lab <<
"\" name=\"" << lab <<
"\"></a>";
1938 switch(
type.level())
1947 default:
ASSERT(0);
break;
1960 const char *p=str.
data();
1966 case '<':
m_t <<
"<";
break;
1967 case '>':
m_t <<
">";
break;
1968 case '&':
m_t <<
"&";
break;
1969 case '"':
m_t <<
""";
break;
1970 case '-':
if (inHtmlComment)
m_t <<
"-";
else m_t <<
"-";
break;
1973 {
m_t <<
"<"; p++; }
1975 {
m_t <<
">"; p++; }
1977 {
m_t <<
"\\‍["; p++; }
1979 {
m_t <<
"\\‍]"; p++; }
1981 {
m_t <<
"\\‍("; p++; }
1983 {
m_t <<
"\\‍)"; p++; }
2004 const QCString &relPath,
int sectionCount)
2008 if (dynamicSections)
2010 t <<
"<div id=\"dynsection-" << sectionCount <<
"\" "
2011 "onclick=\"return dynsection.toggleVisibility(this)\" "
2012 "class=\"dynheader closed\" "
2013 "style=\"cursor:pointer;\">"
2014 "<span class=\"dynarrow\"><span class=\"arrowhead closed\"></span></span>";
2018 t <<
"<div class=\"dynheader\">\n";
2032 if (dynamicSections)
2034 t <<
"<div id=\"dynsection-" << sectionCount <<
"-summary\" "
2035 "class=\"dynsummary\" "
2036 "style=\"display:block;\">\n";
2044 if (dynamicSections)
2054 if (dynamicSections)
2056 t <<
"<div id=\"dynsection-" << sectionCount <<
"-content\" "
2057 "class=\"dyncontent\" "
2058 "style=\"display:none;\">\n";
2062 t <<
"<div class=\"dyncontent\">\n";
2090 m_t <<
" <div class=\"center\">\n";
2091 m_t <<
" <img src=\"";
2093 m_t <<
"_map\" alt=\"\"/>\n";
2103 m_t <<
" <div class=\"center\">\n";
2104 m_t <<
" <img src=\"";
2132 m_t <<
"<table class=\"memberdecls\">\n";
2138 m_t <<
" inherit " << inheritId;
2155 m_t <<
"</td></tr>\n";
2164 m_t <<
"</td></tr>\n";
2168 m_t <<
" inherit " << inheritId;
2170 m_t <<
" template\"><td class=\"memItemLeft\" align=\"right\" valign=\"top\">";
2175 m_t <<
"<div class=\"compoundTemplParams\">";
2186 m_t <<
" </td><td class=\"memItemRight\" valign=\"bottom\">";
2191 if (!initTag)
m_t <<
" </td>";
2203 DBG_HTML(
m_t <<
"<!-- startMemberDescription -->\n")
2206 m_t <<
"<table class=\"memberdecls\">\n";
2209 m_t <<
"<tr class=\"memdesc:" << anchor;
2212 m_t <<
" inherit " << inheritId;
2215 m_t <<
"<td class=\"mdescLeft\"> </td>";
2216 if (typ)
m_t <<
"<td class=\"mdescLeft\"> </td>";
2217 m_t <<
"<td class=\"mdescRight\">";
2222 DBG_HTML(
m_t <<
"<!-- endMemberDescription -->\n")
2223 m_t <<
"<br /></td></tr>\n";
2239 m_t <<
"</table>\n";
2253 m_t <<
"<table class=\"memberdecls\">\n";
2256 m_t <<
"<tr class=\"heading\"><td colspan=\"" << typ <<
"\"><h2";
2259 m_t <<
" id=\"header-" << anchor <<
"\"";
2261 m_t <<
" class=\"groupheader\">";
2264 m_t <<
"<a id=\"" << anchor <<
"\" name=\"" << anchor <<
"\"></a>\n";
2271 m_t <<
"</h2></td></tr>\n";
2279 m_t <<
"<table class=\"memberdecls\">\n";
2282 m_t <<
"<tr><td class=\"ititle\" colspan=\"2\">";
2288 m_t <<
"</td></tr>\n";
2298 m_t <<
"</table>\n";
2333 int memCount,
int memTotal,
bool )
2336 m_t <<
"\n<h2 class=\"memtitle\">"
2337 <<
"<span class=\"permalink\"><a href=\"#" << anchor <<
"\">◆ </a></span>";
2341 m_t <<
" <span class=\"overload\">[" << memCount <<
"/" << memTotal <<
"]</span>";
2344 m_t <<
"\n<div class=\"memitem\">\n";
2345 m_t <<
"<div class=\"memproto\">\n";
2350 DBG_HTML(
m_t <<
"<!-- startMemberDocPrefixItem -->\n";)
2351 m_t <<
"<div class=\"memtemplate\">\n";
2356 DBG_HTML(
m_t <<
"<!-- endMemberDocPrefixItem -->\n";)
2364 m_t <<
" <table class=\"memname\">\n";
2367 m_t <<
" <td class=\"memname\">";
2380 if (openBracket)
m_t <<
"(";
2388 DBG_HTML(
m_t <<
"<!-- startFirstParameterType -->\n";)
2389 m_t <<
" <td class=\"paramtype\">";
2395 m_t <<
" <td class=\"paramkey\">" << key <<
"</td>\n";
2396 m_t <<
" <td></td>\n";
2397 m_t <<
" <td class=\"paramtype\">";
2410 m_t <<
" <td class=\"paramname\"><span class=\"paramname\"><em>";
2416 m_t <<
"</em></span>";
2421 DBG_HTML(
m_t <<
"<!-- startParameterExtra -->\n";)
2431 if (closeBracket)
m_t <<
"</td><td>)";
2438 if (closeBracket)
m_t <<
")";
2450 m_t <<
"<span class=\"paramdefsep\">";
2452 m_t <<
"</span><span class=\"paramdefval\">";
2475 m_t <<
" <td align=\"right\">";
2479 m_t <<
prefix <<
"</td><td>(</td><td colspan=\"2\">";
2480 else if (closeBracket)
2481 m_t <<
" )</td><td></td><td></td><td>";
2483 m_t <<
"</td><td></td><td colspan=\"2\">";
2493 m_t <<
" </table>\n";
2512 if (generateLegend && !umlLook)
2515 m_t <<
"<center><span class=\"legend\">[";
2518 if (generateTreeView)
m_t <<
"target=\"top\" ";
2524 m_t <<
"]</span></center>";
2610 m_t <<
"<tr id=\"" <<
id <<
"\" class=\"groupHeader\"><td colspan=\"2\"><div class=\"groupHeader\">";
2615 m_t <<
"</div></td></tr>\n";
2620 m_t <<
"<tr><td colspan=\"2\" class=\"ititle\"><div class=\"groupText\">";
2625 m_t <<
"</div></td></tr>\n";
2640 m_t <<
"<div class=\"memdoc\">\n";
2646 m_t <<
"\n</div>\n" <<
"</div>\n";
2655 for (
int i=0; i<n; i++)
2663 m_t <<
"<table class=\"fieldtable\">\n"
2664 <<
"<tr><th colspan=\"" << (hasInits?3:2) <<
"\">" << title <<
"</th></tr>";
2668 m_t <<
"</table>\n";
2683 m_t <<
"<td class=\"fieldname\">";
2688 m_t <<
" </td>";
2693 m_t <<
"<td class=\"fieldinit\">";
2698 m_t <<
" </td>";
2703 m_t <<
"<td class=\"fielddoc\">";
2713 m_t <<
"<dl class=\"section examples\"><dt>";
2726 if (astImpl && sectionLevel<=
m_tocState.maxLevel)
2730 std::visit(visitor,astImpl->
root);
2742 t <<
" <div id=\"navrow1\" class=\"tabs\">\n";
2746 t <<
" <div id=\"navrow2\" class=\"tabs2\">\n";
2748 t <<
" <ul class=\"tablist\">\n";
2776 t <<
" class=\"current\"";
2786 if (!l.
isEmpty()) t <<
"</a>";
2797 case LayoutNavEntry::MainPage:
return TRUE;
2798 case LayoutNavEntry::User:
return TRUE;
2799 case LayoutNavEntry::UserGroup:
return TRUE;
2800 case LayoutNavEntry::Pages:
return index.numIndexedPages()>0;
2801 case LayoutNavEntry::Topics:
return index.numDocumentedGroups()>0;
2802 case LayoutNavEntry::Modules:
return index.numDocumentedModules()>0;
2803 case LayoutNavEntry::ModuleList:
return index.numDocumentedModules()>0;
2805 case LayoutNavEntry::Namespaces:
return showNamespaces && index.numDocumentedNamespaces()>0;
2806 case LayoutNavEntry::NamespaceList:
return showNamespaces && index.numDocumentedNamespaces()>0;
2808 case LayoutNavEntry::Concepts:
return index.numDocumentedConcepts()>0;
2809 case LayoutNavEntry::Classes:
return index.numAnnotatedClasses()>0;
2810 case LayoutNavEntry::ClassList:
return index.numAnnotatedClasses()>0;
2811 case LayoutNavEntry::ClassIndex:
return index.numAnnotatedClasses()>0;
2812 case LayoutNavEntry::ClassHierarchy:
return index.numHierarchyClasses()>0;
2814 case LayoutNavEntry::Files:
return showFiles && index.numDocumentedFiles()>0;
2815 case LayoutNavEntry::FileList:
return showFiles && index.numDocumentedFiles()>0;
2818 case LayoutNavEntry::Interfaces:
return index.numAnnotatedInterfaces()>0;
2819 case LayoutNavEntry::InterfaceList:
return index.numAnnotatedInterfaces()>0;
2820 case LayoutNavEntry::InterfaceIndex:
return index.numAnnotatedInterfaces()>0;
2821 case LayoutNavEntry::InterfaceHierarchy:
return index.numHierarchyInterfaces()>0;
2822 case LayoutNavEntry::Structs:
return index.numAnnotatedStructs()>0;
2823 case LayoutNavEntry::StructList:
return index.numAnnotatedStructs()>0;
2824 case LayoutNavEntry::StructIndex:
return index.numAnnotatedStructs()>0;
2825 case LayoutNavEntry::Exceptions:
return index.numAnnotatedExceptions()>0;
2826 case LayoutNavEntry::ExceptionList:
return index.numAnnotatedExceptions()>0;
2827 case LayoutNavEntry::ExceptionIndex:
return index.numAnnotatedExceptions()>0;
2828 case LayoutNavEntry::ExceptionHierarchy:
return index.numHierarchyExceptions()>0;
2829 case LayoutNavEntry::None:
2830 assert(kind != LayoutNavEntry::None);
2840 for (
const auto &entry : root->
children())
2847 for (
const auto &entry : root->
children())
2852 t <<
"<li><a href=\"" << relPath << url <<
"\"><span>";
2854 t <<
"</span></a>\n";
2867 bool highlightParent,
bool highlightSearch)
2890 entry.get()==hlEntry &&
2891 (!entry->children().empty() ||
2892 (entry->kind()==kind && !highlightParent)
2910 if (disableIndex || !generateTreeView || !fullSidebar)
2912 if (!serverBasedSearch)
2920 if (!highlightSearch)
2961 bool highlightParent=
false;
2989 highlightParent =
true;
break;
2991 highlightParent =
true;
break;
2993 highlightParent =
true;
break;
2995 highlightParent =
true;
break;
2997 highlightParent =
true;
break;
2999 highlightParent =
true;
break;
3001 highlightParent =
true;
break;
3003 highlightParent =
true;
break;
3008 if (!disableIndex && dynamicMenus)
3017 searchPage =
"search.php";
3019 t <<
"<script type=\"text/javascript\" src=\"" << relPath <<
"menudata.js\"></script>\n";
3020 t <<
"<script type=\"text/javascript\" src=\"" << relPath <<
"menu.js\"></script>\n";
3021 t <<
"<script type=\"text/javascript\">\n";
3022 t <<
"$(function() {\n";
3023 t <<
" initMenu('" << relPath <<
"',"
3024 << (searchEngine && !(generateTreeView && fullSidebar)?
"true":
"false") <<
","
3025 << (serverBasedSearch?
"true":
"false") <<
",'"
3026 << searchPage <<
"','"
3028 << (generateTreeView?
"true":
"false")
3032 if (!serverBasedSearch)
3034 if (!disableIndex && dynamicMenus && !fullSidebar)
3036 t <<
" $(function() { init_search(); });\n";
3041 t <<
" $(function() {\n"
3042 <<
" if ($('.searchresults').length > 0) { searchBox.DOMSearchField().focus(); }\n";
3048 t <<
"<div id=\"main-nav\"></div>\n";
3050 else if (!disableIndex)
3054 if (!hlEntry && altKind!=LayoutNavEntry::None) { hlEntry=root->
find(altKind); kind=altKind; }
3057 highlightParent=
TRUE;
3058 hlEntry = root->
children().front().get();
3059 if (hlEntry==
nullptr)
3064 if (kind==LayoutNavEntry::UserGroup)
3072 t <<
"<div id=\"main-nav\">\n";
3076 t <<
"</div><!-- main-nav -->\n";
3079 else if (!generateTreeView)
3083 if (generateTreeView && !disableIndex && fullSidebar && !extraTabs)
3085 t <<
"<div id=\"container\"><div id=\"doc-content\">\n";
3092 m_t <<
"</div><!-- top -->\n";
3093 if (!generateTreeView)
3095 m_t <<
"<div id=\"doc-content\">\n";
3104 if (generateTreeView)
3111 "<div id=\"side-nav\" class=\"ui-resizable side-nav-resizable\">\n");
3114 " <div id=\"nav-tree\">\n"
3115 " <div id=\"nav-tree-contents\">\n"
3116 " <div id=\"nav-sync\" class=\"sync\"></div>\n"
3119 " <div id=\"splitbar\" style=\"-moz-user-select:none;\" \n"
3120 " class=\"ui-resizable-handle\">\n"
3123 "<script type=\"text/javascript\">\n"
3124 "$(function(){initNavTree('" + fn +
"','" + relpath +
"','" + allMembersFile +
"'); });\n"
3128 result+=
"<div id=\"container\">\n<div id=\"doc-content\">\n";
3146 m_t <<
"<div class=\"contents\">\n";
3151 m_t <<
"</div><!-- contents -->\n";
3161 m_t <<
"</div><!-- PageDoc -->\n";
3175 bool quickLinksAfterSplitbar = !disableIndex && generateTreeView && fullSidebar;
3180 QCString configFileName = htmlOutput+
"/search_config.php";
3186 t <<
"$config = array(\n";
3187 t <<
" 'PROJECT_NAME' => \"" <<
convertToHtml(projectName) <<
"\",\n";
3188 t <<
" 'GENERATE_TREEVIEW' => " << (generateTreeView?
"true":
"false") <<
",\n";
3189 t <<
" 'DISABLE_INDEX' => " << (disableIndex?
"true":
"false") <<
",\n";
3190 t <<
" 'FULL_SIDEBAR' => " << (fullSidebar?
"true":
"false") <<
",\n";
3192 t <<
"$translator = array(\n";
3193 t <<
" 'search_results_title' => \"" <<
theTranslator->trSearchResultsTitle() <<
"\",\n";
3194 t <<
" 'search_results' => array(\n";
3195 t <<
" 0 => \"" <<
theTranslator->trSearchResults(0) <<
"\",\n";
3196 t <<
" 1 => \"" <<
theTranslator->trSearchResults(1) <<
"\",\n";
3199 t <<
" 'search_matches' => \"" <<
theTranslator->trSearchMatches() <<
"\",\n";
3200 t <<
" 'search' => \"" <<
theTranslator->trSearch() <<
"\",\n";
3218 t <<
"<!-- " <<
theTranslator->trGeneratedBy() <<
" Doxygen "
3219 << getDoxygenVersion() <<
" -->\n";
3220 t <<
"<script type=\"text/javascript\">\n";
3221 t <<
"var searchBox = new SearchBox(\"searchBox\", \""
3225 if (!disableIndex && !quickLinksAfterSplitbar)
3229 if (generateTreeView)
3231 t <<
"</div><!-- top -->\n";
3234 if (quickLinksAfterSplitbar)
3238 t <<
"<!-- generated -->\n";
3241 t <<
"require_once \"search_functions.php\";\n";
3246 if (generateTreeView)
3248 t <<
"</div><!-- doc-content -->\n";
3249 t <<
"</div><!-- container -->\n";
3256 QCString scriptName = htmlOutput+
"/search/search.js";
3265 err(
"Failed to open file '{}' for writing...\n",scriptName);
3274 bool quickLinksAfterSplitbar = !disableIndex && generateTreeView && fullSidebar;
3283 t <<
"<!-- " <<
theTranslator->trGeneratedBy() <<
" Doxygen "
3284 << getDoxygenVersion() <<
" -->\n";
3285 t <<
"<script type=\"text/javascript\">\n";
3286 t <<
"var searchBox = new SearchBox(\"searchBox\", \""
3290 if (!disableIndex && !quickLinksAfterSplitbar)
3294 if (generateTreeView)
3296 t <<
"</div><!-- top -->\n";
3299 if (quickLinksAfterSplitbar)
3304 t <<
"<div class=\"header\">\n";
3305 t <<
" <div class=\"headertitle\">\n";
3306 t <<
" <div class=\"title\">" <<
theTranslator->trSearchResultsTitle() <<
"</div>\n";
3309 t <<
"<div class=\"contents\">\n";
3311 t <<
"<div id=\"searchresults\"></div>\n";
3314 if (generateTreeView)
3316 t <<
"</div><!-- doc-content -->\n";
3317 t <<
"</div><!-- container -->\n";
3325 QCString scriptName = dname+
"/search/search.js";
3330 t <<
"var searchResultsText=["
3335 t <<
"var tagMap = {\n";
3339 for (
const auto &ml : extraSearchMappings)
3342 int eqPos = mapLine.
find(
'=');
3349 if (!first) t <<
",\n";
3350 t <<
" \"" << tagName <<
"\": \"" << destName <<
"\"";
3355 if (!first) t <<
"\n";
3359 t <<
"$(function() {\n";
3360 t <<
" var query = trim(getURLParameter('query'));\n";
3361 t <<
" if (query) {\n";
3362 t <<
" searchFor(query,0,20);\n";
3364 t <<
" var results = $('#results');\n";
3365 t <<
" results.html('<p>" <<
theTranslator->trSearchResults(0) <<
"</p>');\n";
3371 err(
"Failed to open file '{}' for writing...\n",scriptName);
3377 m_t <<
"<div class=\"typeconstraint\">\n";
3378 m_t <<
"<dl><dt><b>" << header <<
"</b></dt><dd>\n";
3379 m_t <<
"<table border=\"0\" cellspacing=\"2\" cellpadding=\"0\">\n";
3384 m_t <<
"<tr><td valign=\"top\"><em>";
3389 m_t <<
"</em></td>";
3394 m_t <<
"<td> :</td><td valign=\"top\"><em>";
3399 m_t <<
"</em></td>";
3404 m_t <<
"<td> ";
3409 m_t <<
"</td></tr>\n";
3414 m_t <<
"</table>\n";
3424 m_t <<
"<br class=\"" << style <<
"\" />\n";
3434 m_t <<
"<div class=\"header\">\n";
3439 m_t <<
" <div class=\"headertitle\">";
3451 m_t <<
"</div><!--header-->\n";
3458 m_t <<
"<table class=\"memberdecls\">\n";
3461 m_t <<
"<tr><td colspan=\"2\"><h3>";
3466 m_t <<
"</h3></td></tr>\n";
3471 DBG_HTML(
m_t <<
"<!-- startMemberDocSimple -->\n";)
3472 m_t <<
"<table class=\"fieldtable\">\n";
3473 m_t <<
"<tr><th colspan=\"" << (isEnum?
"2":
"3") <<
"\">";
3481 m_t <<
"</table>\n";
3486 DBG_HTML(
m_t <<
"<!-- startInlineMemberType -->\n";)
3487 m_t <<
"<tr><td class=\"fieldtype\">\n";
3492 DBG_HTML(
m_t <<
"<!-- endInlineMemberType -->\n";)
3498 DBG_HTML(
m_t <<
"<!-- startInlineMemberName -->\n";)
3499 m_t <<
"<td class=\"fieldname\">\n";
3504 DBG_HTML(
m_t <<
"<!-- endInlineMemberName -->\n";)
3510 DBG_HTML(
m_t <<
"<!-- startInlineMemberDoc -->\n";)
3511 m_t <<
"<td class=\"fielddoc\">\n";
3517 m_t <<
"</td></tr>\n";
3523 m_t <<
"<span class=\"mlabels\">";
3528 DBG_HTML(
m_t <<
"<!-- writeLabel(" << label <<
") -->\n";)
3530 auto convertLabelToClass = [](
const std::string &lab) {
3543 for (
size_t i=0; i<l; i++)
3545 char c = input.
at(i);
3546 if (c<0 || (c>=
'a' && c<=
'z') || c==
'_')
3551 else if (nmstart && (c<0 || (c>=
'a' && c<=
'z') || (c>=
'0' && c<=
'9') || c==
'_'))
3555 else if (nmstart && (c==
' ' || c==
'-'))
3563 m_t <<
"<span class=\"mlabel " << convertLabelToClass(label.
stripWhiteSpace().
str()) <<
"\">" << label <<
"</span>";
3577 DBG_HTML(
m_t <<
"<!-- writeInheritedSectionTitle -->\n";)
3579 if (!a.isEmpty()) a.
prepend(
"#");
3584 classLink +=
" href=\"";
3589 classLink +=
"href=\"";
3594 classLink=classLink+fn+a;
3596 m_t <<
"<tr class=\"inherit_header " <<
id <<
"\">"
3597 <<
"<td colspan=\"2\" onclick=\"javascript:dynsection.toggleInherit('" <<
id <<
"')\">"
3598 <<
"<span class=\"dynarrow\"><span class=\"arrowhead closed\"></span></span>"
3607 m_t <<
" <div class=\"summary\">\n";
3613 m_t <<
"<a href=\"";
3632 m_t <<
"<div id=\"page-nav\" class=\"page-nav-panel\">\n";
3633 m_t <<
"<div id=\"page-nav-resize-handle\"></div>\n";
3634 m_t <<
"<div id=\"page-nav-tree\">\n";
3635 m_t <<
"<div id=\"page-nav-contents\">\n";
3636 m_t <<
"</div><!-- page-nav-contents -->\n";
3637 m_t <<
"</div><!-- page-nav-tree -->\n";
3638 m_t <<
"</div><!-- page-nav -->\n";
3662 m_t <<
"<div class=\"toc\">";
3681 if (
type.isSection())
3684 int nextLevel =
type.level();
3692 char cs[2] = {
static_cast<char>(
'0'+l+1), 0 };
3693 const char *empty = (l!=nextLevel-1) ?
" empty" :
"";
3712 char cs[2] = {
static_cast<char>(
'0'+nextLevel), 0 };
3717 m_t <<
"<a href=\"#"+label+
"\">";
3725 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 startDotGraph() override
void startFile(const QCString &name, bool isSource, const QCString &manName, const QCString &title, int id, int hierarchyLevel) 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 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 writeDoc(const IDocNodeAST *node, const Definition *, const MemberDef *, int id, int sectionLevel) 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
int contains(char c, bool cs=TRUE) 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.
QCString yearToString()
Returns the current year as a string.
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 bool hasDateReplacement(const QCString &str)
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 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)
static QCString substituteHtmlKeywords(const QCString &file, const QCString &str, const QCString &title, const QCString &relPath, const QCString &navPath=QCString(), bool isSource=false)
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)