diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-12-16 09:13:58 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-12-16 09:14:31 +0100 |
commit | d0cf72f253a3cb8335601ebf2c5b1b99ab63e6b1 (patch) | |
tree | e084a43ce465876d89b12c9f265c04d42e3fa615 | |
parent | ec8bc265050d86a749140c353360a78cce4e3fce (diff) |
sfx2: clean up no longer needed SfxObjectShell::isTiledRendering()
Change-Id: Ia4fb0b489509364c641f8e1e695353bbdb036b59
-rw-r--r-- | include/sfx2/objsh.hxx | 1 | ||||
-rw-r--r-- | sc/source/ui/inc/docsh.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/inc/DrawDocShell.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/doc/objcont.cxx | 6 | ||||
-rw-r--r-- | sw/inc/docsh.hxx | 2 |
6 files changed, 5 insertions, 11 deletions
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx index 90e2f577458e..6fd70b2828b6 100644 --- a/include/sfx2/objsh.hxx +++ b/include/sfx2/objsh.hxx @@ -730,7 +730,6 @@ public: * the default behavior and implements LOK calls. */ virtual void libreOfficeKitCallback(int nType, const char* pPayload) const; - virtual bool isTiledRendering() const; }; #define SFX_GLOBAL_CLASSID \ diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx index 0c0ba7d02dbb..a897c92198b9 100644 --- a/sc/source/ui/inc/docsh.hxx +++ b/sc/source/ui/inc/docsh.hxx @@ -424,7 +424,7 @@ public: void SnapVisArea( Rectangle& rRect ) const; virtual void libreOfficeKitCallback(int nType, const char* pPayload) const override; - virtual bool isTiledRendering() const override; + bool isTiledRendering() const; }; void UpdateAcceptChangesDialog(); diff --git a/sd/source/ui/inc/DrawDocShell.hxx b/sd/source/ui/inc/DrawDocShell.hxx index 9bc0646453eb..04a6564cbe41 100644 --- a/sd/source/ui/inc/DrawDocShell.hxx +++ b/sd/source/ui/inc/DrawDocShell.hxx @@ -204,7 +204,7 @@ public: void ClearUndoBuffer(); virtual void libreOfficeKitCallback(int nType, const char* pPayload) const override; - virtual bool isTiledRendering() const override; + bool isTiledRendering() const; protected: diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index efb70268b4d1..00c76e2c7dc7 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -72,6 +72,7 @@ #include <sal/log.hxx> #include <LibreOfficeKit/LibreOfficeKitEnums.h> +#include <comphelper/lok.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -1056,7 +1057,7 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShell* objSh, const css::frame::FeatureStateEvent& aEvent) { - if (!objSh || !objSh->isTiledRendering()) + if (!comphelper::LibreOfficeKit::isActive()) return; OUStringBuffer aBuffer; diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx index 135a4d28d6f3..30971be768a3 100644 --- a/sfx2/source/doc/objcont.cxx +++ b/sfx2/source/doc/objcont.cxx @@ -663,10 +663,4 @@ void SfxObjectShell::libreOfficeKitCallback(int /*nType*/, const char* /*pPayloa SAL_INFO("sfx.tiledrendering", "SfxObjectShell::libreOfficeKitCallback interface not overridden for SfxObjectShell subclass typeId: " << typeid(*this).name()); } -bool SfxObjectShell::isTiledRendering() const -{ - SAL_INFO("sfx.tiledrendering", "SfxObjectShell::isTiledRendering interface not overridden for SfxObjectShell subclass typeId: " << typeid(*this).name()); - return false; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/docsh.hxx b/sw/inc/docsh.hxx index e3367d1c701a..f7e7ec28a028 100644 --- a/sw/inc/docsh.hxx +++ b/sw/inc/docsh.hxx @@ -310,7 +310,7 @@ public: virtual bool GetProtectionHash( /*out*/ css::uno::Sequence< sal_Int8 > &rPasswordHash ) override; virtual void libreOfficeKitCallback(int nType, const char* pPayload) const override; - virtual bool isTiledRendering() const override; + bool isTiledRendering() const; }; /** Find the right DocShell and create a new one: |