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 /sd | |
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 'sd')
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index 7bcf623b40df..ad6802318591 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -2252,17 +2252,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) uno::Reference<datatransfer::clipboard::XClipboard> xClipboard = pOutView->GetWindow()->GetClipboard(); - if (comphelper::LibreOfficeKit::isActive()) - { - std::function<void (int, const char*)> callback = [&] (int callbackType, const char* text) - { - SfxViewFrame* pFrame = GetViewFrame(); - pFrame->GetViewShell()->libreOfficeKitViewCallback(callbackType, text); - }; - vcl::unohelper::TextDataObject::CopyStringTo(pURLField->GetURL(), xClipboard, &callback); - } - else - vcl::unohelper::TextDataObject::CopyStringTo(pURLField->GetURL(), xClipboard); + vcl::unohelper::TextDataObject::CopyStringTo(pURLField->GetURL(), xClipboard, SfxViewShell::Current()); } } |