diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-09-15 15:23:03 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-09-15 20:16:26 +0200 |
commit | 58d0b8f1b2ab67b2e60ad85c1487ba8c17a63fbb (patch) | |
tree | 84ffea44722a56905ce47f66e19e741847ed00d4 /include | |
parent | f08f0d158395be759e31e98cd5469a716d22b5e2 (diff) |
vcl menu: Make MenuBarKeyInput() virtual to eliminate IsMenuBar() call.
Change-Id: I180450b60200bae9e570e6d05d8650660c772661
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/menu.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx index db133e66d3d8..fcd9b7476511 100644 --- a/include/vcl/menu.hxx +++ b/include/vcl/menu.hxx @@ -193,7 +193,7 @@ protected: virtual sal_uLong DeactivateMenuBar(sal_uLong nFocusId); /// Forward the KeyInput call to the MenuBar. - SAL_DLLPRIVATE void MenuBarKeyInput(const KeyEvent& rEvent); + virtual void MenuBarKeyInput(const KeyEvent& rEvent); public: SAL_DLLPRIVATE void ImplKillLayoutData() const; @@ -426,6 +426,9 @@ public: /// Deactivate the MenuBarWindow. virtual sal_uLong DeactivateMenuBar(sal_uLong nFocusId) SAL_OVERRIDE; + /// Forward the KeyInput call to the MenuBar. + virtual void MenuBarKeyInput(const KeyEvent& rEvent) SAL_OVERRIDE; + void ShowCloseButton( bool bShow = true ); bool HasCloseButton() const { return mbCloseBtnVisible; } bool HasFloatButton() const { return mbFloatBtnVisible; } |