summaryrefslogtreecommitdiffstats
path: root/src/context.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-01-01 09:13:04 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-08-27 13:43:31 (GMT)
commit56987af3987f40ac77e70cd39ebbdac3702c1ce2 (patch)
tree441fe1be085e1e83c4a08f3e7ad2ab8681fec045 /src/context.cpp
parentf16c156065ac8bc6242870c2ae701252b5d4f9b2 (diff)
downloadDoxygen-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.cpp13
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;
};
//%% }