summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-09-15 15:23:03 +0200
committerJan Holesovsky <kendy@collabora.com>2014-09-15 20:16:26 +0200
commit58d0b8f1b2ab67b2e60ad85c1487ba8c17a63fbb (patch)
tree84ffea44722a56905ce47f66e19e741847ed00d4 /include
parentForgot to add patch file (diff)
downloadcore-58d0b8f1b2ab67b2e60ad85c1487ba8c17a63fbb.tar.gz
core-58d0b8f1b2ab67b2e60ad85c1487ba8c17a63fbb.zip
vcl menu: Make MenuBarKeyInput() virtual to eliminate IsMenuBar() call.
Change-Id: I180450b60200bae9e570e6d05d8650660c772661
Diffstat (limited to 'include')
-rw-r--r--include/vcl/menu.hxx5
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; }