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 "growbuf.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"
Go to the source code of this file.
Macros | |
#define | DBG_HTML(x) |
Functions | |
static void | writeClientSearchBox (TextStream &t, const QCString &relPath) |
static void | writeServerSearchBox (TextStream &t, const QCString &relPath, bool highlightSearch) |
static QCString | getConvertLatexMacro () |
Convert a set of LaTeX commands \(re)newcommand to a form readable by MathJax LaTeX syntax: | |
static QCString | getSearchBox (bool serverSide, QCString relPath, bool highlightSearch) |
static QCString | substituteHtmlKeywords (const QCString &str, const QCString &title, const QCString &relPath, const QCString &navPath=QCString()) |
static void | fillColorStyleMap (const QCString &definitions, StringUnorderedMap &map) |
static void | fillColorStyleMaps () |
static QCString | replaceVariables (const QCString &input) |
static void | writeDefaultStyleSheet (TextStream &t) |
static void | startSectionHeader (TextStream &t, const QCString &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 QCString &l, bool hl, bool, const QCString &relPath) |
static void | endQuickIndexItem (TextStream &t, const QCString &l) |
static bool | quickLinkVisible (LayoutNavEntry::Kind kind) |
static void | renderQuickLinksAsTree (TextStream &t, const QCString &relPath, LayoutNavEntry *root) |
static void | renderQuickLinksAsTabs (TextStream &t, const QCString &relPath, LayoutNavEntry *hlEntry, LayoutNavEntry::Kind kind, bool highlightParent, bool highlightSearch) |
static void | writeDefaultQuickLinks (TextStream &t, HighlightedItem hli, const QCString &file, const QCString &relPath) |
Variables | |
static QCString | g_header |
static QCString | g_footer |
static QCString | g_mathjax_code |
static QCString | g_latex_macro |
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 61 of file htmlgen.cpp.
Referenced by 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::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 2700 of file htmlgen.cpp.
References QCString::isEmpty().
Referenced by renderQuickLinksAsTabs().
|
static |
Definition at line 2673 of file htmlgen.cpp.
References Config_getBool.
Referenced by renderQuickLinksAsTabs(), and renderQuickLinksAsTree().
|
static |
Definition at line 1992 of file htmlgen.cpp.
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), and HtmlGenerator::endInclDepGraph().
|
static |
Definition at line 1948 of file htmlgen.cpp.
Referenced by HtmlGenerator::endCallGraph(), HtmlGenerator::endClassDiagram(), HtmlGenerator::endDirDepGraph(), HtmlGenerator::endDotGraph(), HtmlGenerator::endGroupCollaboration(), and HtmlGenerator::endInclDepGraph().
|
static |
Definition at line 1966 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 632 of file htmlgen.cpp.
References QCString::find(), QCString::findRev(), QCString::left(), QCString::mid(), QCString::startsWith(), QCString::str(), and QCString::stripWhiteSpace().
Referenced by fillColorStyleMaps().
|
static |
Definition at line 653 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 145 of file htmlgen.cpp.
References FileInfo::absFilePath(), GrowBuf::addChar(), GrowBuf::addStr(), Config_getString, QCString::data(), fileToString(), GrowBuf::get(), QCString::isEmpty(), QCString::length(), qstrncmp(), QCString::str(), and warn.
Referenced by HtmlGenerator::getMathJaxMacros(), and HtmlGenerator::init().
Definition at line 305 of file htmlgen.cpp.
References TextStream::str(), writeClientSearchBox(), and writeServerSearchBox().
Referenced by substituteHtmlKeywords().
|
static |
Definition at line 2707 of file htmlgen.cpp.
References ClassMemberHighlight::All, FileMemberHighlight::All, ModuleMemberHighlight::All, NamespaceMemberHighlight::All, Config_getBool, Doxygen::exampleLinkedMap, FALSE, Index::instance(), and TRUE.
Referenced by renderQuickLinksAsJs(), renderQuickLinksAsTabs(), and renderQuickLinksAsTree().
|
static |
Definition at line 2782 of file htmlgen.cpp.
References LayoutNavEntry::children(), Config_getBool, endQuickIndexItem(), endQuickIndexList(), fixSpaces(), LayoutDocManager::instance(), LayoutNavEntry::parent(), quickLinkVisible(), renderQuickLinksAsTabs(), startQuickIndexItem(), startQuickIndexList(), TRUE, writeClientSearchBox(), and writeServerSearchBox().
Referenced by renderQuickLinksAsTabs(), and writeDefaultQuickLinks().
|
static |
Definition at line 2753 of file htmlgen.cpp.
References LayoutNavEntry::children(), endQuickIndexList(), fixSpaces(), quickLinkVisible(), renderQuickLinksAsTree(), and startQuickIndexList().
Referenced by renderQuickLinksAsTree(), and writeDefaultQuickLinks().
Definition at line 667 of file htmlgen.cpp.
References GrowBuf::addChar(), GrowBuf::addStr(), Config_getEnum, QCString::data(), QCString::find(), g_darkMap, g_lightMap, GrowBuf::get(), QCString::length(), QCString::mid(), and QCString::str().
Referenced by HtmlGenerator::getNavTreeCss(), HtmlGenerator::init(), writeDefaultStyleSheet(), and HtmlGenerator::writeSearchData().
|
static |
Definition at line 2686 of file htmlgen.cpp.
References correctURL(), and QCString::isEmpty().
Referenced by renderQuickLinksAsTabs().
|
static |
Definition at line 2653 of file htmlgen.cpp.
References Config_getBool, and TRUE.
Referenced by renderQuickLinksAsTabs(), and renderQuickLinksAsTree().
|
static |
Definition at line 1976 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 1928 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 1954 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 319 of file htmlgen.cpp.
References Config_getBool, Config_getEnum, Config_getEnumAsString, Config_getList, Config_getString, convertToHtml(), Date, DateTime, dateToString(), FileInfo::exists(), FALSE, FileInfo::fileName(), g_latex_macro, g_mathjax_code, getSearchBox(), htmlMarkerInfo, QCString::isEmpty(), QCString::lower(), QCString::prepend(), removeEmptyLines(), selectBlocks(), QCString::startsWith(), QCString::str(), stripPath(), substitute(), substituteKeywords(), and theTranslator.
Referenced by HtmlGenerator::init(), HtmlGenerator::startFile(), HtmlGenerator::writeExternalSearchPage(), HtmlGenerator::writePageFooter(), and HtmlGenerator::writeSearchPage().
|
static |
Definition at line 73 of file htmlgen.cpp.
References theTranslator.
Referenced by getSearchBox(), and renderQuickLinksAsTabs().
|
static |
Definition at line 2851 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, Globals, Doxygen::htmlFileExtension, LayoutDocManager::instance(), InterfaceHierarchy, Interfaces, InterfaceVisible, Main, ModuleMembers, Modules, ModuleVisible, NamespaceMembers, Namespaces, NamespaceVisible, None, Pages, renderQuickLinksAsTabs(), renderQuickLinksAsTree(), LayoutDocManager::rootNavEntry(), Search, Structs, StructVisible, theTranslator, Topics, TRUE, and UserGroup.
Referenced by HtmlGenerator::writeExternalSearchPage(), HtmlGenerator::writeQuickLinks(), and HtmlGenerator::writeSearchPage().
|
static |
Definition at line 1388 of file htmlgen.cpp.
References Config_getEnum, Config_getList, ResourceMgr::instance(), replaceColorMarkers(), and replaceVariables().
Referenced by HtmlGenerator::writeStyleInfo(), LatexGenerator::writeStyleInfo(), HtmlGenerator::writeStyleSheetFile(), and LatexGenerator::writeStyleSheetFile().
|
static |
Definition at line 94 of file htmlgen.cpp.
References Config_getBool, Doxygen::htmlFileExtension, and theTranslator.
Referenced by getSearchBox(), and renderQuickLinksAsTabs().
|
static |
Definition at line 630 of file htmlgen.cpp.
Referenced by fillColorStyleMaps(), and replaceVariables().
|
static |
Definition at line 64 of file htmlgen.cpp.
Referenced by LatexGenerator::endIndexSection(), HtmlGenerator::init(), LatexGenerator::init(), and HtmlGenerator::writePageFooter().
|
static |
Definition at line 63 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), LatexGenerator::init(), HtmlGenerator::startFile(), LatexGenerator::startIndexSection(), HtmlGenerator::writeExternalSearchPage(), and HtmlGenerator::writeSearchPage().
|
static |
Definition at line 1463 of file htmlgen.cpp.
Referenced by HtmlGenerator::startFile().
|
static |
Definition at line 66 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and substituteHtmlKeywords().
|
static |
Definition at line 629 of file htmlgen.cpp.
Referenced by fillColorStyleMaps(), and replaceVariables().
|
static |
Definition at line 65 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and substituteHtmlKeywords().
|
staticconstexpr |
Definition at line 67 of file htmlgen.cpp.
|
static |
Definition at line 69 of file htmlgen.cpp.
Referenced by HtmlGenerator::init(), and substituteHtmlKeywords().