Lines Matching refs:mpMenu

56     mpMenu = NULL;  in DBG_NAME()
63 mpMenu = pMenu; in VCLXMenu()
74 if ( mpMenu ) in ~VCLXMenu()
76 mpMenu->RemoveEventListener( LINK( this, VCLXMenu, MenuEventListener ) ); in ~VCLXMenu()
77 delete mpMenu; in ~VCLXMenu()
83 return (mpMenu && ! mpMenu->IsMenuBar()); in IsPopupMenu()
88 DBG_ASSERT( !mpMenu, "CreateMenu: Menu exists!" ); in ImplCreateMenu()
91 mpMenu = new PopupMenu; in ImplCreateMenu()
93 mpMenu = new MenuBar; in ImplCreateMenu()
95 mpMenu->AddEventListener( LINK( this, VCLXMenu, MenuEventListener ) ); in ImplCreateMenu()
103 DBG_ASSERT( ((VclMenuEvent*)pEvent)->GetMenu() && mpMenu, "Menu???" ); in IMPL_LINK()
106 if ( pMenuEvent->GetMenu() == mpMenu ) // Also called for the root menu in IMPL_LINK()
116 aEvent.MenuId = mpMenu->GetCurItemId(); in IMPL_LINK()
123 mpMenu = NULL; in IMPL_LINK()
132 aEvent.MenuId = mpMenu->GetCurItemId(); in IMPL_LINK()
143 aEvent.MenuId = mpMenu->GetCurItemId(); in IMPL_LINK()
154 aEvent.MenuId = mpMenu->GetCurItemId(); in IMPL_LINK()
380 if ( mpMenu ) in insertItem()
381 mpMenu->InsertItem( nItemId, aText, (MenuItemBits)nItemStyle, nPos ); in insertItem()
392 sal_Int32 nItemCount = (sal_Int32)mpMenu->GetItemCount(); in removeItem()
393 if ( mpMenu && ( nCount > 0 ) && ( nPos >= 0 ) && ( nPos < nItemCount ) && ( nItemCount > 0 )) in removeItem()
398 mpMenu->RemoveItem( --nP ); in removeItem()
408 return mpMenu ? mpMenu->GetItemCount() : 0; in getItemCount()
418 return mpMenu ? mpMenu->GetItemId( nPos ) : 0; in getItemId()
428 return mpMenu ? mpMenu->GetItemPos( nId ) : 0; in getItemPos()
439 if ( mpMenu ) in enableItem()
440 mpMenu->EnableItem( nItemId, bEnable ); in enableItem()
450 return mpMenu ? mpMenu->IsItemEnabled( nItemId ) : sal_False; in isItemEnabled()
461 if ( mpMenu ) in setItemText()
462 mpMenu->SetItemText( nItemId, aText ); in setItemText()
473 if ( mpMenu ) in getItemText()
474 aItemText = mpMenu->GetItemText( nItemId ); in getItemText()
489 if ( mpMenu && pVCLMenu && pVCLMenu->GetMenu() && pVCLMenu->IsPopupMenu() ) in setPopupMenu()
496 mpMenu->SetPopupMenu( nItemId, (PopupMenu*) pVCLMenu->GetMenu() ); in setPopupMenu()
508 Menu* pMenu = mpMenu ? mpMenu->GetPopupMenu( nItemId ) : NULL; in getPopupMenu()
533 if ( mpMenu ) in insertSeparator()
534 mpMenu->InsertSeparator( nPos ); in insertSeparator()
544 if ( mpMenu ) in setDefaultItem()
545 mpMenu->SetDefaultItem( nItemId ); in setDefaultItem()
554 return mpMenu ? mpMenu->GetDefaultItem() : 0; in getDefaultItem()
565 if ( mpMenu ) in checkItem()
566 mpMenu->CheckItem( nItemId, bCheck ); in checkItem()
576 return mpMenu ? mpMenu->IsItemChecked( nItemId ) : sal_False; in isItemChecked()
589 if ( mpMenu && IsPopupMenu() ) in execute()
591 nRet = ((PopupMenu*)mpMenu)->Execute( VCLUnoHelper::GetWindow( rxWindowPeer ), in execute()
607 if ( mpMenu ) in setCommand()
608 mpMenu->SetItemCommand( nItemId, aCommand ); in setCommand()
619 if ( mpMenu ) in getCommand()
620 aItemCommand = mpMenu->GetItemCommand( nItemId ); in getCommand()
632 if ( mpMenu ) in setHelpCommand()
633 mpMenu->SetHelpCommand( nItemId, aHelp ); in setHelpCommand()
644 if ( mpMenu ) in getHelpCommand()
645 aHelpCommand = mpMenu->GetHelpCommand( nItemId ); in getHelpCommand()
733 if ( mpMenu ) in clear()
734 mpMenu->Clear(); in clear()
747 if ( mpMenu ) in getItemType()
749 aMenuItemType = ( (css::awt::MenuItemType) mpMenu->GetItemType( nItemPos ) ); in getItemType()
761 if ( mpMenu ) in hideDisabledEntries()
764 mpMenu->SetMenuFlags( mpMenu->GetMenuFlags() | MENU_FLAG_HIDEDISABLEDENTRIES ); in hideDisabledEntries()
766 mpMenu->SetMenuFlags( mpMenu->GetMenuFlags() & ~MENU_FLAG_HIDEDISABLEDENTRIES ); in hideDisabledEntries()
777 if ( mpMenu && IsPopupMenu() ) in isInExecute()
778 return ( (PopupMenu*) mpMenu )->IsInExecute(); in isInExecute()
790 if ( mpMenu && IsPopupMenu() ) in endExecute()
791 ( (PopupMenu*) mpMenu )->EndExecute(); in endExecute()
801 if ( mpMenu ) in enableAutoMnemonics()
804 mpMenu->SetMenuFlags( mpMenu->GetMenuFlags() | MENU_FLAG_NOAUTOMNEMONICS ); in enableAutoMnemonics()
806 mpMenu->SetMenuFlags( mpMenu->GetMenuFlags() & ~MENU_FLAG_NOAUTOMNEMONICS ); in enableAutoMnemonics()
819 if ( mpMenu && IsPopupMenu() && MENU_ITEM_NOTFOUND != mpMenu->GetItemPos( nItemId ) ) in setAcceleratorKeyEvent()
822 mpMenu->SetAccelKey( nItemId, aVCLKeyCode ); in setAcceleratorKeyEvent()
835 if ( mpMenu && IsPopupMenu() && MENU_ITEM_NOTFOUND != mpMenu->GetItemPos( nItemId ) ) in getAcceleratorKeyEvent()
837 KeyCode nKeyCode = mpMenu->GetAccelKey( nItemId ); in getAcceleratorKeyEvent()
853 if ( mpMenu && MENU_ITEM_NOTFOUND != mpMenu->GetItemPos( nItemId ) ) in setHelpText()
855 mpMenu->SetHelpText( nItemId, sHelpText ); in setHelpText()
868 if ( mpMenu && MENU_ITEM_NOTFOUND != mpMenu->GetItemPos( nItemId ) ) in getHelpText()
870 sHelpText = mpMenu->GetHelpText( nItemId ); in getHelpText()
885 if ( mpMenu && MENU_ITEM_NOTFOUND != mpMenu->GetItemPos( nItemId ) ) in setTipHelpText()
887 mpMenu->SetTipHelpText( nItemId, sTipHelpText ); in setTipHelpText()
900 if ( mpMenu && MENU_ITEM_NOTFOUND != mpMenu->GetItemPos( nItemId ) ) in getTipHelpText()
902 sTipHelpText = mpMenu->GetTipHelpText( nItemId ); in getTipHelpText()
917 if ( mpMenu && IsPopupMenu() && MENU_ITEM_NOTFOUND != mpMenu->GetItemPos( nItemId ) ) in setItemImage()
920 mpMenu->SetItemImage( nItemId, aImage ); in setItemImage()
935 if ( mpMenu && IsPopupMenu() && MENU_ITEM_NOTFOUND != mpMenu->GetItemPos( nItemId ) ) in getItemImage()
937 Image aImage = mpMenu->GetItemImage( nItemId ); in getItemImage()