diff options
author | Andrzej Hunt <andrzej@ahunt.org> | 2015-11-11 10:05:25 +0100 |
---|---|---|
committer | Andrzej Hunt <andrzej@ahunt.org> | 2015-11-11 09:30:42 +0000 |
commit | 81b8ca683d44ba9c37f2dc8c74470a86ce70513f (patch) | |
tree | c190ce76fcd6dc459b16a608b794b2f53190e85d /sd | |
parent | com::sun::star->css in ucbhelper/ (diff) | |
download | core-81b8ca683d44ba9c37f2dc8c74470a86ce70513f.tar.gz core-81b8ca683d44ba9c37f2dc8c74470a86ce70513f.zip |
Implement LOK_CALLBACK_MOUSE_POINTER
Change-Id: I8d1f63208baf277b0a9d15908f3ea7ff3b56bf10
Reviewed-on: https://gerrit.libreoffice.org/19883
Reviewed-by: Andrzej Hunt <andrzej@ahunt.org>
Tested-by: Andrzej Hunt <andrzej@ahunt.org>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/inc/unomodel.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx index 11076cafcb4a..bb0220f2aca7 100644 --- a/sd/source/ui/inc/unomodel.hxx +++ b/sd/source/ui/inc/unomodel.hxx @@ -263,6 +263,8 @@ public: virtual void setClipboard(const css::uno::Reference<css::datatransfer::clipboard::XClipboard>& xClipboard) override; /// @see vcl::ITiledRenderable::isMimeTypeSupported(). virtual bool isMimeTypeSupported() override; + /// @see vcl::ITiledRenderable::getPointer(). + virtual Pointer getPointer() override; // XComponent diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index f064a38d3a45..9c37007c5186 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2558,6 +2558,20 @@ bool SdXImpressDocument::isMimeTypeSupported() return EditEngine::HasValidData(aDataHelper.GetTransferable()); } +Pointer SdXImpressDocument::getPointer() +{ + SolarMutexGuard aGuard; + DrawViewShell* pViewShell = GetViewShell(); + if (!pViewShell) + return Pointer(); + + Window* pWindow = pViewShell->GetActiveWindow(); + if (!pWindow) + return Pointer(); + + return pWindow->GetPointer(); +} + uno::Reference< i18n::XForbiddenCharacters > SdXImpressDocument::getForbiddenCharsTable() { uno::Reference< i18n::XForbiddenCharacters > xForb(mxForbidenCharacters); |