diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-10 12:18:18 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-07-12 22:06:22 -0400 |
commit | 9b80b025f0b21cd74ee475c7f5c2d2d5a22ab652 (patch) | |
tree | 236314fac4ed0531e49ad1984daf5b59ab7d9859 /sw | |
parent | 6cf7b749da8b63d7d31bc8d0f21936b9c7e79ad0 (diff) |
sw: implement per-view LOK_CALLBACK_HYPERLINK_CLICKED
So that the view that initiated the mouse click gets the hyperlink
value.
Change-Id: Ibef1c5df3f27f782ce6e24c9650f92c96b8b79e3
Reviewed-on: https://gerrit.libreoffice.org/26156
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 27a8c0d921a5a6cb7e2f430cdb62ab934b57233f)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh2.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx index b4ceabf008a8..3a754e3280a7 100644 --- a/sw/source/uibase/wrtsh/wrtsh2.cxx +++ b/sw/source/uibase/wrtsh/wrtsh2.cxx @@ -475,7 +475,10 @@ void LoadURL( SwViewShell& rVSh, const OUString& rURL, sal_uInt16 nFilter, // We are doing tiledRendering, let the client handles the URL loading. if (comphelper::LibreOfficeKit::isActive()) { - rVSh.libreOfficeKitCallback(LOK_CALLBACK_HYPERLINK_CLICKED, rURL.toUtf8().getStr()); + if (comphelper::LibreOfficeKit::isViewCallback()) + rVSh.GetSfxViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_HYPERLINK_CLICKED, rURL.toUtf8().getStr()); + else + rVSh.libreOfficeKitCallback(LOK_CALLBACK_HYPERLINK_CLICKED, rURL.toUtf8().getStr()); return; } |