diff options
author | Sarper Akdemir <q.sarperakdemir@gmail.com> | 2020-02-14 13:17:46 +0300 |
---|---|---|
committer | Muhammet Kara <muhammet.kara@collabora.com> | 2020-02-28 18:32:54 +0100 |
commit | d54202ff690e4e97e018461cc6dc3dfadd36a702 (patch) | |
tree | 5f60f9c473b30e0f59bbf13a6f773595e1e4e759 /cui/source/inc | |
parent | 531f078f3371e909b03b358bc5c9d70df083555f (diff) |
tdf#112135: Provide controls through context menu in lists of Customize dialog
Introduced two new handlers to SvxMenuConfigPage and SvxToolbarConfigPage.
Each handler is connected to connect_popup_menu() call of corresponding list.
All of the context menus use entrycontextmenu.ui
Change-Id: I309672c41631b7acb58209b01efbe24c0bb0d947
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88676
Reviewed-by: PhD. Ayhan YALÇINSOY <ayhanyalcinsoy@pisilinux.org>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'cui/source/inc')
-rw-r--r-- | cui/source/inc/SvxMenuConfigPage.hxx | 2 | ||||
-rw-r--r-- | cui/source/inc/SvxToolbarConfigPage.hxx | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/cui/source/inc/SvxMenuConfigPage.hxx b/cui/source/inc/SvxMenuConfigPage.hxx index 9c98daee86ef..b5b09b726419 100644 --- a/cui/source/inc/SvxMenuConfigPage.hxx +++ b/cui/source/inc/SvxMenuConfigPage.hxx @@ -30,6 +30,8 @@ private: bool m_bIsMenuBar; DECL_LINK( SelectMenuEntry, weld::TreeView&, void ); + DECL_LINK( ContentContextMenuHdl, const CommandEvent&, bool ); + DECL_LINK( FunctionContextMenuHdl, const CommandEvent&, bool ); DECL_LINK( GearHdl, const OString&, void ); diff --git a/cui/source/inc/SvxToolbarConfigPage.hxx b/cui/source/inc/SvxToolbarConfigPage.hxx index 5c13b4595f53..f367fea9ed5f 100644 --- a/cui/source/inc/SvxToolbarConfigPage.hxx +++ b/cui/source/inc/SvxToolbarConfigPage.hxx @@ -37,6 +37,9 @@ private: DECL_LINK( SelectCategory, weld::ComboBox&, void ); + DECL_LINK( ContentContextMenuHdl, const CommandEvent&, bool ); + DECL_LINK( FunctionContextMenuHdl, const CommandEvent&, bool ); + DECL_LINK( AddCommandHdl, weld::Button&, void ); DECL_LINK( RemoveCommandHdl, weld::Button&, void ); |