Lines Matching refs:pMenu

80     SfxVirtualMenu*     pMenu;  member in SfxMenuImageControl_Impl
89 , pMenu( pVMenu ) in SfxMenuImageControl_Impl()
112 Menu* pSVMenu = pMenu->GetSVMenu(); in Update()
552 IMPL_LINK( SfxVirtualMenu, Highlight, Menu *, pMenu ) in IMPL_LINK() argument
558 if ( pMenu == pSVMenu ) in IMPL_LINK()
684 void SfxVirtualMenu::UpdateImages( Menu* pMenu ) in UpdateImages() argument
686 if ( !pMenu ) in UpdateImages()
695 sal_uInt16 nItemCount = pMenu->GetItemCount(); in UpdateImages()
700 sal_uInt16 nSlotId = pMenu->GetItemId( nPos ); in UpdateImages()
701 PopupMenu* pPopup = pMenu->GetPopupMenu( nSlotId ); in UpdateImages()
702 if ( pMenu->GetItemType( nPos ) != MENUITEM_SEPARATOR ) in UpdateImages()
707 (::framework::MenuConfiguration::Attributes*)pMenu->GetUserValue( nSlotId ); in UpdateImages()
712pMenu->SetItemImage( nSlotId, RetrieveAddOnImage( aXFrame, aImageId, pMenu->GetItemCommand( nSlotI… in UpdateImages()
726 void SfxVirtualMenu::RemoveMenuImages( Menu* pMenu ) in RemoveMenuImages() argument
728 if ( !pMenu ) in RemoveMenuImages()
731 sal_uInt16 nItemCount = pMenu->GetItemCount(); in RemoveMenuImages()
734 sal_uInt16 nSlotId = pMenu->GetItemId( nPos ); in RemoveMenuImages()
735 PopupMenu* pPopup = pMenu->GetPopupMenu( nSlotId ); in RemoveMenuImages()
736 if ( pMenu->GetItemType( nPos ) == MENUITEM_STRINGIMAGE ) in RemoveMenuImages()
737 pMenu->SetItemImage( nSlotId, Image() ); in RemoveMenuImages()
745 bool SfxVirtualMenu::Bind_Impl( Menu *pMenu ) in Bind_Impl() argument
758 bFound = pSVMenu->GetPopupMenu(nSID) == pMenu; in Bind_Impl()
781 *pMenu, sal_False, *pBindings, bOLE, bRes, bIsAddonPopupMenu ); in Bind_Impl()
790 pSubMenu->Bind_Impl( pMenu ); in Bind_Impl()
791 pSubMenu->Activate( pMenu ); in Bind_Impl()
797 bFound = pSubMenu->Bind_Impl( pMenu ); in Bind_Impl()
860 void SfxVirtualMenu::InsertAddOnsMenuItem( Menu* pMenu ) in InsertAddOnsMenuItem() argument
879 sal_uInt16 nItemCount = pMenu->GetItemCount(); in InsertAddOnsMenuItem()
881 if ( nItemCount > 0 && pMenu->GetItemType( nItemCount-1 ) != MENUITEM_SEPARATOR ) in InsertAddOnsMenuItem()
882 pMenu->InsertSeparator(); in InsertAddOnsMenuItem()
883 pMenu->InsertItem( SID_ADDONS, aAddonsTitle ); in InsertAddOnsMenuItem()
884 pMenu->SetPopupMenu( SID_ADDONS, pAddonMenu ); in InsertAddOnsMenuItem()
890 pMenu->SetItemImage( SID_ADDONS, GetImage( xFrame, aSlotURL, sal_False, bWasHighContrast )); in InsertAddOnsMenuItem()
901 IMPL_LINK( SfxVirtualMenu, Activate, Menu *, pMenu ) in IMPL_LINK() argument
905 DBG_OUTF( ("SfxVirtualMenu %lx activated %lx, own %lx", this, pMenu, pSVMenu)); in IMPL_LINK()
912 if ( pMenu ) in IMPL_LINK()
915 sal_uInt16 nFlag = pMenu->GetMenuFlags(); in IMPL_LINK()
920 pMenu->SetMenuFlags( nFlag ); in IMPL_LINK()
924 if ( pMenu == pSVMenu ) in IMPL_LINK()
973 int nItemCount = pMenu->GetItemCount(); in IMPL_LINK()
978 sal_uInt16 nPos = pMenu->GetItemPos( START_ITEMID_WINDOWLIST ); in IMPL_LINK()
979 for ( sal_uInt16 n = nPos; n < pMenu->GetItemCount(); ) in IMPL_LINK()
980 pMenu->RemoveItem( n ); in IMPL_LINK()
982 if ( pMenu->GetItemType( pMenu->GetItemCount()-1 ) == MENUITEM_SEPARATOR ) in IMPL_LINK()
983 pMenu->RemoveItem( pMenu->GetItemCount()-1 ); in IMPL_LINK()
989 pMenu->InsertSeparator(); in IMPL_LINK()
993 pMenu->InsertItem( nItemId, aNewWindowListVector.at( i ), MIB_RADIOCHECK ); in IMPL_LINK()
995 pMenu->CheckItem( nItemId ); in IMPL_LINK()
1053 bool bRet = Bind_Impl( pMenu ); in IMPL_LINK()
1064 IMPL_LINK( SfxVirtualMenu, Deactivate, Menu *, pMenu ) in IMPL_LINK() argument
1067 DBG_OUTF( ("SfxVirtualMenu %lx deactivated %lx, own %lx", this, pMenu, pSVMenu) ); in IMPL_LINK()
1068 if ( bIsActive && ( 0 == pMenu || pMenu == pSVMenu ) ) in IMPL_LINK()
1085 IMPL_LINK( SfxVirtualMenu, Select, Menu *, pMenu ) in IMPL_LINK() argument
1087 sal_uInt16 nSlotId = (sal_uInt16) pMenu->GetCurItemId(); in IMPL_LINK()
1088 DBG_OUTF( ("SfxVirtualMenu %lx selected %u from %lx", this, nSlotId, pMenu) ); in IMPL_LINK()
1139 if ( pMenu->GetItemCommand( nSlotId ).Len() ) in IMPL_LINK()
1140 pBindings->ExecuteCommand_Impl( pMenu->GetItemCommand( nSlotId ) ); in IMPL_LINK()
1262 void SfxVirtualMenu::SetPopupMenu( sal_uInt16 nItemId, PopupMenu *pMenu ) in SetPopupMenu() argument
1268 GetSVMenu()->SetPopupMenu( nItemId, pMenu ); in SetPopupMenu()
1273 pSubMenu->SetPopupMenu( nItemId, pMenu ); in SetPopupMenu()
1287 PopupMenu *pMenu = pSVMenu->GetPopupMenu( nSID ); in InitPopup() local
1289 DBG_ASSERT( pMenu, "Hier gibt es kein Popup!"); in InitPopup()
1297 new SfxVirtualMenu(nSID, this, *pMenu, sal_False, *pBindings, bOLE, bRes); in InitPopup()