Kaydet (Commit) bd05eec9 authored tarafından Oliver Specht's avatar Oliver Specht

tdf#34774: enabled double click in input list field dialog

Change-Id: I4a08016859b0afa95d8bf3a42be41bbe72c31570
Reviewed-on: https://gerrit.libreoffice.org/20623Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarOliver Specht <oliver.specht@cib.de>
Tested-by: 's avatarOliver Specht <oliver.specht@cib.de>
üst e5246a6b
......@@ -43,6 +43,8 @@ sw::DropDownFieldDialog::DropDownFieldDialog(vcl::Window *pParent, SwWrtShell &r
get(m_pOKPB, "ok");
get(m_pNextPB, "next");
get(m_pEditPB, "edit");
Link<ListBox&, void> aDoubleLk = LINK(this, DropDownFieldDialog, DoubleClickHdl);
m_pListItemsLB->SetDoubleClickHdl( aDoubleLk );
Link<Button*,void> aButtonLk = LINK(this, DropDownFieldDialog, ButtonHdl);
m_pEditPB->SetClickHdl(aButtonLk);
......@@ -111,4 +113,9 @@ IMPL_LINK_TYPED(sw::DropDownFieldDialog, ButtonHdl, Button*, pButton, void)
EndDialog(m_pNextPB == pButton ? RET_OK : RET_YES );
}
IMPL_LINK_NOARG_TYPED(sw::DropDownFieldDialog, DoubleClickHdl, ListBox&, void)
{
EndDialog(RET_OK);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -45,6 +45,7 @@ class DropDownFieldDialog : public SvxStandardDialog
DECL_LINK_TYPED(ButtonHdl, Button*, void);
virtual void Apply() override;
DECL_LINK_TYPED(DoubleClickHdl, ListBox&, void);
public:
DropDownFieldDialog( vcl::Window *pParent, SwWrtShell &rSh,
SwField* pField, bool bNextButton = false );
......
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