summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorgokaysatir <gokaysatir@collabora.com>2020-10-07 12:57:13 +0300
committerJan Holesovsky <kendy@collabora.com>2020-12-10 09:28:18 +0100
commit52d7ea6e03ee66ee6a9c345ded4884fea54d8351 (patch)
treefb8d41cd4e653d133129aab7e2827bde8d9fd7ba /sw
parent0ada274b4384e87dc027ac93fcee77f3f0bec7a2 (diff)
Online: "Copy hyperlink location" feature improvement.
Lambda functions are replaced with class pointers. Change-Id: I48628d3105533aad2463bd8ade1f65cf5b154b0f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104057 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/shells/textsh1.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index 9a032880ea18..4c78e37212a9 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -1342,13 +1342,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
OUString hyperlinkLocation = rINetFormat.GetValue();
::uno::Reference< datatransfer::clipboard::XClipboard > xClipboard = GetView().GetEditWin().GetClipboard();
- if (comphelper::LibreOfficeKit::isActive())
- {
- std::function<void (int, const char*)> callback = [&] (int callbackType, const char* text) { GetView().libreOfficeKitViewCallback(callbackType, text); } ;
- vcl::unohelper::TextDataObject::CopyStringTo(hyperlinkLocation, xClipboard, &callback );
- }
- else
- vcl::unohelper::TextDataObject::CopyStringTo(hyperlinkLocation, xClipboard, nullptr );
+ vcl::unohelper::TextDataObject::CopyStringTo(hyperlinkLocation, xClipboard, SfxViewShell::Current());
}
else
rWrtSh.ClickToINetAttr(rINetFormat);