diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-13 18:10:13 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-13 17:54:09 +0000 |
commit | a61b7b81556c7ed3adc7022d488865f878237fb7 (patch) | |
tree | 89ecd16b13c2ff11f6aee48860b0a15b3bb881f7 /sd | |
parent | bf11fe9fa1e2caf752c1f9ec3ead1ef20425143f (diff) |
sd: implement per-view LOK_CALLBACK_HYPERLINK_CLICKED
Change-Id: If0759525326f963b497a6e011027719fc376eaf9
Reviewed-on: https://gerrit.libreoffice.org/26226
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fusel.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index 2979c9099416..3681a461f0d5 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -278,8 +278,13 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) // If tiled rendering, let client handles URL execution and early returns. if (comphelper::LibreOfficeKit::isActive()) { - mpDoc->libreOfficeKitCallback(LOK_CALLBACK_HYPERLINK_CLICKED, - aVEvt.pURLField->GetURL().toUtf8().getStr()); + if (comphelper::LibreOfficeKit::isViewCallback()) + { + SfxViewShell& rSfxViewShell = mpViewShell->GetViewShellBase(); + rSfxViewShell.libreOfficeKitViewCallback(LOK_CALLBACK_HYPERLINK_CLICKED, aVEvt.pURLField->GetURL().toUtf8().getStr()); + } + else + mpDoc->libreOfficeKitCallback(LOK_CALLBACK_HYPERLINK_CLICKED, aVEvt.pURLField->GetURL().toUtf8().getStr()); return true; } |