Kaydet (Commit) 97551d81 authored tarafından Tamás Zolnai's avatar Tamás Zolnai

MSForms: Open Control Properties dialog by double click for drop-down field

Change-Id: I66c0a7bad63d929ae346afe9d328d87dfa2c24ae
Reviewed-on: https://gerrit.libreoffice.org/68962
Tested-by: Jenkins
Reviewed-by: 's avatarTamás Zolnai <tamas.zolnai@collabora.com>
üst 10be5b6c
......@@ -3364,6 +3364,21 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
// table.
rSh.SelTableBox();
}
SwContentAtPos aContentAtPos(IsAttrAtPos::FormControl);
if( rSh.GetContentAtPos( aDocPos, aContentAtPos ) &&
aContentAtPos.aFnd.pFieldmark != nullptr)
{
IFieldmark *pFieldBM = const_cast< IFieldmark* > ( aContentAtPos.aFnd.pFieldmark );
if ( pFieldBM->GetFieldname( ) == ODF_FORMDROPDOWN )
{
RstMBDownFlags();
rSh.getIDocumentMarkAccess()->ClearFieldActivation();
GetView().GetViewFrame()->GetBindings().Execute(SID_FM_CTL_PROPERTIES);
return;
}
}
g_bHoldSelection = true;
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment