diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-01-01 09:13:04 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-08-27 13:43:31 (GMT) |
commit | 56987af3987f40ac77e70cd39ebbdac3702c1ce2 (patch) | |
tree | 441fe1be085e1e83c4a08f3e7ad2ab8681fec045 /src/context.cpp | |
parent | f16c156065ac8bc6242870c2ae701252b5d4f9b2 (diff) | |
download | Doxygen-56987af3987f40ac77e70cd39ebbdac3702c1ce2.zip Doxygen-56987af3987f40ac77e70cd39ebbdac3702c1ce2.tar.gz Doxygen-56987af3987f40ac77e70cd39ebbdac3702c1ce2.tar.bz2 |
Add mathjax support to template & context.
Diffstat (limited to 'src/context.cpp')
-rw-r--r-- | src/context.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/context.cpp b/src/context.cpp index 17229f7..f7e6ae2 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -370,13 +370,26 @@ class DoxygenContext::Private : public PropertyMapper { return TemplateVariant(dateToString(TRUE)); } + TemplateVariant maxJaxCodeFile() const + { + return m_cache.maxJaxCodeFile; + } Private() { //%% string version addProperty("version",this,&Private::version); //makeProperty(this,&Private::version)); //%% string date addProperty("date", this,&Private::date); + //%% string + addProperty("mathJaxCodeFile", this,&Private::maxJaxCodeFile); } + private: + struct Cachable + { + Cachable() { maxJaxCodeFile=fileToString(Config_getString("MATHJAX_CODEFILE")); } + QCString maxJaxCodeFile; + }; + mutable Cachable m_cache; }; //%% } |