summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-07-01 20:49:19 +0100
committerMichael Meeks <michael.meeks@collabora.com>2016-07-05 20:40:20 +0000
commitadc3932dfc4fe763b7db0af8843b01614bdc6aa2 (patch)
tree3dbda06828b3066de4e1714bf67ba8d3f7d1b77f
parentfd6655080e181de4b78e31f13fe8ba35de8edfe5 (diff)
cui: add calculation mode to Help->About.
Change-Id: I4765436bed8a58c5097afcf7dce768d3ec325015 Reviewed-on: https://gerrit.libreoffice.org/26964 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
-rw-r--r--cui/source/dialogs/about.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 89e83b5a0dc9..de6b4dcc844a 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -47,6 +47,8 @@
#include <sfx2/app.hxx>
#include <rtl/ustrbuf.hxx>
#include <vcl/bitmap.hxx>
+
+#include <opencl/openclwrapper.hxx>
#include <officecfg/Office/Common.hxx>
using namespace ::com::sun::star::uno;
@@ -302,6 +304,17 @@ OUString AboutDialog::GetVersionString()
sVersion += m_aLocaleStr.replaceAll("$LOCALE", aLocaleStr);
}
+ OUString aCalcMode = "Calc: "; // Calc calculation mode
+ bool bSWInterp = officecfg::Office::Common::Misc::UseSwInterpreter::get();
+ bool bOpenCL = opencl::GPUEnv::isOpenCLEnabled();
+ if (bOpenCL)
+ aCalcMode += "CL";
+ else if (bSWInterp)
+ aCalcMode += "group";
+ else
+ aCalcMode += "single";
+ sVersion += "; " + aCalcMode;
+
return sVersion;
}