Lines Matching refs:nSlotId

87 …     SfxMenuImageControl_Impl( sal_uInt16 nSlotId, SfxBindings& rBindings, SfxVirtualMenu* pVMenu )  in SfxMenuImageControl_Impl()  argument
88 : SfxControllerItem( nSlotId, rBindings ) in SfxMenuImageControl_Impl()
400 sal_uInt16 nSlotId = pSVMenu->GetItemId(nSVPos); in CreateFromSVMenu() local
401 PopupMenu* pPopup = pSVMenu->GetPopupMenu(nSlotId); in CreateFromSVMenu()
402 if( pPopup && nSlotId >= SID_OBJECTMENU0 && nSlotId <= SID_OBJECTMENU_LAST ) in CreateFromSVMenu()
405 pSVMenu->SetPopupMenu( nSlotId, NULL ); in CreateFromSVMenu()
409 const String sItemText = pSVMenu->GetItemText(nSlotId); in CreateFromSVMenu()
410 const String sHelpText = pSVMenu->GetHelpText(nSlotId); in CreateFromSVMenu()
416 SfxMenuControl::CreateControl(nSlotId, *pPopup, *pBindings); in CreateFromSVMenu()
423 if ( pSVMenu->GetPopupMenu( nSlotId ) == pPopup ) in CreateFromSVMenu()
424 pSVMenu->SetPopupMenu( nSlotId, NULL ); in CreateFromSVMenu()
430 (pItems+nPos)->Bind( 0, nSlotId, sItemText, sHelpText, *pBindings); in CreateFromSVMenu()
431 pMnuCtrl->Bind( this, nSlotId, sItemText, sHelpText, *pBindings); in CreateFromSVMenu()
436 aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlotId )); in CreateFromSVMenu()
438 pSVMenu->SetItemImage( nSlotId, aImage ); in CreateFromSVMenu()
443 const SfxSlot* pSlot = pSlotPool->GetSlot( nSlotId ); in CreateFromSVMenu()
448 pSVMenu->SetHelpId( nSlotId, pSlot->GetUnoName() ); in CreateFromSVMenu()
456 pMnuCtrl->Bind( this, nSlotId, in CreateFromSVMenu()
457 *new SfxVirtualMenu(nSlotId, this, *pPopup, bHelpInitialized, *pBindings, bOLE, bResCtor), in CreateFromSVMenu()
473 String aCmd( pSVMenu->GetItemCommand( nSlotId ) ); in CreateFromSVMenu()
474 if ( aCmd.Len() && (( nSlotId < SID_SFX_START ) || ( nSlotId > SHRT_MAX )) ) in CreateFromSVMenu()
477 …pMnuCtrl = SfxMenuControl::CreateControl( aCmd, nSlotId, *pSVMenu, sItemText, sHelpText, *pBinding… in CreateFromSVMenu()
482 (pItems+nPos)->Bind( 0, nSlotId, sItemText, sHelpText, *pBindings); in CreateFromSVMenu()
489 pMnuCtrl = SfxMenuControl::CreateControl(nSlotId, *pSVMenu, *pBindings); in CreateFromSVMenu()
494 (pItems+nPos)->Bind( 0, nSlotId, sItemText, sHelpText, *pBindings); in CreateFromSVMenu()
500 pMnuCtrl->Bind( this, nSlotId, sItemText, sHelpText, *pBindings); in CreateFromSVMenu()
506 if ( bIsAddonPopupMenu || framework::AddonMenuManager::IsAddonMenuId( nSlotId )) in CreateFromSVMenu()
511 (::framework::MenuConfiguration::Attributes*)pSVMenu->GetUserValue( nSlotId ); in CreateFromSVMenu()
521 aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlotId )); in CreateFromSVMenu()
526 pSVMenu->SetItemImage( nSlotId, aImage ); in CreateFromSVMenu()
529 if ( !IsItemHidden_Impl(nSlotId, bOleServer, bMac) ) in CreateFromSVMenu()
584 sal_uInt16 nSlotId = pSVMenu->GetItemId( nSVPos ); in IMPL_LINK() local
588 if ( framework::AddonMenuManager::IsAddonMenuId( nSlotId )) in IMPL_LINK()
591 rtl::OUString aCmd( pSVMenu->GetItemCommand( nSlotId ) ); in IMPL_LINK()
595 (::framework::MenuConfiguration::Attributes*)pSVMenu->GetUserValue( nSlotId ); in IMPL_LINK()
600 …pSVMenu->SetItemImage( nSlotId, RetrieveAddOnImage( xFrame, aImageId, aCmd, sal_False, bIsHiContra… in IMPL_LINK()
605 aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlotId )); in IMPL_LINK()
606 pSVMenu->SetItemImage( nSlotId, GetImage( xFrame, aSlotURL, sal_False, bWasHighContrast )); in IMPL_LINK()
611 pSVMenu->SetItemImage( nSlotId, Image() ); in IMPL_LINK()
654 sal_uInt16 nSlotId = pSVMenu->GetItemId( nSVPos ); in UpdateImages() local
657 if ( framework::AddonMenuManager::IsAddonMenuId( nSlotId )) in UpdateImages()
660 rtl::OUString aCmd( pSVMenu->GetItemCommand( nSlotId ) ); in UpdateImages()
664 (::framework::MenuConfiguration::Attributes*)pSVMenu->GetUserValue( nSlotId ); in UpdateImages()
669 …pSVMenu->SetItemImage( nSlotId, RetrieveAddOnImage( xFrame, aImageId, aCmd, sal_False, bIsHiContra… in UpdateImages()
674 aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlotId )); in UpdateImages()
675 pSVMenu->SetItemImage( nSlotId, GetImage( xFrame, aSlotURL, sal_False, bWasHighContrast )); in UpdateImages()
703 sal_uInt16 nSlotId = pMenu->GetItemId( nPos ); in UpdateImages() local
704 PopupMenu* pPopup = pMenu->GetPopupMenu( nSlotId ); in UpdateImages()
710 (::framework::MenuConfiguration::Attributes*)pMenu->GetUserValue( nSlotId ); in UpdateImages()
715 …pMenu->SetItemImage( nSlotId, RetrieveAddOnImage( aXFrame, aImageId, pMenu->GetItemCommand( nSlotI… in UpdateImages()
737 sal_uInt16 nSlotId = pMenu->GetItemId( nPos ); in RemoveMenuImages() local
738 PopupMenu* pPopup = pMenu->GetPopupMenu( nSlotId ); in RemoveMenuImages()
740 pMenu->SetItemImage( nSlotId, Image() ); in RemoveMenuImages()
827 sal_uInt16 nSlotId = pCtrl->GetId(); in BindControllers() local
828 if ( !pSVMenu->GetItemCommand(nSlotId).Len() ) in BindControllers()
1020 sal_uInt16 nSlotId = (pItems+nPos)->GetId(); in IMPL_LINK() local
1021 if ( nSlotId && nSlotId > END_ITEMID_WINDOWLIST ) in IMPL_LINK()
1022 pBindings->Update(nSlotId); in IMPL_LINK()
1090 sal_uInt16 nSlotId = (sal_uInt16) pMenu->GetCurItemId(); in IMPL_LINK() local
1091 DBG_OUTF( ("SfxVirtualMenu %lx selected %u from %lx", this, nSlotId, pMenu) ); in IMPL_LINK()
1108 if ( nSlotId >= START_ITEMID_WINDOWLIST && nSlotId <= END_ITEMID_WINDOWLIST ) in IMPL_LINK()
1122 if (( aItem >>= xFrame ) && xFrame.is() && nTaskId == nSlotId ) in IMPL_LINK()
1136 else if ( nSlotId >= START_ITEMID_PICKLIST && nSlotId <= END_ITEMID_PICKLIST ) in IMPL_LINK()
1138 SfxPickList::Get()->ExecuteMenuEntry( nSlotId ); in IMPL_LINK()
1142 if ( pMenu->GetItemCommand( nSlotId ).Len() ) in IMPL_LINK()
1143 pBindings->ExecuteCommand_Impl( pMenu->GetItemCommand( nSlotId ) ); in IMPL_LINK()
1145 pBindings->Execute( nSlotId ); in IMPL_LINK()
1195 String SfxVirtualMenu::GetItemText( sal_uInt16 nSlotId ) const in GetItemText()
1200 sal_uInt16 nPos = GetItemPos(nSlotId); in GetItemText()
1209 String SfxVirtualMenu::GetItemHelpText( sal_uInt16 nSlotId ) const in GetItemHelpText()
1214 sal_uInt16 nPos = GetItemPos(nSlotId); in GetItemHelpText()
1314 sal_uInt16 nSlotId = pSVMenu->GetItemId(nPos); in InitializeHelp() local
1319 if ( nSlotId && !rCtrl.GetId() ) in InitializeHelp()