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()
397 sal_uInt16 nSlotId = pSVMenu->GetItemId(nSVPos); in CreateFromSVMenu() local
398 PopupMenu* pPopup = pSVMenu->GetPopupMenu(nSlotId); in CreateFromSVMenu()
399 if( pPopup && nSlotId >= SID_OBJECTMENU0 && nSlotId <= SID_OBJECTMENU_LAST ) in CreateFromSVMenu()
402 pSVMenu->SetPopupMenu( nSlotId, NULL ); in CreateFromSVMenu()
406 const String sItemText = pSVMenu->GetItemText(nSlotId); in CreateFromSVMenu()
407 const String sHelpText = pSVMenu->GetHelpText(nSlotId); in CreateFromSVMenu()
413 SfxMenuControl::CreateControl(nSlotId, *pPopup, *pBindings); in CreateFromSVMenu()
420 if ( pSVMenu->GetPopupMenu( nSlotId ) == pPopup ) in CreateFromSVMenu()
421 pSVMenu->SetPopupMenu( nSlotId, NULL ); in CreateFromSVMenu()
427 (pItems+nPos)->Bind( 0, nSlotId, sItemText, sHelpText, *pBindings); in CreateFromSVMenu()
428 pMnuCtrl->Bind( this, nSlotId, sItemText, sHelpText, *pBindings); in CreateFromSVMenu()
433 aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlotId )); in CreateFromSVMenu()
435 pSVMenu->SetItemImage( nSlotId, aImage ); in CreateFromSVMenu()
440 const SfxSlot* pSlot = pSlotPool->GetSlot( nSlotId ); in CreateFromSVMenu()
445 pSVMenu->SetHelpId( nSlotId, pSlot->GetUnoName() ); in CreateFromSVMenu()
453 pMnuCtrl->Bind( this, nSlotId, in CreateFromSVMenu()
454 *new SfxVirtualMenu(nSlotId, this, *pPopup, bHelpInitialized, *pBindings, bOLE, bResCtor), in CreateFromSVMenu()
470 String aCmd( pSVMenu->GetItemCommand( nSlotId ) ); in CreateFromSVMenu()
471 if ( aCmd.Len() && (( nSlotId < SID_SFX_START ) || ( nSlotId > SHRT_MAX )) ) in CreateFromSVMenu()
474 …pMnuCtrl = SfxMenuControl::CreateControl( aCmd, nSlotId, *pSVMenu, sItemText, sHelpText, *pBinding… in CreateFromSVMenu()
479 (pItems+nPos)->Bind( 0, nSlotId, sItemText, sHelpText, *pBindings); in CreateFromSVMenu()
486 pMnuCtrl = SfxMenuControl::CreateControl(nSlotId, *pSVMenu, *pBindings); in CreateFromSVMenu()
491 (pItems+nPos)->Bind( 0, nSlotId, sItemText, sHelpText, *pBindings); in CreateFromSVMenu()
497 pMnuCtrl->Bind( this, nSlotId, sItemText, sHelpText, *pBindings); in CreateFromSVMenu()
503 if ( bIsAddonPopupMenu || framework::AddonMenuManager::IsAddonMenuId( nSlotId )) in CreateFromSVMenu()
508 (::framework::MenuConfiguration::Attributes*)pSVMenu->GetUserValue( nSlotId ); in CreateFromSVMenu()
518 aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlotId )); in CreateFromSVMenu()
523 pSVMenu->SetItemImage( nSlotId, aImage ); in CreateFromSVMenu()
526 if ( !IsItemHidden_Impl(nSlotId, bOleServer, bMac) ) in CreateFromSVMenu()
581 sal_uInt16 nSlotId = pSVMenu->GetItemId( nSVPos ); in IMPL_LINK() local
585 if ( framework::AddonMenuManager::IsAddonMenuId( nSlotId )) in IMPL_LINK()
588 rtl::OUString aCmd( pSVMenu->GetItemCommand( nSlotId ) ); in IMPL_LINK()
592 (::framework::MenuConfiguration::Attributes*)pSVMenu->GetUserValue( nSlotId ); in IMPL_LINK()
597 …pSVMenu->SetItemImage( nSlotId, RetrieveAddOnImage( xFrame, aImageId, aCmd, sal_False, bIsHiContra… in IMPL_LINK()
602 aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlotId )); in IMPL_LINK()
603 pSVMenu->SetItemImage( nSlotId, GetImage( xFrame, aSlotURL, sal_False, bWasHighContrast )); in IMPL_LINK()
608 pSVMenu->SetItemImage( nSlotId, Image() ); in IMPL_LINK()
651 sal_uInt16 nSlotId = pSVMenu->GetItemId( nSVPos ); in UpdateImages() local
654 if ( framework::AddonMenuManager::IsAddonMenuId( nSlotId )) in UpdateImages()
657 rtl::OUString aCmd( pSVMenu->GetItemCommand( nSlotId ) ); in UpdateImages()
661 (::framework::MenuConfiguration::Attributes*)pSVMenu->GetUserValue( nSlotId ); in UpdateImages()
666 …pSVMenu->SetItemImage( nSlotId, RetrieveAddOnImage( xFrame, aImageId, aCmd, sal_False, bIsHiContra… in UpdateImages()
671 aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlotId )); in UpdateImages()
672 pSVMenu->SetItemImage( nSlotId, GetImage( xFrame, aSlotURL, sal_False, bWasHighContrast )); in UpdateImages()
700 sal_uInt16 nSlotId = pMenu->GetItemId( nPos ); in UpdateImages() local
701 PopupMenu* pPopup = pMenu->GetPopupMenu( nSlotId ); in UpdateImages()
707 (::framework::MenuConfiguration::Attributes*)pMenu->GetUserValue( nSlotId ); in UpdateImages()
712 …pMenu->SetItemImage( nSlotId, RetrieveAddOnImage( aXFrame, aImageId, pMenu->GetItemCommand( nSlotI… in UpdateImages()
734 sal_uInt16 nSlotId = pMenu->GetItemId( nPos ); in RemoveMenuImages() local
735 PopupMenu* pPopup = pMenu->GetPopupMenu( nSlotId ); in RemoveMenuImages()
737 pMenu->SetItemImage( nSlotId, Image() ); in RemoveMenuImages()
824 sal_uInt16 nSlotId = pCtrl->GetId(); in BindControllers() local
825 if ( !pSVMenu->GetItemCommand(nSlotId).Len() ) in BindControllers()
1017 sal_uInt16 nSlotId = (pItems+nPos)->GetId(); in IMPL_LINK() local
1018 if ( nSlotId && nSlotId > END_ITEMID_WINDOWLIST ) in IMPL_LINK()
1019 pBindings->Update(nSlotId); in IMPL_LINK()
1087 sal_uInt16 nSlotId = (sal_uInt16) pMenu->GetCurItemId(); in IMPL_LINK() local
1088 DBG_OUTF( ("SfxVirtualMenu %lx selected %u from %lx", this, nSlotId, pMenu) ); in IMPL_LINK()
1105 if ( nSlotId >= START_ITEMID_WINDOWLIST && nSlotId <= END_ITEMID_WINDOWLIST ) in IMPL_LINK()
1119 if (( aItem >>= xFrame ) && xFrame.is() && nTaskId == nSlotId ) in IMPL_LINK()
1133 else if ( nSlotId >= START_ITEMID_PICKLIST && nSlotId <= END_ITEMID_PICKLIST ) in IMPL_LINK()
1135 SfxPickList::Get()->ExecuteMenuEntry( nSlotId ); in IMPL_LINK()
1139 if ( pMenu->GetItemCommand( nSlotId ).Len() ) in IMPL_LINK()
1140 pBindings->ExecuteCommand_Impl( pMenu->GetItemCommand( nSlotId ) ); in IMPL_LINK()
1142 pBindings->Execute( nSlotId ); in IMPL_LINK()
1192 String SfxVirtualMenu::GetItemText( sal_uInt16 nSlotId ) const in GetItemText()
1197 sal_uInt16 nPos = GetItemPos(nSlotId); in GetItemText()
1206 String SfxVirtualMenu::GetItemHelpText( sal_uInt16 nSlotId ) const in GetItemHelpText()
1211 sal_uInt16 nPos = GetItemPos(nSlotId); in GetItemHelpText()
1311 sal_uInt16 nSlotId = pSVMenu->GetItemId(nPos); in InitializeHelp() local
1316 if ( nSlotId && !rCtrl.GetId() ) in InitializeHelp()