diff options
author | Gökay Şatır <gokaysatir@collabora.com> | 2023-11-28 14:32:59 +0300 |
---|---|---|
committer | Gökay ŞATIR <gokaysatir@collabora.com> | 2023-12-19 15:22:07 +0100 |
commit | a4f3b97e506f38e0c43d6fbf1192cc523750a9fd (patch) | |
tree | 18ad8f846fc0c02516e437ee6dddeefadf3c936d /sd | |
parent | df15f739eeaeab4d2333973fefda32dcbad73518 (diff) |
In readonly mode, we restrict many events like click.
In readonly mode, Online users need to be able to click on a hyperlink and get the related info.
For this purpose, this PR adds a new function template that sends the hyperlink info if there is any at the clicked position.
I will send the implementation with the next commit.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I886ea22a7097aac73ade0da78a88ddfc95ad819c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160022
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/inc/unomodel.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx index a2fe9415afa4..0a59fe6f5a46 100644 --- a/sd/source/ui/inc/unomodel.hxx +++ b/sd/source/ui/inc/unomodel.hxx @@ -254,6 +254,8 @@ public: virtual void postMouseEvent(int nType, int nX, int nY, int nCount, int nButtons, int nModifier) override; /// @see vcl::ITiledRenderable::setTextSelection(). virtual void setTextSelection(int nType, int nX, int nY) override; + /// @see vcl::ITiledRenderable::hyperlinkInfoAtPosition(). + virtual OUString hyperlinkInfoAtPosition(int x, int y) override; /// @see vcl::ITiledRenderable::getSelection(). virtual css::uno::Reference<css::datatransfer::XTransferable> getSelection() override; /// @see vcl::ITiledRenderable::setGraphicSelection(). diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 6fc250ec8895..cfc6ec8266b5 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2701,6 +2701,12 @@ void SdXImpressDocument::setTextSelection(int nType, int nX, int nY) } } +OUString SdXImpressDocument::hyperlinkInfoAtPosition(int /*x*/, int /*y*/) +{ + // To be implemented.. + return OUString(); +} + uno::Reference<datatransfer::XTransferable> SdXImpressDocument::getSelection() { SolarMutexGuard aGuard; |