[Libreoffice-commits] core.git: sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Fri Jun 10 11:58:19 UTC 2016
sw/source/uibase/wrtsh/wrtsh2.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 27a8c0d921a5a6cb7e2f430cdb62ab934b57233f
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Fri Jun 10 12:18:18 2016 +0200
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 at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx
index 700c302..e35df9d 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;
}
More information about the Libreoffice-commits
mailing list