diff options
author | gokaysatir <gokaysatir@collabora.com> | 2020-10-07 12:57:13 +0300 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2020-10-08 13:56:55 +0200 |
commit | ca84daab26d4fec1b43be81478ef629f8c1be7cf (patch) | |
tree | e1405659d6f17514b4e96f88667154873af6c06c /sw | |
parent | bbeb488ce5de2b6fa361b3e623b838e0237b128d (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/+/104054
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.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index a8389f3508ab..298c6ed4a2c9 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -1362,13 +1362,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); |