From adc3932dfc4fe763b7db0af8843b01614bdc6aa2 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 1 Jul 2016 20:49:19 +0100 Subject: cui: add calculation mode to Help->About. Change-Id: I4765436bed8a58c5097afcf7dce768d3ec325015 Reviewed-on: https://gerrit.libreoffice.org/26964 Tested-by: Jenkins Reviewed-by: Michael Meeks --- cui/source/dialogs/about.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 #include #include + +#include #include 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; } -- cgit