|
Doxygen
|
#include <stdlib.h>#include <assert.h>#include <mutex>#include "message.h"#include "htmlgen.h"#include "config.h"#include "util.h"#include "doxygen.h"#include "diagram.h"#include "version.h"#include "dot.h"#include "dotcallgraph.h"#include "dotclassgraph.h"#include "dotdirdeps.h"#include "dotgfxhierarchytable.h"#include "dotgroupcollaboration.h"#include "dotincldepgraph.h"#include "language.h"#include "htmlhelp.h"#include "docparser.h"#include "docnode.h"#include "htmldocvisitor.h"#include "searchindex.h"#include "pagedef.h"#include "debug.h"#include "dirdef.h"#include "vhdldocgen.h"#include "layout.h"#include "image.h"#include "ftvhelp.h"#include "resourcemgr.h"#include "tooltip.h"#include "fileinfo.h"#include "dir.h"#include "utf8.h"#include "textstream.h"#include "indexlist.h"#include "datetime.h"#include "portable.h"#include "outputlist.h"#include "stringutil.h"#include "mermaid.h"Go to the source code of this file.
Macros | |
| #define | DBG_HTML(x) |
Functions | |
| static void | writeClientSearchBox (TextStream &t, const DString &relPath) |
| static void | writeServerSearchBox (TextStream &t, const DString &relPath, bool highlightSearch) |
| static DString | getConvertLatexMacro () |
| Convert a set of LaTeX commands \(re)newcommand to a form readable by MathJax LaTeX syntax: | |
| static DString | getSearchBox (bool serverSide, DString relPath, bool highlightSearch) |
| static DString | substituteHtmlKeywords (const DString &file, const DString &str, const DString &title, const DString &relPath, const DString &navPath=DString(), bool isSource=false) |
| static void | fillColorStyleMap (const DString &definitions, StringUnorderedMap &map) |
| static void | fillColorStyleMaps () |
| static DString | replaceVariables (const DString &input) |
| static bool | hasDateReplacement (const DString &str) |
| static void | writeDefaultStyleSheet (TextStream &t) |
| static void | startSectionHeader (TextStream &t, const DString &relPath, int sectionCount) |
| static void | endSectionHeader (TextStream &t) |
| static void | startSectionSummary (TextStream &t, int sectionCount) |
| static void | endSectionSummary (TextStream &t) |
| static void | startSectionContent (TextStream &t, int sectionCount) |
| static void | endSectionContent (TextStream &t) |
| static void | startQuickIndexList (TextStream &t, bool topLevel=true) |
| static void | endQuickIndexList (TextStream &t) |
| static void | startQuickIndexItem (TextStream &t, const DString &l, bool hl, bool, const DString &relPath) |
| static void | endQuickIndexItem (TextStream &t, const DString &l) |
| static bool | quickLinkVisible (LayoutNavEntry::Kind kind) |
| static void | renderQuickLinksAsTree (TextStream &t, const DString &relPath, LayoutNavEntry *root) |
| static void | renderQuickLinksAsTabs (TextStream &t, const DString &relPath, LayoutNavEntry *hlEntry, LayoutNavEntry::Kind kind, bool highlightParent, bool highlightSearch) |
| static void | writeDefaultQuickLinks (TextStream &t, HighlightedItem hli, const DString &file, const DString &relPath, bool extraTabs) |
Variables | |
| static DString | g_header |
| static DString | g_header_file |
| static DString | g_footer_file |
| static DString | g_footer |
| static DString | g_mathjax_code |
| static DString | g_latex_macro |
| static bool | g_build_date = false |
| static constexpr auto | hex ="0123456789ABCDEF" |
| static const SelectionMarkerInfo | htmlMarkerInfo = { '<', "<!--BEGIN ",10,"<!--END ",8,"-->",3 } |
| static StringUnorderedMap | g_lightMap |
| static StringUnorderedMap | g_darkMap |
| static std::mutex | g_indexLock |
| #define DBG_HTML | ( | x | ) |
Definition at line 62 of file htmlgen.cpp.
Referenced by HtmlGenerator::endEmbeddedDoc(), HtmlGenerator::endIndent(), HtmlGenerator::endInlineMemberDoc(), HtmlGenerator::endInlineMemberName(), HtmlGenerator::endInlineMemberType(), HtmlGenerator::endLabels(), HtmlGenerator::endMemberDescription(), HtmlGenerator::endMemberDoc(), HtmlGenerator::endMemberDocList(), HtmlGenerator::endMemberDocName(), HtmlGenerator::endMemberDocPrefixItem(), HtmlGenerator::endMemberDocSimple(), HtmlGenerator::endMemberHeader(), HtmlGenerator::endMemberList(), HtmlGenerator::endMemberSections(), HtmlGenerator::endMemberSubtitle(), HtmlGenerator::endParameterExtra(), HtmlGenerator::endParameterList(), HtmlGenerator::endParameterName(), HtmlGenerator::endParameterType(), HtmlGenerator::exceptionEntry(), HtmlGenerator::insertMemberAlign(), HtmlGenerator::startEmbeddedDoc(), HtmlGenerator::startIndent(), HtmlGenerator::startInlineMemberDoc(), HtmlGenerator::startInlineMemberName(), HtmlGenerator::startInlineMemberType(), HtmlGenerator::startLabels(), HtmlGenerator::startMemberDescription(), HtmlGenerator::startMemberDoc(), HtmlGenerator::startMemberDocList(), HtmlGenerator::startMemberDocName(), HtmlGenerator::startMemberDocPrefixItem(), HtmlGenerator::startMemberDocSimple(), HtmlGenerator::startMemberHeader(), HtmlGenerator::startMemberItem(), HtmlGenerator::startMemberList(), HtmlGenerator::startMemberSections(), HtmlGenerator::startMemberSubtitle(), HtmlGenerator::startParameterExtra(), HtmlGenerator::startParameterList(), HtmlGenerator::startParameterName(), HtmlGenerator::startParameterType(), HtmlGenerator::writeInheritedSectionTitle(), and HtmlGenerator::writeLabel().
|
static |
Definition at line 2880 of file htmlgen.cpp.
References DString::empty(), and endQuickIndexItem().
Referenced by endQuickIndexItem(), and renderQuickLinksAsTabs().
|
static |
Definition at line 2853 of file htmlgen.cpp.
References Config_getBool, and endQuickIndexList().
Referenced by endQuickIndexList(), renderQuickLinksAsTabs(), and renderQuickLinksAsTree().
|
static |
Definition at line 2157 of file htmlgen.cpp.
References endSectionContent().
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), HtmlGenerator::endInclDepGraph(), and endSectionContent().
|
static |
Definition at line 2115 of file htmlgen.cpp.
References endSectionHeader().
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), HtmlGenerator::endInclDepGraph(), and endSectionHeader().
|
static |
Definition at line 2132 of file htmlgen.cpp.
References Config_getBool, and endSectionSummary().
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), HtmlGenerator::endInclDepGraph(), and endSectionSummary().
|
static |
Definition at line 742 of file htmlgen.cpp.
References fillColorStyleMap(), DString::find(), DString::left(), DString::mid(), DString::npos, DString::rfind(), DString::startsWith(), DString::str(), and DString::stripWhiteSpace().
Referenced by fillColorStyleMap(), and fillColorStyleMaps().
|
static |
Definition at line 763 of file htmlgen.cpp.
References Config_getEnum, fillColorStyleMap(), fillColorStyleMaps(), g_darkMap, g_lightMap, ResourceMgr::getAsString(), ResourceMgr::instance(), and replaceColorMarkers().
Referenced by fillColorStyleMaps(), HtmlGenerator::init(), and HtmlGenerator::writeStyleSheetFile().
|
static |
Convert a set of LaTeX commands \(re)newcommand to a form readable by MathJax LaTeX syntax:
MathJax syntax:
LaTeX syntax:
MathJax syntax:
Definition at line 143 of file htmlgen.cpp.
References Config_getString, DString::data(), DString::empty(), FileInfo::FileInfo(), fileToString(), getConvertLatexMacro(), DString::length(), literal_at(), DString::reserve(), DString::str(), and warn.
Referenced by getConvertLatexMacro(), and HtmlGenerator::init().
Definition at line 294 of file htmlgen.cpp.
References getSearchBox(), TextStream::str(), writeClientSearchBox(), and writeServerSearchBox().
Referenced by getSearchBox(), substituteHtmlKeywords(), and writeDefaultQuickLinks().
|
static |
Definition at line 1265 of file htmlgen.cpp.
References DString::contains(), and hasDateReplacement().
Referenced by hasDateReplacement(), and HtmlGenerator::init().
|
static |
Definition at line 2887 of file htmlgen.cpp.
References ClassMemberHighlight::All, FileMemberHighlight::All, ModuleMemberHighlight::All, NamespaceMemberHighlight::All, Config_getBool, LinkedMap< T, Hash, KeyEqual, Map >::empty(), Doxygen::exampleLinkedMap, Index::instance(), and quickLinkVisible().
Referenced by quickLinkVisible(), renderQuickLinksAsTabs(), and renderQuickLinksAsTree().
|
static |
Definition at line 2962 of file htmlgen.cpp.
References LayoutNavEntry::children(), Config_getBool, endQuickIndexItem(), endQuickIndexList(), fixSpaces(), LayoutDocManager::instance(), LayoutNavEntry::parent(), quickLinkVisible(), renderQuickLinksAsTabs(), LayoutDocManager::rootNavEntry(), startQuickIndexItem(), startQuickIndexList(), writeClientSearchBox(), and writeServerSearchBox().
Referenced by renderQuickLinksAsTabs(), and writeDefaultQuickLinks().
|
static |
Definition at line 2933 of file htmlgen.cpp.
References LayoutNavEntry::children(), endQuickIndexList(), fixSpaces(), quickLinkVisible(), renderQuickLinksAsTree(), and startQuickIndexList().
Referenced by renderQuickLinksAsTree(), and writeDefaultQuickLinks().
Definition at line 777 of file htmlgen.cpp.
References Config_getEnum, err, DString::find(), g_darkMap, g_lightMap, DString::length(), DString::mid(), DString::npos, replaceVariables(), DString::reserve(), and DString::str().
Referenced by HtmlGenerator::getNavTreeCss(), HtmlGenerator::init(), replaceVariables(), writeDefaultStyleSheet(), and HtmlGenerator::writeSearchData().
|
static |
Definition at line 2866 of file htmlgen.cpp.
References correctURL(), DString::empty(), and startQuickIndexItem().
Referenced by renderQuickLinksAsTabs(), and startQuickIndexItem().
|
static |
Definition at line 2833 of file htmlgen.cpp.
References Config_getBool, and startQuickIndexList().
Referenced by renderQuickLinksAsTabs(), renderQuickLinksAsTree(), and startQuickIndexList().
|
static |
Definition at line 2142 of file htmlgen.cpp.
References Config_getBool, and startSectionContent().
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), HtmlGenerator::endInclDepGraph(), and startSectionContent().
|
static |
Definition at line 2098 of file htmlgen.cpp.
References Config_getBool, and startSectionHeader().
Referenced by HtmlGenerator::startCallGraph(), HtmlGenerator::startClassDiagram(), HtmlGenerator::startDirDepGraph(), HtmlGenerator::startDotGraph(), HtmlGenerator::startGroupCollaboration(), HtmlGenerator::startInclDepGraph(), and startSectionHeader().
|
static |
Definition at line 2121 of file htmlgen.cpp.
References Config_getBool, and startSectionSummary().
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), HtmlGenerator::endInclDepGraph(), and startSectionSummary().
|
static |
Definition at line 308 of file htmlgen.cpp.
References codeFolding(), Config_getBool, Config_getEnum, Config_getEnumAsString, Config_getList, Config_getString, convertToHtml(), DString::data(), DString::DString(), DString::empty(), FileInfo::exists(), FileInfo::fileName(), g_latex_macro, g_mathjax_code, getSearchBox(), htmlMarkerInfo, MermaidManager::instance(), DString::lower(), DString::prepend(), removeEmptyLines(), selectBlocks(), DString::startsWith(), DString::str(), stripPath(), substitute(), substituteHtmlKeywords(), substituteKeywords(), theTranslator, Translator::trGeneratedAt(), and Translator::trGeneratedBy().
Referenced by HtmlGenerator::init(), HtmlGenerator::startFile(), substituteHtmlKeywords(), HtmlGenerator::writeExternalSearchPage(), HtmlGenerator::writePageFooter(), and HtmlGenerator::writeSearchPage().
|
static |
Definition at line 77 of file htmlgen.cpp.
References theTranslator, Translator::trSearch(), and writeClientSearchBox().
Referenced by getSearchBox(), renderQuickLinksAsTabs(), and writeClientSearchBox().
|
static |
Definition at line 3042 of file htmlgen.cpp.
References AnnotatedClasses, AnnotatedExceptions, AnnotatedInterfaces, AnnotatedStructs, LayoutNavEntry::children(), Classes, ClassHierarchy, ClassVisible, Concepts, ConceptVisible, Config_getBool, DString::DString(), Examples, ExceptionHierarchy, Exceptions, ExceptionVisible, Files, FileVisible, LayoutNavEntry::find(), Functions, getSearchBox(), Globals, Doxygen::htmlFileExtension, LayoutDocManager::instance(), InterfaceHierarchy, Interfaces, InterfaceVisible, Main, ModuleMembers, Modules, ModuleVisible, NamespaceMembers, Namespaces, NamespaceVisible, None, Pages, renderQuickLinksAsTabs(), renderQuickLinksAsTree(), LayoutDocManager::rootNavEntry(), Search, Structs, StructVisible, Topics, UserGroup, and writeDefaultQuickLinks().
Referenced by writeDefaultQuickLinks(), HtmlGenerator::writeExternalSearchPage(), HtmlGenerator::writeQuickLinks(), and HtmlGenerator::writeSearchPage().
|
static |
Definition at line 1499 of file htmlgen.cpp.
References Config_getBool, Config_getEnum, Config_getList, Date, DateTime, dateToString(), g_build_date, ResourceMgr::getAsString(), ResourceMgr::instance(), replaceColorMarkers(), replaceVariables(), Time, writeDefaultStyleSheet(), and yearToString().
Referenced by writeDefaultStyleSheet(), HtmlGenerator::writeStyleInfo(), and HtmlGenerator::writeStyleSheetFile().
|
static |
Definition at line 94 of file htmlgen.cpp.
References Config_getBool, Doxygen::htmlFileExtension, theTranslator, Translator::trSearch(), and writeServerSearchBox().
Referenced by getSearchBox(), renderQuickLinksAsTabs(), and writeServerSearchBox().
|
static |
Definition at line 70 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and writeDefaultStyleSheet().
|
static |
Definition at line 740 of file htmlgen.cpp.
Referenced by fillColorStyleMaps(), and replaceVariables().
|
static |
Definition at line 67 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and HtmlGenerator::writePageFooter().
|
static |
Definition at line 66 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and HtmlGenerator::writePageFooter().
|
static |
Definition at line 64 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), HtmlGenerator::startFile(), HtmlGenerator::writeExternalSearchPage(), and HtmlGenerator::writeSearchPage().
|
static |
Definition at line 65 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), HtmlGenerator::startFile(), HtmlGenerator::writeExternalSearchPage(), and HtmlGenerator::writeSearchPage().
|
static |
Definition at line 1634 of file htmlgen.cpp.
Referenced by HtmlGenerator::startFile().
|
static |
Definition at line 69 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and substituteHtmlKeywords().
|
static |
Definition at line 739 of file htmlgen.cpp.
Referenced by fillColorStyleMaps(), and replaceVariables().
|
static |
Definition at line 68 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and substituteHtmlKeywords().
|
staticconstexpr |
Definition at line 71 of file htmlgen.cpp.
Referenced by HtmlCodeGenerator::codify().
|
static |
Definition at line 73 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and substituteHtmlKeywords().