Lines Matching refs:pSVMenu
112 Menu* pSVMenu = pMenu->GetSVMenu(); in Update() local
113 for (sal_uInt16 nPos = 0; nPos<pSVMenu->GetItemCount(); nPos++) in Update()
115 sal_uInt16 nslotId = pSVMenu->GetItemId( nPos ); in Update()
119 pSVMenu->SetItemImageMirrorMode( nslotId, sal_False ); in Update()
120 pSVMenu->SetItemImageAngle( nslotId, lRotation ); in Update()
124 pSVMenu->SetItemImageMirrorMode( nslotId, bIsMirrored ); in Update()
175 pSVMenu->SetHighlightHdl( LINK(this, SfxVirtualMenu, Highlight) ); in Construct_Impl()
176 pSVMenu->SetActivateHdl( LINK(this, SfxVirtualMenu, Activate) ); in Construct_Impl()
177 pSVMenu->SetDeactivateHdl( LINK(this, SfxVirtualMenu, Deactivate) ); in Construct_Impl()
178 pSVMenu->SetSelectHdl( LINK(this, SfxVirtualMenu, Select) ); in Construct_Impl()
205 pSVMenu = &rMenu; in SfxVirtualMenu()
242 pSVMenu = pStarViewMenu; in SfxVirtualMenu()
305 if( pParent->pSVMenu->GetItemPos( nId ) != MENU_ITEM_NOTFOUND ) in ~SfxVirtualMenu()
306 pParent->pSVMenu->SetPopupMenu( nId, 0 ); in ~SfxVirtualMenu()
307 if ( pParent->pPickMenu == pSVMenu ) in ~SfxVirtualMenu()
309 if ( pParent->pWindowMenu == pSVMenu) in ~SfxVirtualMenu()
311 if ( pParent->pAddonsMenu == pSVMenu ) in ~SfxVirtualMenu()
315 delete pSVMenu; in ~SfxVirtualMenu()
342 if ( pSVMenu->IsMenuBar() ) in CreateFromSVMenu()
345 sal_uInt16 nPos = pSVMenu->GetItemPos( SID_MDIWINDOWLIST ); in CreateFromSVMenu()
349 …framework::AddonMenuManager::MergeAddonPopupMenus( xFrame, nPos, (MenuBar *)pSVMenu, aXMultiServic… in CreateFromSVMenu()
354 …framework::AddonMenuManager::MergeAddonHelpMenu( xFrame, (MenuBar *)pSVMenu, aXMultiServiceFactory… in CreateFromSVMenu()
358 pAddonsMenu = pSVMenu->GetPopupMenu( SID_ADDONLIST ); in CreateFromSVMenu()
362 if ( pSVMenu == pParent->pAddonsMenu && in CreateFromSVMenu()
364 !pSVMenu->GetPopupMenu( SID_ADDONS ) ) in CreateFromSVMenu()
367 InsertAddOnsMenuItem( pSVMenu ); in CreateFromSVMenu()
372 nCount = pSVMenu->GetItemCount(); in CreateFromSVMenu()
397 sal_uInt16 nSlotId = pSVMenu->GetItemId(nSVPos); in CreateFromSVMenu()
398 PopupMenu* pPopup = pSVMenu->GetPopupMenu(nSlotId); 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()
420 if ( pSVMenu->GetPopupMenu( nSlotId ) == pPopup ) in CreateFromSVMenu()
421 pSVMenu->SetPopupMenu( nSlotId, NULL ); in CreateFromSVMenu()
435 pSVMenu->SetItemImage( nSlotId, aImage ); in CreateFromSVMenu()
445 pSVMenu->SetHelpId( nSlotId, pSlot->GetUnoName() ); in CreateFromSVMenu()
464 switch ( pSVMenu->GetItemType(nSVPos) ) in CreateFromSVMenu()
470 String aCmd( pSVMenu->GetItemCommand( nSlotId ) ); in CreateFromSVMenu()
474 …pMnuCtrl = SfxMenuControl::CreateControl( aCmd, nSlotId, *pSVMenu, sItemText, sHelpText, *pBinding… in CreateFromSVMenu()
486 pMnuCtrl = SfxMenuControl::CreateControl(nSlotId, *pSVMenu, *pBindings); in CreateFromSVMenu()
508 (::framework::MenuConfiguration::Attributes*)pSVMenu->GetUserValue( nSlotId ); in CreateFromSVMenu()
523 pSVMenu->SetItemImage( nSlotId, aImage ); in CreateFromSVMenu()
529 pSVMenu->RemoveItem( nSVPos-- ); in CreateFromSVMenu()
558 if ( pMenu == pSVMenu ) in IMPL_LINK()
571 sal_uInt16 nItemCount = pSVMenu->GetItemCount(); in IMPL_LINK()
581 sal_uInt16 nSlotId = pSVMenu->GetItemId( nSVPos ); in IMPL_LINK()
582 MenuItemType nType = pSVMenu->GetItemType( nSVPos ); 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()
603 pSVMenu->SetItemImage( nSlotId, GetImage( xFrame, aSlotURL, sal_False, bWasHighContrast )); in IMPL_LINK()
608 pSVMenu->SetItemImage( nSlotId, Image() ); in IMPL_LINK()
616 RemoveMenuImages( pSVMenu ); in IMPL_LINK()
618 UpdateImages( pSVMenu ); in IMPL_LINK()
622 if ( pParent && pSVMenu == pParent->pAddonsMenu ) in IMPL_LINK()
645 sal_uInt16 nItemCount = pSVMenu->GetItemCount(); in UpdateImages()
651 sal_uInt16 nSlotId = pSVMenu->GetItemId( nSVPos ); in UpdateImages()
652 if ( pSVMenu->GetItemType( nSVPos ) == MENUITEM_STRINGIMAGE ) 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()
672 pSVMenu->SetItemImage( nSlotId, GetImage( xFrame, aSlotURL, sal_False, bWasHighContrast )); in UpdateImages()
756 sal_uInt16 nSID = pSVMenu->GetItemId(nPos); in Bind_Impl()
758 bFound = pSVMenu->GetPopupMenu(nSID) == pMenu; in Bind_Impl()
771 rtl::OUString aCommand = pSVMenu->GetItemCommand( nSID ); in Bind_Impl()
786 pSVMenu->GetItemText(nSID), pSVMenu->GetHelpText(nSID), in Bind_Impl()
825 if ( !pSVMenu->GetItemCommand(nSlotId).Len() ) in BindControllers()
905 DBG_OUTF( ("SfxVirtualMenu %lx activated %lx, own %lx", this, pMenu, pSVMenu)); in IMPL_LINK()
924 if ( pMenu == pSVMenu ) in IMPL_LINK()
931 if ( pParent && pSVMenu == pParent->pPickMenu ) in IMPL_LINK()
936 pPickMenu = pSVMenu->GetPopupMenu(SID_PICKLIST); in IMPL_LINK()
938 if ( pParent && pSVMenu == pParent->pWindowMenu ) in IMPL_LINK()
1001 pWindowMenu = pSVMenu->GetPopupMenu(SID_MDIWINDOWLIST); in IMPL_LINK()
1003 if ( !pParent && pSVMenu->IsMenuBar() && !pAddonsMenu ) in IMPL_LINK()
1006 pAddonsMenu = pSVMenu->GetPopupMenu( SID_ADDONLIST ); in IMPL_LINK()
1042 UpdateImages( pSVMenu ); in IMPL_LINK()
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()
1156 return pSVMenu; in GetSVMenu()
1226 DBG_ASSERT( pSVMenu != 0, "" ); in CheckItem()
1227 if (pSVMenu->GetItemPos( nItemId ) != MENU_ITEM_NOTFOUND ) in CheckItem()
1228 pSVMenu->CheckItem( nItemId, bCheck ); in CheckItem()
1239 DBG_ASSERT( pSVMenu != 0, "" ); in EnableItem()
1241 if (pSVMenu->GetItemPos( nItemId ) != MENU_ITEM_NOTFOUND ) in EnableItem()
1242 pSVMenu->EnableItem( nItemId, bEnable ); in EnableItem()
1253 DBG_ASSERT( pSVMenu != 0, "" ); in SetItemText()
1254 if (pSVMenu->GetItemPos( nItemId ) != MENU_ITEM_NOTFOUND ) in SetItemText()
1255 pSVMenu->SetItemText( nItemId, rText ); in SetItemText()
1267 if (pSVMenu->GetItemPos( nItemId ) != MENU_ITEM_NOTFOUND ) in SetPopupMenu()
1286 sal_uInt16 nSID = pSVMenu->GetItemId(nPos); in InitPopup()
1287 PopupMenu *pMenu = pSVMenu->GetPopupMenu( nSID ); in InitPopup()
1302 pSVMenu->GetItemText(nSID), pSVMenu->GetHelpText(nSID), in InitPopup()
1309 for ( sal_uInt16 nPos = 0; nPos<pSVMenu->GetItemCount(); ++nPos ) in InitializeHelp()
1311 sal_uInt16 nSlotId = pSVMenu->GetItemId(nPos); in InitializeHelp()