diff options
author | Siqi Liu <me@siqi.fr> | 2015-03-10 20:32:00 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-16 09:38:05 +0100 |
commit | e3b517ee6d985bc3d2f8750643ae4672575d5b8e (patch) | |
tree | f6ad000586ea64516a2928b2676c637c19b9e64c /sd | |
parent | fdcd5a509c483a0460919a227d273332f4b1d6e8 (diff) |
tdf#89705: make hyperlinks clickable on impress/calc
Change-Id: I3d35918a43dff789fad703cfc6b594a6dd3df47b
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fusel.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index cba210466715..1ace237480d3 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -71,6 +71,8 @@ #include <svx/sdrhittesthelper.hxx> +#include <LibreOfficeKit/LibreOfficeKitEnums.h> + using namespace ::com::sun::star; namespace sd { @@ -266,6 +268,13 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) SfxViewFrame* pFrame = mpViewShell->GetViewFrame(); mpWindow->ReleaseMouse(); + // If tiled rendering, let client handles URL execution and early returns. + if (mpDoc->isTiledRendering()) { + mpDoc->libreOfficeKitCallback(LOK_CALLBACK_HYPERLINK_CLICKED, + aVEvt.pURLField->GetURL().toUtf8().getStr()); + return true; + } + if (rMEvt.IsMod1()) { // Open in new frame |