summaryrefslogtreecommitdiff
path: root/include/vcl/menu.hxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-09-15 10:22:49 +0200
committerJan Holesovsky <kendy@collabora.com>2014-09-15 12:07:17 +0200
commitfcc49e118c9da28309dce3389d111a546cba19cd (patch)
treedf71f55db1941a1a7ce55ed0769b68ceac14d6b4 /include/vcl/menu.hxx
parent11b6b13fcc7b8e14e07fd482a4df9cc20a6b1e06 (diff)
vcl menu: Make CloseStartedFrom() virtual to eliminate IsMenuBar() call.
Change-Id: Ifd89b7a9264075b166dd621fcb2c55225e25ea87
Diffstat (limited to 'include/vcl/menu.hxx')
-rw-r--r--include/vcl/menu.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx
index 5eaa3c9a9968..8045963174d6 100644
--- a/include/vcl/menu.hxx
+++ b/include/vcl/menu.hxx
@@ -187,7 +187,7 @@ protected:
SAL_DLLPRIVATE void ImplRemoveDel( ImplMenuDelData &rDel );
/// Close the 'pStartedFrom' menu window.
- SAL_DLLPRIVATE void CloseStartedFrom();
+ virtual void CloseStartedFrom() = 0;
/// Deactivate the MenuBarWindow.
SAL_DLLPRIVATE sal_uLong DeactivateMenuBar(sal_uLong nFocusId);
@@ -420,6 +420,9 @@ public:
virtual bool IsMenuBar() const SAL_OVERRIDE { return true; }
+ /// Close the 'pStartedFrom' menu window.
+ virtual void CloseStartedFrom() SAL_OVERRIDE;
+
void ShowCloseButton( bool bShow = true );
bool HasCloseButton() const { return mbCloseBtnVisible; }
bool HasFloatButton() const { return mbFloatBtnVisible; }
@@ -504,6 +507,9 @@ public:
virtual bool IsMenuBar() const SAL_OVERRIDE { return false; }
+ /// Close the 'pStartedFrom' menu window.
+ virtual void CloseStartedFrom() SAL_OVERRIDE;
+
void SetText( const OUString& rTitle ) { aTitleText = rTitle; }
const OUString& GetText() const { return aTitleText; }