diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-11-11 15:23:58 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-11-11 15:43:35 +0200 |
commit | 899453aa8407fca8a93d51f12ad4e335d1beeb62 (patch) | |
tree | 0f595cf8a9e0b93bc83f3661c1b24cf68eab786a /cui/source/inc | |
parent | 6128c10f550924c2b75f18b6c6220cc1770adba4 (diff) |
tdf#93837 Add context menu customization UI
Depends on env. variable for now. Nothing to
customize yet anyway.
Change-Id: I70edd33b51d931632fac454684d6c22906a727fe
Diffstat (limited to 'cui/source/inc')
-rw-r--r-- | cui/source/inc/cfg.hxx | 5 | ||||
-rw-r--r-- | cui/source/inc/cuires.hrc | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx index f4bb1df273bd..b4cbaa0ff54f 100644 --- a/cui/source/inc/cfg.hxx +++ b/cui/source/inc/cfg.hxx @@ -59,6 +59,7 @@ class SvxConfigDialog : public SfxTabDialog private: css::uno::Reference< css::frame::XFrame > m_xFrame; sal_uInt16 m_nMenusPageId; + sal_uInt16 m_nContextMenusPageId; sal_uInt16 m_nKeyboardPageId; sal_uInt16 m_nToolbarsPageId; sal_uInt16 m_nEventsPageId; @@ -439,7 +440,7 @@ public: class SvxMenuConfigPage : public SvxConfigPage { private: - + bool m_bIsMenuBar; DECL_LINK_TYPED( SelectMenu, ListBox&, void ); DECL_LINK_TYPED( SelectMenuEntry, SvTreeListBox *, void ); DECL_LINK_TYPED( NewMenuHdl, Button *, void ); @@ -455,7 +456,7 @@ private: void DeleteSelectedTopLevel() override; public: - SvxMenuConfigPage( vcl::Window *pParent, const SfxItemSet& rItemSet ); + SvxMenuConfigPage( vcl::Window *pParent, const SfxItemSet& rItemSet, bool bIsMenuBar = true ); virtual ~SvxMenuConfigPage(); virtual void dispose() override; diff --git a/cui/source/inc/cuires.hrc b/cui/source/inc/cuires.hrc index 6f8df14a3011..e99045d584ce 100644 --- a/cui/source/inc/cuires.hrc +++ b/cui/source/inc/cuires.hrc @@ -238,6 +238,7 @@ #define RID_SVXDLG_CUSTOMIZE (RID_SVX_START + 291) #define RID_SVXPAGE_CONFIGGROUPBOX (RID_SVX_START + 304) +#define RID_SVXSTR_PRODUCTNAME_CONTEXTMENUS (RID_SVX_START + 1167) #define RID_SVXSTR_NEW_MENU (RID_SVX_START + 1039) #define RID_SVXSTR_NEW_TOOLBAR (RID_SVX_START + 1040) #define RID_SVXSTR_MOVE_MENU (RID_SVX_START + 1041) |