diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-10 12:18:18 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-10 11:57:56 +0000 |
commit | 27a8c0d921a5a6cb7e2f430cdb62ab934b57233f (patch) | |
tree | e88aa87b80b04caf08be6892204847f45defa372 /sw/source/uibase/wrtsh | |
parent | 38bb2c68319bd1561c35c66dc3699dd8a7a5866b (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>
Diffstat (limited to 'sw/source/uibase/wrtsh')
-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 700c30284071..e35df9d6a3da 100644 --- a/sw/source/uibase/wrtsh/wrtsh2.cxx +++ b/sw/source/uibase/wrtsh/wrtsh2.cxx @@ -473,7 +473,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; } |