summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-22 20:57:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-02-22 20:59:15 +0000
commitc13a0b1f9e76584a4ffaea0ba754c8f9a01793d8 (patch)
treec3d0aa7b7fa12ae53f0e9499b55276ac6b16da71 /include
parentb7107eb010e775d6dca01447bbb2512990f5591c (diff)
gtk3: some changes towards enabling native gtk3 popup menus
these menubar things can be menu things and can then do away with the casting, no logic changes intended Change-Id: Ibb1b5354d5e1483327f172d6890e134f1e4b9ee4
Diffstat (limited to 'include')
-rw-r--r--include/vcl/menu.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx
index 34847988207f..7ad334ea40c6 100644
--- a/include/vcl/menu.hxx
+++ b/include/vcl/menu.hxx
@@ -403,8 +403,11 @@ public:
void HighlightItem( sal_uInt16 nItemPos );
void DeHighlight() { HighlightItem( 0xFFFF ); } // MENUITEMPOS_INVALID
-};
+ bool HandleMenuCommandEvent(Menu *pMenu, sal_uInt16 nEventId) const;
+ bool HandleMenuActivateEvent(Menu *pMenu) const;
+ bool HandleMenuDeActivateEvent(Menu *pMenu) const;
+};
class VCL_DLLPUBLIC MenuBar : public Menu
{
@@ -452,10 +455,7 @@ public:
void ShowButtons( bool bClose, bool bFloat, bool bHide );
virtual void SelectItem(sal_uInt16 nId) override;
- bool HandleMenuActivateEvent(Menu *pMenu) const;
- bool HandleMenuDeActivateEvent(Menu *pMenu) const;
bool HandleMenuHighlightEvent(Menu *pMenu, sal_uInt16 nEventId) const;
- bool HandleMenuCommandEvent(Menu *pMenu, sal_uInt16 nEventId) const;
bool HandleMenuButtonEvent(Menu *pMenu, sal_uInt16 nEventId);
void SetCloseButtonClickHdl( const Link<void*,void>& rLink ) { maCloseHdl = rLink; }