summaryrefslogtreecommitdiff
path: root/sfx2/source/menu
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-18 00:56:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-18 09:16:28 +0100
commitb48a6f14e5fff7ec8f2a9f9fcf49a035b7287c97 (patch)
tree6591bd060485537467558df50f14bb4ca2718e6d /sfx2/source/menu
parentf0cb9d723ed4b561ec771abbb9f1888c66ba348e (diff)
callcatcher: unused code
Diffstat (limited to 'sfx2/source/menu')
-rw-r--r--sfx2/source/menu/virtmenu.cxx80
1 files changed, 0 insertions, 80 deletions
diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx
index e427b052b2b4..723f49000824 100644
--- a/sfx2/source/menu/virtmenu.cxx
+++ b/sfx2/source/menu/virtmenu.cxx
@@ -609,51 +609,6 @@ IMPL_LINK( SfxVirtualMenu, SettingsChanged, void*, EMPTYARG )
//--------------------------------------------------------------------
-void SfxVirtualMenu::UpdateImages()
-{
- sal_Bool bIcons = Application::GetSettings().GetStyleSettings().GetUseImagesInMenus();
-
- if ( bIcons )
- {
- sal_uInt16 nItemCount = pSVMenu->GetItemCount();
- SfxViewFrame * pViewFrame = pBindings->GetDispatcher()->GetFrame();
- Reference<com::sun::star::frame::XFrame> xFrame( pViewFrame->GetFrame().GetFrameInterface() );
-
- for ( sal_uInt16 nSVPos=0; nSVPos < nItemCount; ++nSVPos )
- {
- sal_uInt16 nSlotId = pSVMenu->GetItemId( nSVPos );
- if ( pSVMenu->GetItemType( nSVPos ) == MENUITEM_STRINGIMAGE )
- {
- if ( framework::AddonMenuManager::IsAddonMenuId( nSlotId ))
- {
- // Special code for Add-On menu items. They can appear inside the help menu.
- rtl::OUString aCmd( pSVMenu->GetItemCommand( nSlotId ) );
- rtl::OUString aImageId;
-
- ::framework::MenuConfiguration::Attributes* pMenuAttributes =
- (::framework::MenuConfiguration::Attributes*)pSVMenu->GetUserValue( nSlotId );
-
- if ( pMenuAttributes )
- aImageId = pMenuAttributes->aImageId; // Retrieve image id from menu attributes
-
- pSVMenu->SetItemImage( nSlotId, RetrieveAddOnImage( xFrame, aImageId, aCmd, false ));
- }
- else
- {
- rtl::OUString aSlotURL( RTL_CONSTASCII_USTRINGPARAM( "slot:" ));
- aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlotId ));
- pSVMenu->SetItemImage( nSlotId, GetImage( xFrame, aSlotURL, false ));
- }
- }
- }
-
- if ( pImageControl )
- pImageControl->Update();
- }
-}
-
-//--------------------------------------------------------------------
-
void SfxVirtualMenu::UpdateImages( Menu* pMenu )
{
if ( !pMenu )
@@ -1109,34 +1064,6 @@ sal_uInt16 SfxVirtualMenu::GetItemPos( sal_uInt16 nItemId ) const
//--------------------------------------------------------------------
-// returns the popup-menu assigned to the item or 0 if none
-
-SfxVirtualMenu* SfxVirtualMenu::GetPopupMenu( sal_uInt16 nItemId ) const
-{
- DBG_MEMTEST();
- DBG_CHKTHIS(SfxVirtualMenu, 0);
-
- sal_uInt16 nPos = GetItemPos(nItemId);
- if ( nPos != MENU_ITEM_NOTFOUND )
- return (pItems+nPos)->GetPopupMenu();
- return 0;
-}
-//--------------------------------------------------------------------
-
-// returns the text of the item as currently shown in the menu
-
-String SfxVirtualMenu::GetItemText( sal_uInt16 nSlotId ) const
-{
- DBG_MEMTEST();
- DBG_CHKTHIS(SfxVirtualMenu, 0);
-
- sal_uInt16 nPos = GetItemPos(nSlotId);
- if ( nPos != MENU_ITEM_NOTFOUND )
- return (pItems+nPos)->GetTitle();
- return String();
-}
-//--------------------------------------------------------------------
-
// set the checkmark of the specified item
void SfxVirtualMenu::CheckItem( sal_uInt16 nItemId, sal_Bool bCheck )
@@ -1241,11 +1168,4 @@ void SfxVirtualMenu::InitializeHelp()
bHelpInitialized = sal_True;
}
-typedef sal_uIntPtr (__LOADONCALLAPI *HelpIdFunc) ( const String& );
-
-void SfxVirtualMenu::SetHelpIds( ResMgr *pRes )
-{
- pResMgr = pRes;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */