diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-07-01 20:49:19 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-07-08 09:48:33 +0200 |
commit | 36ffa7bece5f6c6a89b947d04c9e53aaf903df1e (patch) | |
tree | d7814c90843280cb4c25fe3aaeb1873e16485a68 /cui | |
parent | b2bf34141fdb41abfe421931dcfc093457f30d2d (diff) |
cui: add calculation mode to Help->About.
Reviewed-on: https://gerrit.libreoffice.org/26964
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit adc3932dfc4fe763b7db0af8843b01614bdc6aa2)
Change-Id: I4765436bed8a58c5097afcf7dce768d3ec325015
Reviewed-on: https://gerrit.libreoffice.org/27004
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 2a93d7221672d4fec38a265780af114d2756dbfc)
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/about.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 3aed2153cde9..790bb050da54 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; @@ -313,6 +315,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; } |