summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorOliver Specht <oliver.specht@cib.de>2015-12-10 17:02:05 +0100
committerOliver Specht <oliver.specht@cib.de>2015-12-11 06:42:57 +0000
commitbd05eec9e30647394c0624c94b97e46bf8b7533f (patch)
tree037899ddf18f9ab113b973c74861b13e8aabfa95 /sw/source
parente5246a6b679cfd15ba9ec6db23448066f34c7c08 (diff)
tdf#34774: enabled double click in input list field dialog
Change-Id: I4a08016859b0afa95d8bf3a42be41bbe72c31570 Reviewed-on: https://gerrit.libreoffice.org/20623 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/ui/fldui/DropDownFieldDialog.cxx7
-rw-r--r--sw/source/uibase/inc/DropDownFieldDialog.hxx1
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/ui/fldui/DropDownFieldDialog.cxx b/sw/source/ui/fldui/DropDownFieldDialog.cxx
index a4a00367082d..7423d169f2b1 100644
--- a/sw/source/ui/fldui/DropDownFieldDialog.cxx
+++ b/sw/source/ui/fldui/DropDownFieldDialog.cxx
@@ -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: */
diff --git a/sw/source/uibase/inc/DropDownFieldDialog.hxx b/sw/source/uibase/inc/DropDownFieldDialog.hxx
index 90138b4ded87..0a801d3da9c7 100644
--- a/sw/source/uibase/inc/DropDownFieldDialog.hxx
+++ b/sw/source/uibase/inc/DropDownFieldDialog.hxx
@@ -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 );