{
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() );
{ 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
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