summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-25 22:13:32 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-25 22:14:30 +0100
commitc53e0845e79ec234448ace26c6e225bea4541d9e (patch)
tree21421dc0154bc6ef969a5c27a79669ab65f5a073 /sc/inc
parentff7ae53efbe9847eb24feaa96d5ca5e4f49ca272 (diff)
add methods to enable and disable automatic device selection
Change-Id: I7136ad48ad3f20c60b77838225ce6c927514acff
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/docuno.hxx6
-rw-r--r--sc/inc/formulagroup.hxx2
2 files changed, 7 insertions, 1 deletions
diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx
index 1228afe10a47..a8b6b261f9cd 100644
--- a/sc/inc/docuno.hxx
+++ b/sc/inc/docuno.hxx
@@ -326,6 +326,12 @@ public:
virtual void SAL_CALL enableOpenCL(sal_Bool bEnable)
throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL enableAutomaticDeviceSelection(sal_Bool bForce)
+ throw(::com::sun::star::uno::RuntimeException);
+
+ virtual void SAL_CALL disableAutomaticDeviceSelection()
+ throw(::com::sun::star::uno::RuntimeException);
+
virtual void SAL_CALL selectOpenCLDevice( sal_Int32 platform, sal_Int32 device )
throw(::com::sun::star::uno::RuntimeException);
diff --git a/sc/inc/formulagroup.hxx b/sc/inc/formulagroup.hxx
index 17f00d1708bb..3834e49bd9d2 100644
--- a/sc/inc/formulagroup.hxx
+++ b/sc/inc/formulagroup.hxx
@@ -95,7 +95,7 @@ class SC_DLLPUBLIC FormulaGroupInterpreter
public:
static FormulaGroupInterpreter *getStatic();
static void fillOpenCLInfo(std::vector<OpenclPlatformInfo>& rPlatforms);
- static bool switchOpenCLDevice(const OUString& rDeviceId, bool bAutoSelect);
+ static bool switchOpenCLDevice(const OUString& rDeviceId, bool bAutoSelect, bool bForceEvaluation = false);
static void enableOpenCL(bool bEnable);
static void getOpenCLDeviceInfo(sal_Int32& rDeviceId, sal_Int32& rPlatformId);