Lines Matching refs:pPopupMenu
94 void NewMenuController::setMenuImages( PopupMenu* pPopupMenu, sal_Bool bSetImages, sal_Bool bHiCont…
96 sal_uInt16 nItemCount = pPopupMenu->GetItemCount();
102 sal_uInt16 nItemId = pPopupMenu->GetItemId( sal::static_int_cast<sal_uInt16>( i ));
120 pPopupMenu->SetItemImage( nItemId, aImage );
126 String aCmd( pPopupMenu->GetItemCommand( nItemId ) );
131 pPopupMenu->SetItemImage( nItemId, aImage );
135 pPopupMenu->SetItemImage( nItemId, aImage );
140 void NewMenuController::determineAndSetNewDocAccel( PopupMenu* pPopupMenu, const KeyCode& rKeyCode ) in determineAndSetNewDocAccel() argument
142 sal_uInt16 nCount( pPopupMenu->GetItemCount() ); in determineAndSetNewDocAccel()
153 nId = pPopupMenu->GetItemId( sal_uInt16( i )); in determineAndSetNewDocAccel()
154 if ( nId != 0 && pPopupMenu->GetItemType( nId ) != MENUITEM_SEPARATOR ) in determineAndSetNewDocAccel()
156 aCommand = pPopupMenu->GetItemCommand( nId ); in determineAndSetNewDocAccel()
159 pPopupMenu->SetAccelKey( nId, rKeyCode ); in determineAndSetNewDocAccel()
175 nId = pPopupMenu->GetItemId( sal_uInt16( i )); in determineAndSetNewDocAccel()
176 if ( nId != 0 && pPopupMenu->GetItemType( nId ) != MENUITEM_SEPARATOR ) in determineAndSetNewDocAccel()
178 aCommand = pPopupMenu->GetItemCommand( nId ); in determineAndSetNewDocAccel()
181 pPopupMenu->SetAccelKey( nId, rKeyCode ); in determineAndSetNewDocAccel()
190 void NewMenuController::setAccelerators( PopupMenu* pPopupMenu ) in setAccelerators() argument
248 sal_uInt32 nItemCount( pPopupMenu->GetItemCount() ); in setAccelerators()
254 sal_uInt16 nId( pPopupMenu->GetItemId( sal_uInt16( i ))); in setAccelerators()
255 if ( nId & ( pPopupMenu->GetItemType( nId ) != MENUITEM_SEPARATOR )) in setAccelerators()
259 aCmds.push_back( pPopupMenu->GetItemCommand( nId )); in setAccelerators()
290 pPopupMenu->SetAccelKey( sal_uInt16( aIds[i] ), aMenuShortCuts[i] ); in setAccelerators()
297 determineAndSetNewDocAccel( pPopupMenu, aMenuShortCuts[nSeqCount-1] ); in setAccelerators()
343 VCLXPopupMenu* pPopupMenu = (VCLXPopupMenu *)VCLXMenu::GetImplementation( rPopupMenu ); in fillPopupMenu() local
349 if ( pPopupMenu ) in fillPopupMenu()
350 pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu(); in fillPopupMenu()
435 VCLXPopupMenu* pPopupMenu = (VCLXPopupMenu *)VCLXPopupMenu::GetImplementation( xPopupMenu ); in itemSelected() local
436 if ( pPopupMenu ) in itemSelected()
440 PopupMenu* pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu(); in itemSelected()
478 … VCLXPopupMenu* pPopupMenu = (VCLXPopupMenu *)VCLXPopupMenu::GetImplementation( m_xPopupMenu ); in itemActivated() local
479 if ( pPopupMenu ) in itemActivated()
485 PopupMenu* pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu(); in itemActivated()