diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-09-12 06:18:06 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-09-12 08:41:29 +0200 |
commit | 540078ad31390c0fc7800c6c7581b0fd2332c339 (patch) | |
tree | 7dbdef084c1400ba8ac974e185a46234bfbd48d0 /include | |
parent | ea733ab5b632109d28bb8f1dc37116340b26229b (diff) |
vcl: Make the Menu class really abstract.
Change-Id: I676b2673cbe32bfe7c6013588c19a557fdfc743d
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/menu.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx index 98bf8473f8c8..de1b3c38fa94 100644 --- a/include/vcl/menu.hxx +++ b/include/vcl/menu.hxx @@ -290,7 +290,7 @@ public: bool IsItemPosVisible( sal_uInt16 nItemPos ) const; bool IsMenuVisible() const; - virtual bool IsMenuBar() const { return false; } + virtual bool IsMenuBar() const = 0; void RemoveDisabledEntries( bool bCheckPopups = true, bool bRemoveEmptyPopups = false ); bool HasValidEntries( bool bCheckPopups = true ); @@ -502,6 +502,8 @@ public: explicit PopupMenu( const ResId& ); virtual ~PopupMenu(); + virtual bool IsMenuBar() const SAL_OVERRIDE { return false; } + void SetText( const OUString& rTitle ) { aTitleText = rTitle; } const OUString& GetText() const { return aTitleText; } |