浏览源代码.
◆ ContextTreeType
枚举值 |
---|
Namespace | |
ClassInheritance | |
ClassNesting | |
Module | |
File | |
Page | |
Concept | |
Example | |
在文件 context.h 第 481 行定义.
◆ generateOutputViaTemplate()
void generateOutputViaTemplate |
( |
| ) |
|
在文件 context.cpp 第 8994 行定义.
8997 auto e = std::make_unique<TemplateEngine>();
8998 auto ctx = e->createContext();
9027 ctx->set(
"doxygen",doxygen);
9031 ctx->set(
"config",config);
9033 ctx->set(
"classList",classList);
9035 ctx->set(
"classTree",classTree);
9037 ctx->set(
"classIndex",classIndex);
9039 ctx->set(
"classHierarchy",classHierarchy);
9041 ctx->set(
"conceptList",conceptList);
9043 ctx->set(
"conceptTree",conceptTree);
9045 ctx->set(
"namespaceList",namespaceList);
9047 ctx->set(
"namespaceTree",namespaceTree);
9049 ctx->set(
"fileList",fileList);
9051 ctx->set(
"fileTree",fileTree);
9053 ctx->set(
"pageList",pageList);
9055 ctx->set(
"pageTree",pageTree);
9057 ctx->set(
"exampleTree",exampleTree);
9059 ctx->set(
"exampleList",exampleList);
9061 ctx->set(
"moduleTree",moduleTree);
9063 ctx->set(
"moduleList",moduleList);
9065 ctx->set(
"dirList",dirList);
9070 ctx->set(
"mainPage",mainPage);
9078 ctx->set(
"mainPage",mainPage);
9081 ctx->set(
"globalsIndex",globalsIndex);
9083 ctx->set(
"classMembersIndex",classMembersIndex);
9085 ctx->set(
"namespaceMembersIndex",namespaceMembersIndex);
9087 ctx->set(
"searchIndices",searchIndices);
9089 ctx->set(
"space",
" ");
9093 e->setTemplateDir(
"templates/html");
9094 Template *tpl = e->loadByName(
"htmllayout.tpl",1);
9102 ctx->setEscapeIntf(
Config_getString(HTML_FILE_EXTENSION),std::make_unique<HtmlEscaper>());
9103 ctx->setSpacelessIntf(std::make_unique<HtmlSpaceless>());
9106 tpl->
render(ts,ctx.get());
9116 e->setTemplateDir(
"templates/latex");
9117 Template *tpl = e->loadByName(
"latexlayout.tpl",1);
9125 ctx->setEscapeIntf(
".tex",std::make_unique<LatexEscaper>());
9126 ctx->setSpacelessIntf(std::make_unique<LatexSpaceless>());
9129 tpl->
render(ts,ctx.get());
引用了 ConfigContext::alloc(), DoxygenContext::alloc(), TranslateContext::alloc(), PageContext::alloc(), ClassListContext::alloc(), ClassIndexContext::alloc(), ClassHierarchyContext::alloc(), ClassTreeContext::alloc(), ConceptListContext::alloc(), NamespaceListContext::alloc(), NamespaceTreeContext::alloc(), DirListContext::alloc(), FileListContext::alloc(), FileTreeContext::alloc(), PageListContext::alloc(), PageTreeContext::alloc(), ModuleListContext::alloc(), ConceptTreeContext::alloc(), ModuleTreeContext::alloc(), ExampleListContext::alloc(), ExampleTreeContext::alloc(), GlobalsIndexContext::alloc(), ClassMembersIndexContext::alloc(), NamespaceMembersIndexContext::alloc(), SearchIndicesContext::alloc(), Config_getString, ContextOutputFormat_Html, ContextOutputFormat_Latex, createPageDef(), createSubDirs(), ContextGlobals::dynSectionId, FALSE, g_globals, Doxygen::mainPage, ContextGlobals::outputDir, ContextGlobals::outputFormat, Doxygen::pageLinkedMap, Template::render(), QCString::str() , 以及 TRUE.
被这些函数引用 generateOutput().
◆ generateTemplateFiles()
void generateTemplateFiles |
( |
const QCString & |
templateDir | ) |
|
@ ContextOutputFormat_Latex
static TemplateListIntfPtr alloc()
static ResourceMgr & instance()
Returns the one and only instance of this class
bool writeCategory(const QCString &categoryName, const QCString &targetDir) const
Writes all resource belonging to a given category to a given target directory
ContextOutputFormat outputFormat
static std::unique_ptr< PageDef > mainPage
static TemplateStructIntfPtr alloc()
Data associated with an example.
Class representing a directory in the file system
bool isEmpty() const
Returns TRUE iff the string is empty
static PageLinkedMap * pageLinkedMap
static TemplateStructIntfPtr alloc()
PageDef * createPageDef(const QCString &f, int l, const QCString &n, const QCString &d, const QCString &t)
virtual void render(TextStream &ts, TemplateContext *c)=0
Renders a template instance to a stream.
static TemplateStructIntfPtr alloc()
static TemplateListIntfPtr alloc()
static TemplateStructIntfPtr alloc()
Abstract interface for a template.
static TemplateStructIntfPtr alloc(const PageLinkedMap &pages)
void err(const char *fmt,...)
Text streaming class that buffers data.
static TemplateListIntfPtr alloc(const PageLinkedMap &pages)
static TemplateStructIntfPtr alloc()
std::shared_ptr< TemplateStructIntf > TemplateStructIntfPtr
static TemplateStructIntfPtr alloc()
static TemplateStructIntfPtr alloc()
static TemplateStructIntfPtr alloc()
static TemplateStructIntfPtr alloc()
static TemplateStructIntfPtr alloc()
static TemplateListIntfPtr alloc()
static TemplateListIntfPtr alloc()
static TemplateListIntfPtr alloc()
static TemplateStructIntfPtr alloc()
struct ContextGlobals g_globals
static TemplateListIntfPtr alloc()
static TemplateStructIntfPtr alloc()
std::shared_ptr< TemplateListIntf > TemplateListIntfPtr
static TemplateStructIntfPtr alloc()
static TemplateListIntfPtr alloc()
@ ContextOutputFormat_Html
static TemplateStructIntfPtr alloc()
const char * qPrint(const char *s)
#define Config_getString(name)
static TemplateStructIntfPtr alloc(const PageDef *pd, bool isMainPage, bool isExample)
static TemplateListIntfPtr alloc()
bool mkdir(const std::string &path, bool acceptsAbsPath=true) const
void createSubDirs(const Dir &d)