From 88fe046c158d5a20f8f9fa14a7d734ea3aaa85be Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 5 Jan 2015 20:39:55 +0200 Subject: Extend the Calc UNO API for the conditions whether to use OpenCL for a formula Setters/getters for the flag whether to restrict OpenCL to formulas that use a subset of opcodes, and the lower limit on number of cells a fomula should refer to in order for OpenCL to be considered. Change-Id: Ifeb11d4e4003f13e392fe03f1ce2f89147f46e38 --- sc/inc/docuno.hxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sc/inc/docuno.hxx') diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx index da0ea2537f1d..9f7ed0afccb5 100644 --- a/sc/inc/docuno.hxx +++ b/sc/inc/docuno.hxx @@ -353,6 +353,20 @@ public: SAL_CALL getOpenCLPlatforms() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL enableOpcodeSubsetTest() + throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + + virtual void SAL_CALL disableOpcodeSubsetTest() + throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + + virtual sal_Bool SAL_CALL isOpcodeSubsetTested() + throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + + virtual void SAL_CALL setFormulaCellNumberLimit( sal_Int32 number ) + throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + + virtual sal_Int32 SAL_CALL getFormulaCellNumberLimit() + throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; // ITiledRenderable virtual void paintTile( VirtualDevice& rDevice, -- cgit