From b5d4d946e0355d2c2496d61625a9abb06dab6929 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 25 Nov 2013 22:13:32 +0100 Subject: add methods to enable and disable automatic device selection Change-Id: I7136ad48ad3f20c60b77838225ce6c927514acff --- sc/inc/docuno.hxx | 6 ++++++ sc/inc/formulagroup.hxx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'sc/inc') 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& 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); -- cgit