|
Doxygen
|
#include "htmlgen.h"#include <functional>#include <memory>#include <mutex>#include "config.h"#include "datetime.h"#include "diagram.h"#include "dir.h"#include "dotcallgraph.h"#include "dotclassgraph.h"#include "dotdirdeps.h"#include "dotgfxhierarchytable.h"#include "dotgroupcollaboration.h"#include "dotincldepgraph.h"#include "doxygen.h"#include "fileinfo.h"#include "htmldocvisitor.h"#include "indexlist.h"#include "language.h"#include "layout.h"#include "mermaid.h"#include "message.h"#include "outputlist.h"#include "pagedef.h"#include "portable.h"#include "resourcemgr.h"#include "stringutil.h"#include "textstream.h"#include "utf8.h"#include "util.h"#include "version.h"#include "vhdldocgen.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 55 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 2881 of file htmlgen.cpp.
References DString::empty().
Referenced by renderQuickLinksAsTabs().
|
static |
Definition at line 2854 of file htmlgen.cpp.
References Config_getBool.
Referenced by renderQuickLinksAsTabs(), and renderQuickLinksAsTree().
|
static |
Definition at line 2158 of file htmlgen.cpp.
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), and HtmlGenerator::endInclDepGraph().
|
static |
Definition at line 2116 of file htmlgen.cpp.
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), and HtmlGenerator::endInclDepGraph().
|
static |
Definition at line 2133 of file htmlgen.cpp.
References Config_getBool.
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), and HtmlGenerator::endInclDepGraph().
|
static |
Definition at line 743 of file htmlgen.cpp.
References ASSERT, DString::find(), DString::left(), DString::mid(), DString::npos, DString::rfind(), DString::startsWith(), DString::str(), and DString::stripWhiteSpace().
Referenced by fillColorStyleMaps().
|
static |
Definition at line 764 of file htmlgen.cpp.
References Config_getEnum, fillColorStyleMap(), g_darkMap, g_lightMap, ResourceMgr::getAsString(), ResourceMgr::instance(), and replaceColorMarkers().
Referenced by 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 136 of file htmlgen.cpp.
References FileInfo::absFilePath(), Config_getString, DString::data(), DString::empty(), fileToString(), DString::length(), literal_at(), DString::reserve(), DString::str(), and warn.
Referenced by HtmlGenerator::init().
Definition at line 287 of file htmlgen.cpp.
References TextStream::str(), writeClientSearchBox(), and writeServerSearchBox().
Referenced by substituteHtmlKeywords(), and writeDefaultQuickLinks().
|
static |
Definition at line 1266 of file htmlgen.cpp.
References DString::contains().
Referenced by HtmlGenerator::init().
|
static |
Definition at line 2888 of file htmlgen.cpp.
References ClassMemberHighlight::All, FileMemberHighlight::All, ModuleMemberHighlight::All, NamespaceMemberHighlight::All, ASSERT, Config_getBool, LinkedMap< T, Hash, KeyEqual, Map >::empty(), Doxygen::exampleLinkedMap, and Index::instance().
Referenced by renderQuickLinksAsTabs(), and renderQuickLinksAsTree().
|
static |
Definition at line 2963 of file htmlgen.cpp.
References LayoutNavEntry::children(), Config_getBool, endQuickIndexItem(), endQuickIndexList(), HtmlGenerator::fixSpaces(), LayoutDocManager::instance(), LayoutNavEntry::parent(), quickLinkVisible(), renderQuickLinksAsTabs(), LayoutDocManager::rootNavEntry(), startQuickIndexItem(), startQuickIndexList(), writeClientSearchBox(), and writeServerSearchBox().
Referenced by renderQuickLinksAsTabs(), and writeDefaultQuickLinks().
|
static |
Definition at line 2934 of file htmlgen.cpp.
References LayoutNavEntry::children(), endQuickIndexList(), HtmlGenerator::fixSpaces(), quickLinkVisible(), renderQuickLinksAsTree(), and startQuickIndexList().
Referenced by renderQuickLinksAsTree(), and writeDefaultQuickLinks().
Definition at line 778 of file htmlgen.cpp.
References ASSERT, Config_getEnum, err, DString::find(), g_darkMap, g_lightMap, DString::length(), DString::mid(), DString::npos, DString::reserve(), and DString::str().
Referenced by HtmlGenerator::getNavTreeCss(), HtmlGenerator::init(), writeDefaultStyleSheet(), and HtmlGenerator::writeSearchData().
|
static |
Definition at line 2867 of file htmlgen.cpp.
References correctURL(), and DString::empty().
Referenced by renderQuickLinksAsTabs().
|
static |
Definition at line 2834 of file htmlgen.cpp.
References Config_getBool.
Referenced by renderQuickLinksAsTabs(), and renderQuickLinksAsTree().
|
static |
Definition at line 2143 of file htmlgen.cpp.
References Config_getBool.
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), and HtmlGenerator::endInclDepGraph().
|
static |
Definition at line 2099 of file htmlgen.cpp.
References Config_getBool.
Referenced by HtmlGenerator::startCallGraph(), HtmlGenerator::startClassDiagram(), HtmlGenerator::startDirDepGraph(), HtmlGenerator::startDotGraph(), HtmlGenerator::startGroupCollaboration(), and HtmlGenerator::startInclDepGraph().
|
static |
Definition at line 2122 of file htmlgen.cpp.
References Config_getBool.
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), and HtmlGenerator::endInclDepGraph().
|
static |
Definition at line 301 of file htmlgen.cpp.
References Config_getBool, Config_getEnum, Config_getEnumAsString, Config_getList, Config_getString, convertToHtml(), DString::data(), DString::empty(), FileInfo::exists(), FileInfo::fileName(), g_latex_macro, g_mathjax_code, getSearchBox(), htmlMarkerInfo, MermaidManager::instance(), DString::lower(), DString::prepend(), projectLogoFile(), projectLogoSize(), removeEmptyLines(), selectBlocks(), showDate(), DString::startsWith(), DString::str(), stripPath(), substitute(), substituteKeywords(), theTranslator, Translator::trGeneratedAt(), Translator::trGeneratedBy(), and Translator::trISOLang().
Referenced by HtmlGenerator::init(), HtmlGenerator::startFile(), HtmlGenerator::writeExternalSearchPage(), HtmlGenerator::writePageFooter(), and HtmlGenerator::writeSearchPage().
|
static |
Definition at line 70 of file htmlgen.cpp.
References theTranslator, and Translator::trSearch().
Referenced by getSearchBox(), and renderQuickLinksAsTabs().
|
static |
Definition at line 3043 of file htmlgen.cpp.
References AnnotatedClasses, AnnotatedExceptions, AnnotatedInterfaces, AnnotatedStructs, LayoutNavEntry::children(), Classes, ClassHierarchy, ClassVisible, Concepts, ConceptVisible, Config_getBool, 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, and UserGroup.
Referenced by HtmlGenerator::writeExternalSearchPage(), HtmlGenerator::writeQuickLinks(), and HtmlGenerator::writeSearchPage().
|
static |
Definition at line 1500 of file htmlgen.cpp.
References Config_getBool, Config_getEnum, Config_getList, Date, DateTime, dateToString(), g_build_date, ResourceMgr::getAsString(), ResourceMgr::instance(), replaceColorMarkers(), replaceVariables(), Time, and yearToString().
Referenced by HtmlGenerator::writeStyleInfo(), and HtmlGenerator::writeStyleSheetFile().
|
static |
Definition at line 87 of file htmlgen.cpp.
References Config_getBool, Doxygen::htmlFileExtension, theTranslator, and Translator::trSearch().
Referenced by getSearchBox(), and renderQuickLinksAsTabs().
|
static |
Definition at line 63 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and writeDefaultStyleSheet().
|
static |
Definition at line 741 of file htmlgen.cpp.
Referenced by fillColorStyleMaps(), and replaceVariables().
|
static |
Definition at line 60 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and HtmlGenerator::writePageFooter().
|
static |
Definition at line 59 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and HtmlGenerator::writePageFooter().
|
static |
Definition at line 57 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), HtmlGenerator::startFile(), HtmlGenerator::writeExternalSearchPage(), and HtmlGenerator::writeSearchPage().
|
static |
Definition at line 58 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), HtmlGenerator::startFile(), HtmlGenerator::writeExternalSearchPage(), and HtmlGenerator::writeSearchPage().
|
static |
Definition at line 1635 of file htmlgen.cpp.
Referenced by HtmlGenerator::startFile().
|
static |
Definition at line 62 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and substituteHtmlKeywords().
|
static |
Definition at line 740 of file htmlgen.cpp.
Referenced by fillColorStyleMaps(), and replaceVariables().
|
static |
Definition at line 61 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and substituteHtmlKeywords().
|
staticconstexpr |
Definition at line 64 of file htmlgen.cpp.
Referenced by HtmlCodeGenerator::codify().
|
static |
Definition at line 66 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and substituteHtmlKeywords().