summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-01-24 22:55:14 -0900
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-01-25 14:50:23 +0100
commit1c1c50e12cc33df7c158badfc6b08c2ef9bb38a5 (patch)
treea7fdaaee61a30997b7b1c329d7f12f443316860d /cui
parent2930ba2ac5d9423f2848b968edcd8ddc71966186 (diff)
tdf#115129 Add function on double click in Customize Dialog
Change-Id: I21a7f8b4fc05d55d1539a3fd148e5870899b1596 Reviewed-on: https://gerrit.libreoffice.org/48555 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx8
-rw-r--r--cui/source/inc/cfg.hxx1
2 files changed, 9 insertions, 0 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 2d41063947a6..4e194ba4cc05 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1193,6 +1193,7 @@ SvxConfigPage::SvxConfigPage(vcl::Window *pParent, const SfxItemSet& rSet)
m_pSearchEdit->SetUpdateDataHdl ( LINK( this, SvxConfigPage, SearchUpdateHdl ));
m_pSearchEdit->EnableUpdateData();
+ m_pFunctions->SetDoubleClickHdl( LINK( this, SvxConfigPage, FunctionDoubleClickHdl ) );
m_pFunctions->SetSelectHdl(
LINK( this, SvxConfigPage, SelectFunctionHdl ) );
}
@@ -1783,6 +1784,13 @@ IMPL_LINK( SvxConfigPage, MoveHdl, Button *, pButton, void )
MoveEntry(pButton == m_pMoveUpButton);
}
+IMPL_LINK_NOARG( SvxConfigPage, FunctionDoubleClickHdl, SvTreeListBox *, bool )
+{
+ if ( m_pAddCommandButton->IsEnabled() )
+ m_pAddCommandButton->Click();
+ return false;
+}
+
IMPL_LINK_NOARG( SvxConfigPage, SelectFunctionHdl, SvTreeListBox *, void )
{
// Store the tooltip of the description field at first run
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx
index b8bf3fcd7020..d69da888059e 100644
--- a/cui/source/inc/cfg.hxx
+++ b/cui/source/inc/cfg.hxx
@@ -418,6 +418,7 @@ protected:
DECL_LINK( MoveHdl, Button *, void );
DECL_LINK( SelectFunctionHdl, SvTreeListBox *, void );
+ DECL_LINK( FunctionDoubleClickHdl, SvTreeListBox *, bool );
virtual SaveInData* CreateSaveInData(
const css::uno::Reference< css::ui::XUIConfigurationManager >&,