Lines Matching refs:pMenu

80     SfxVirtualMenu*     pMenu;  member in SfxMenuImageControl_Impl
89 , pMenu( pVMenu ) in SfxMenuImageControl_Impl()
112 Menu* pSVMenu = pMenu->GetSVMenu(); in Update()
555 IMPL_LINK( SfxVirtualMenu, Highlight, Menu *, pMenu ) in IMPL_LINK() argument
561 if ( pMenu == pSVMenu ) in IMPL_LINK()
687 void SfxVirtualMenu::UpdateImages( Menu* pMenu ) in UpdateImages() argument
689 if ( !pMenu ) in UpdateImages()
698 sal_uInt16 nItemCount = pMenu->GetItemCount(); in UpdateImages()
703 sal_uInt16 nSlotId = pMenu->GetItemId( nPos ); in UpdateImages()
704 PopupMenu* pPopup = pMenu->GetPopupMenu( nSlotId ); in UpdateImages()
705 if ( pMenu->GetItemType( nPos ) != MENUITEM_SEPARATOR ) in UpdateImages()
710 (::framework::MenuConfiguration::Attributes*)pMenu->GetUserValue( nSlotId ); in UpdateImages()
715pMenu->SetItemImage( nSlotId, RetrieveAddOnImage( aXFrame, aImageId, pMenu->GetItemCommand( nSlotI… in UpdateImages()
729 void SfxVirtualMenu::RemoveMenuImages( Menu* pMenu ) in RemoveMenuImages() argument
731 if ( !pMenu ) in RemoveMenuImages()
734 sal_uInt16 nItemCount = pMenu->GetItemCount(); in RemoveMenuImages()
737 sal_uInt16 nSlotId = pMenu->GetItemId( nPos ); in RemoveMenuImages()
738 PopupMenu* pPopup = pMenu->GetPopupMenu( nSlotId ); in RemoveMenuImages()
739 if ( pMenu->GetItemType( nPos ) == MENUITEM_STRINGIMAGE ) in RemoveMenuImages()
740 pMenu->SetItemImage( nSlotId, Image() ); in RemoveMenuImages()
748 bool SfxVirtualMenu::Bind_Impl( Menu *pMenu ) in Bind_Impl() argument
761 bFound = pSVMenu->GetPopupMenu(nSID) == pMenu; in Bind_Impl()
784 *pMenu, sal_False, *pBindings, bOLE, bRes, bIsAddonPopupMenu ); in Bind_Impl()
793 pSubMenu->Bind_Impl( pMenu ); in Bind_Impl()
794 pSubMenu->Activate( pMenu ); in Bind_Impl()
800 bFound = pSubMenu->Bind_Impl( pMenu ); in Bind_Impl()
863 void SfxVirtualMenu::InsertAddOnsMenuItem( Menu* pMenu ) in InsertAddOnsMenuItem() argument
882 sal_uInt16 nItemCount = pMenu->GetItemCount(); in InsertAddOnsMenuItem()
884 if ( nItemCount > 0 && pMenu->GetItemType( nItemCount-1 ) != MENUITEM_SEPARATOR ) in InsertAddOnsMenuItem()
885 pMenu->InsertSeparator(); in InsertAddOnsMenuItem()
886 pMenu->InsertItem( SID_ADDONS, aAddonsTitle ); in InsertAddOnsMenuItem()
887 pMenu->SetPopupMenu( SID_ADDONS, pAddonMenu ); in InsertAddOnsMenuItem()
893 pMenu->SetItemImage( SID_ADDONS, GetImage( xFrame, aSlotURL, sal_False, bWasHighContrast )); in InsertAddOnsMenuItem()
904 IMPL_LINK( SfxVirtualMenu, Activate, Menu *, pMenu ) in IMPL_LINK() argument
908 DBG_OUTF( ("SfxVirtualMenu %lx activated %lx, own %lx", this, pMenu, pSVMenu)); in IMPL_LINK()
915 if ( pMenu ) in IMPL_LINK()
918 sal_uInt16 nFlag = pMenu->GetMenuFlags(); in IMPL_LINK()
923 pMenu->SetMenuFlags( nFlag ); in IMPL_LINK()
927 if ( pMenu == pSVMenu ) in IMPL_LINK()
976 int nItemCount = pMenu->GetItemCount(); in IMPL_LINK()
981 sal_uInt16 nPos = pMenu->GetItemPos( START_ITEMID_WINDOWLIST ); in IMPL_LINK()
982 for ( sal_uInt16 n = nPos; n < pMenu->GetItemCount(); ) in IMPL_LINK()
983 pMenu->RemoveItem( n ); in IMPL_LINK()
985 if ( pMenu->GetItemType( pMenu->GetItemCount()-1 ) == MENUITEM_SEPARATOR ) in IMPL_LINK()
986 pMenu->RemoveItem( pMenu->GetItemCount()-1 ); in IMPL_LINK()
992 pMenu->InsertSeparator(); in IMPL_LINK()
996 pMenu->InsertItem( nItemId, aNewWindowListVector.at( i ), MIB_RADIOCHECK ); in IMPL_LINK()
998 pMenu->CheckItem( nItemId ); in IMPL_LINK()
1056 bool bRet = Bind_Impl( pMenu ); in IMPL_LINK()
1067 IMPL_LINK( SfxVirtualMenu, Deactivate, Menu *, pMenu ) in IMPL_LINK() argument
1070 DBG_OUTF( ("SfxVirtualMenu %lx deactivated %lx, own %lx", this, pMenu, pSVMenu) ); in IMPL_LINK()
1071 if ( bIsActive && ( 0 == pMenu || pMenu == pSVMenu ) ) in IMPL_LINK()
1088 IMPL_LINK( SfxVirtualMenu, Select, Menu *, pMenu ) in IMPL_LINK() argument
1090 sal_uInt16 nSlotId = (sal_uInt16) pMenu->GetCurItemId(); in IMPL_LINK()
1091 DBG_OUTF( ("SfxVirtualMenu %lx selected %u from %lx", this, nSlotId, pMenu) ); in IMPL_LINK()
1142 if ( pMenu->GetItemCommand( nSlotId ).Len() ) in IMPL_LINK()
1143 pBindings->ExecuteCommand_Impl( pMenu->GetItemCommand( nSlotId ) ); in IMPL_LINK()
1265 void SfxVirtualMenu::SetPopupMenu( sal_uInt16 nItemId, PopupMenu *pMenu ) in SetPopupMenu() argument
1271 GetSVMenu()->SetPopupMenu( nItemId, pMenu ); in SetPopupMenu()
1276 pSubMenu->SetPopupMenu( nItemId, pMenu ); in SetPopupMenu()
1290 PopupMenu *pMenu = pSVMenu->GetPopupMenu( nSID ); in InitPopup() local
1292 DBG_ASSERT( pMenu, "Hier gibt es kein Popup!"); in InitPopup()
1300 new SfxVirtualMenu(nSID, this, *pMenu, sal_False, *pBindings, bOLE, bRes); in InitPopup()