diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-18 12:59:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-18 13:47:29 +0200 |
commit | fe7032a3da3ec6e2bffd4fbab0810290ac0c8204 (patch) | |
tree | 9adb6077bf8733207021491180d95bcb212c39e4 /framework/source/uielement | |
parent | fc48a4cf465a1ab74e279c2573c7ca68ad3f6fc7 (diff) |
unused menu extension supplier stuff
since
commit 5298b1b32d90002be8d09fe82955550c18eae8bc
Date: Mon Aug 8 11:48:55 2011 +0100
callcatcher: ditch some more methods
Change-Id: I123081cbe7fe351ce6613a5e7491b11e133d1d29
Diffstat (limited to 'framework/source/uielement')
-rw-r--r-- | framework/source/uielement/menubarmanager.cxx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index a9341aa85c4e..e47217a8faf1 100644 --- a/framework/source/uielement/menubarmanager.cxx +++ b/framework/source/uielement/menubarmanager.cxx @@ -24,7 +24,6 @@ #include <framework/addonsoptions.hxx> #include <classes/fwkresid.hxx> #include <helper/mischelper.hxx> -#include <framework/menuextensionsupplier.hxx> #include <strings.hrc> #include <services.h> @@ -585,35 +584,6 @@ void SAL_CALL MenuBarManager::disposing( const EventObject& Source ) m_xModuleImageManager.clear(); } -void MenuBarManager::CheckAndAddMenuExtension( Menu* pMenu ) -{ - - // retrieve menu extension item - MenuExtensionItem aMenuItem( GetMenuExtension() ); - if (( !aMenuItem.aURL.isEmpty() ) && - ( !aMenuItem.aLabel.isEmpty() )) - { - // remove all old window list entries from menu - sal_uInt16 nNewItemId( 0 ); - sal_uInt16 nInsertPos( MENU_APPEND ); - sal_uInt16 nBeforePos( MENU_APPEND ); - for ( sal_uInt16 n = 0; n < pMenu->GetItemCount(); n++ ) - { - sal_uInt16 nItemId = pMenu->GetItemId( n ); - nNewItemId = std::max( nItemId, nNewItemId ); - if ( pMenu->GetItemCommand( nItemId ) == ".uno:About" ) - nBeforePos = n; - } - ++nNewItemId; - - if ( nBeforePos != MENU_APPEND ) - nInsertPos = nBeforePos; - - pMenu->InsertItem(nNewItemId, aMenuItem.aLabel, MenuItemBits::NONE, OString(), nInsertPos); - pMenu->SetItemCommand( nNewItemId, aMenuItem.aURL ); - } -} - static void lcl_CheckForChildren(Menu* pMenu, sal_uInt16 nItemId) { if (PopupMenu* pThisPopup = pMenu->GetPopupMenu( nItemId )) @@ -1170,8 +1140,6 @@ void MenuBarManager::FillMenuManager( Menu* pMenu, const Reference< XFrame >& rF // Check if this is the help menu. Add menu item if needed if ( aItemCommand == aCmdHelpMenu ) { - // Check if this is the help menu. Add menu item if needed - CheckAndAddMenuExtension( pPopup ); } else if ( aItemCommand == aCmdToolsMenu && AddonMenuManager::HasAddonMenuElements() ) { |