From: Marco Cecchetti Date: Thu, 10 May 2018 21:13:12 +0000 (+0200) Subject: lok: sc: ctrl-clicking links doesn't work X-Git-Tag: archive/raspbian/1%6.1.5-3+rpi1+deb10u11^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=66bdb7d14ebf935bab880fb7293bed9707f0a362;p=libreoffice.git lok: sc: ctrl-clicking links doesn't work I think there is no reason for not execuring the code below if ((bDouble || bIsTiledRendering) && .... ) { ... } for both desktop and online. So since the code for open the clicked URL is below such if clause, I changed the code so that we return only when it's really a double click event. Moreover I reverted back the code for executing the list validation pop-up to its original place, since there is no more the need to have it executed in two places. Change-Id: Idbec2e6e45cd7ee8282005169e1132a11d4cac33 Reviewed-on: https://gerrit.libreoffice.org/54151 Tested-by: Jenkins Reviewed-by: Andras Timar Gbp-Pq: Name 0088-lok-sc-ctrl-clicking-links-doesn-t-work.patch --- diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index cd48e92ad4c..380ee0343bc 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -587,7 +587,17 @@ bool ImpEditEngine::MouseButtonUp( const MouseEvent& rMEvt, EditView* pView ) { if ( ( rMEvt.GetClicks() == 1 ) && rMEvt.IsLeft() && !rMEvt.IsMod2() ) { - const SvxFieldItem* pFld = pView->GetFieldUnderMousePointer(); + + const SvxFieldItem* pFld; + if ( comphelper::LibreOfficeKit::isActive() ) + { + Point aLogicClick = pView->GetWindow()->PixelToLogic( rMEvt.GetPosPixel() ); + pFld = pView->GetField( aLogicClick ); + } + else + { + pFld = pView->GetFieldUnderMousePointer(); + } if ( pFld ) { EditPaM aPaM( aCurSel.Max() ); diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx index 46ad7677e91..7f8f7ce4c33 100644 --- a/include/vcl/ITiledRenderable.hxx +++ b/include/vcl/ITiledRenderable.hxx @@ -59,7 +59,7 @@ namespace vcl { PointerStyle::HSizeBar, "col-resize" }, { PointerStyle::VSizeBar, "row-resize" }, { PointerStyle::Hand, "grab" }, - { PointerStyle::RefHand, "grabbing" }, + { PointerStyle::RefHand, "pointer" }, // Pen, Magnify, Fill, Rotate // HShear, VShear // Mirror, Crook, Crop, MovePoint, MoveBezierWeight diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx index 480eb1cea43..8360fb4dad0 100644 --- a/sc/source/core/data/global.cxx +++ b/sc/source/core/data/global.cxx @@ -800,12 +800,6 @@ bool ScGlobal::EETextObjEqual( const EditTextObject* pObj1, void ScGlobal::OpenURL(const OUString& rURL, const OUString& rTarget) { - if (comphelper::LibreOfficeKit::isActive()) - { - if(SfxViewShell* pViewShell = SfxViewShell::Current()) - pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_HYPERLINK_CLICKED, rURL.toUtf8().getStr()); - } - // OpenURL is always called in the GridWindow by mouse clicks in some way or another. // That's why pScActiveViewShell and nScClickMouseModifier are correct. // SvtSecurityOptions to access Libreoffice global security parameters diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index b2bd8667313..2510bf5a9f5 100644 Binary files a/sc/source/ui/view/gridwin.cxx and b/sc/source/ui/view/gridwin.cxx differ