diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-11-25 22:13:32 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-11-25 22:15:01 +0100 |
commit | b5d4d946e0355d2c2496d61625a9abb06dab6929 (patch) | |
tree | 55bbdcd6bcb64ba77f555d288ee3fdfb23d00c62 /sc/inc | |
parent | ad8875e2a007d918636e1e1a2f6214b0fdf0da04 (diff) |
add methods to enable and disable automatic device selection
Change-Id: I7136ad48ad3f20c60b77838225ce6c927514acff
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/docuno.hxx | 6 | ||||
-rw-r--r-- | sc/inc/formulagroup.hxx | 2 |
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); |