diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-08-03 06:54:10 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-08-03 06:54:10 -0700 |
commit | 91049237ff50a73292a84834c6dfe52f28ec5532 (patch) | |
tree | 339c3e542f8937f377bdfcd99bef6b65d34e6034 /vcl | |
parent | b0d68ad8bbffc61bb7f8b9a2a16afca0ac754b7b (diff) |
unusedcode.easy: Removed some members.
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/menu.hxx | 5 | ||||
-rw-r--r-- | vcl/source/window/menu.cxx | 15 |
2 files changed, 0 insertions, 20 deletions
diff --git a/vcl/inc/vcl/menu.hxx b/vcl/inc/vcl/menu.hxx index e162e8ea0831..daf57639e18f 100644 --- a/vcl/inc/vcl/menu.hxx +++ b/vcl/inc/vcl/menu.hxx @@ -409,9 +409,7 @@ public: void ShowCloser( sal_Bool bShow = sal_True ); sal_Bool HasCloser() const { return mbCloserVisible; } - void ShowFloatButton( sal_Bool bShow = sal_True ); sal_Bool HasFloatButton() const { return mbFloatBtnVisible; } - void ShowHideButton( sal_Bool bShow = sal_True ); sal_Bool HasHideButton() const { return mbHideBtnVisible; } void ShowButtons( sal_Bool bClose, sal_Bool bFloat, sal_Bool bHide ); @@ -444,9 +442,6 @@ public: }; // add an arbitrary button to the menubar (will appear next to closer) // passed link will be call with a MenuBarButtonCallbackArg on press - sal_uInt16 AddMenuBarButton( const Image&, const Link&, sal_uInt16 nPos = 0 ); - // add an arbitrary button to the menubar (will appear next to closer) - // passed link will be call with a MenuBarButtonCallbackArg on press // passed string will be set as tooltip sal_uInt16 AddMenuBarButton( const Image&, const Link&, const String&, sal_uInt16 nPos = 0 ); // set the highlight link for additional button with ID nId diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 083a4dac0e50..aeff08276ae1 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -3327,16 +3327,6 @@ void MenuBar::ShowCloser( sal_Bool bShow ) ShowButtons( bShow, mbFloatBtnVisible, mbHideBtnVisible ); } -void MenuBar::ShowFloatButton( sal_Bool bShow ) -{ - ShowButtons( mbCloserVisible, bShow, mbHideBtnVisible ); -} - -void MenuBar::ShowHideButton( sal_Bool bShow ) -{ - ShowButtons( mbCloserVisible, mbFloatBtnVisible, bShow ); -} - void MenuBar::ShowButtons( sal_Bool bClose, sal_Bool bFloat, sal_Bool bHide ) { if ( (bClose != mbCloserVisible) || @@ -3506,11 +3496,6 @@ sal_Bool MenuBar::HandleMenuCommandEvent( Menu *pMenu, sal_uInt16 nCommandEventI return sal_False; } -sal_uInt16 MenuBar::AddMenuBarButton( const Image& i_rImage, const Link& i_rLink, sal_uInt16 i_nPos ) -{ - return AddMenuBarButton( i_rImage, i_rLink, String(), i_nPos ); -} - sal_uInt16 MenuBar::AddMenuBarButton( const Image& i_rImage, const Link& i_rLink, const String& i_rToolTip, sal_uInt16 i_nPos ) { return pWindow ? static_cast<MenuBarWindow*>(pWindow)->AddMenuBarButton( i_rImage, i_rLink, i_rToolTip, i_nPos ) : 0; |