Lines Matching refs:nItemId

530 …	    sal_Bool            bMenuItemEnabled( m_pVCLMenu->IsItemEnabled( pMenuItemHandler->nItemId ));  in statusChanged()
548 m_pVCLMenu->EnableItem( pMenuItemHandler->nItemId, bEnabledItem ); in statusChanged()
553 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, sal_True ); in statusChanged()
554 m_pVCLMenu->CheckItem( pMenuItemHandler->nItemId, bCheckmark ); in statusChanged()
556 MenuItemBits nBits = m_pVCLMenu->GetItemBits( pMenuItemHandler->nItemId ); in statusChanged()
559 m_pVCLMenu->SetItemBits( pMenuItemHandler->nItemId, nBits | MIB_CHECKABLE ); in statusChanged()
587 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, sal_True ); in statusChanged()
588 m_pVCLMenu->SetItemText( pMenuItemHandler->nItemId, aItemText ); in statusChanged()
593 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, aVisibilityStatus.bVisible ); in statusChanged()
596 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, sal_True ); in statusChanged()
609 MenuBarManager::MenuItemHandler* MenuBarManager::GetMenuItemHandler( sal_uInt16 nItemId ) in GetMenuItemHandler() argument
618 if ( pItemHandler->nItemId == nItemId ) in GetMenuItemHandler()
677 m_pVCLMenu->SetPopupMenu( pItemHandler->nItemId, 0 ); in RemoveListener()
775 m_pVCLMenu->SetPopupMenu( pMenuItemDisposing->nItemId, 0 ); in disposing()
816 sal_uInt16 nItemId = pMenu->GetItemId( n ); in CheckAndAddMenuExtension() local
817 nNewItemId = std::max( nItemId, nNewItemId ); in CheckAndAddMenuExtension()
818 if ( pMenu->GetItemCommand( nItemId ) == aCommandAfter ) in CheckAndAddMenuExtension()
820 else if ( pMenu->GetItemCommand( nItemId ) == aCommandBefore ) in CheckAndAddMenuExtension()
835 static void lcl_CheckForChildren(Menu* pMenu, sal_uInt16 nItemId) in lcl_CheckForChildren() argument
837 if (PopupMenu* pThisPopup = pMenu->GetPopupMenu( nItemId )) in lcl_CheckForChildren()
838 pMenu->EnableItem( nItemId, pThisPopup->GetItemCount() ? true : false ); in lcl_CheckForChildren()
896 sal_uInt16 nItemId = pMenu->GetItemId( nPos ); in IMPL_LINK() local
898 ( pMenu->GetItemText( nItemId ).Len() == 0 )) in IMPL_LINK()
900 String aCommand = pMenu->GetItemCommand( nItemId ); in IMPL_LINK()
902 pMenu->SetItemText( nItemId, RetrieveLabelFromCommand( aCommand )); in IMPL_LINK()
919 pMenu->SetAccelKey( pMenuItemHandler->nItemId, aKeyCode ); in IMPL_LINK()
921 else if ( pMenu->GetPopupMenu( pMenuItemHandler->nItemId ) == 0 ) in IMPL_LINK()
922 pMenu->SetAccelKey( pMenuItemHandler->nItemId, pMenuItemHandler->aKeyCode ); in IMPL_LINK()
951 if ( !(( pMenuItemHandler->nItemId >= START_ITEMID_WINDOWLIST && in IMPL_LINK()
952 pMenuItemHandler->nItemId < END_ITEMID_WINDOWLIST ))) in IMPL_LINK()
956 … ::rtl::OUString aItemCommand = pMenu->GetItemCommand( pMenuItemHandler->nItemId ); in IMPL_LINK()
960 aItemCommand += ::rtl::OUString::valueOf( (sal_Int32)pMenuItemHandler->nItemId ); in IMPL_LINK()
961 pMenu->SetItemCommand( pMenuItemHandler->nItemId, aItemCommand ); in IMPL_LINK()
971 pMenu->HideItem( pMenuItemHandler->nItemId ); in IMPL_LINK()
990 if (PopupMenu* pThisPopup = pMenu->GetPopupMenu( pMenuItemHandler->nItemId )) in IMPL_LINK()
991 … pMenu->EnableItem( pMenuItemHandler->nItemId, pThisPopup->GetItemCount() ? true : false ); in IMPL_LINK()
994 lcl_CheckForChildren(pMenu, pMenuItemHandler->nItemId); in IMPL_LINK()
1009 pMenu->EnableItem( pMenuItemHandler->nItemId, sal_False ); in IMPL_LINK()
1016 lcl_CheckForChildren(pMenu, pMenuItemHandler->nItemId); in IMPL_LINK()
1036 lcl_CheckForChildren(pMenu, pMenuItemHandler->nItemId); in IMPL_LINK()
1284 sal_uInt16 nItemId = pMenu->GetItemId( nPos ); in FillMenuManager() local
1285 ::rtl::OUString aCommand = pMenu->GetItemCommand( nItemId ); in FillMenuManager()
1286 if ( nItemId == SID_MDIWINDOWLIST || in FillMenuManager()
1306 sal_uInt16 nItemId = FillItemCommand(aItemCommand,pMenu, i ); in FillMenuManager() local
1316 ( pMenu->GetItemText( nItemId ).Len() == 0 )) in FillMenuManager()
1319 pMenu->SetItemText( nItemId, RetrieveLabelFromCommand( aItemCommand )); in FillMenuManager()
1324 PopupMenu* pPopup = pMenu->GetPopupMenu( nItemId ); in FillMenuManager()
1326 MenuItemBits nBits = pMenu->GetItemBits( nItemId ); in FillMenuManager()
1334 if ( pMenu->GetHelpCommand( nItemId ).Len() > 0 ) in FillMenuManager()
1336 aModuleIdentifier = pMenu->GetHelpCommand( nItemId ); in FillMenuManager()
1337 pMenu->SetHelpCommand( nItemId, aEmpty ); in FillMenuManager()
1348 … MenuItemHandler* pItemHandler = new MenuItemHandler( nItemId, xStatusListener, xDispatch ); in FillMenuManager()
1351 pMenu->SetPopupMenu( nItemId, pNewPopupMenu ); in FillMenuManager()
1362 lcl_CheckForChildren(pMenu, nItemId); in FillMenuManager()
1370 AddMenu(pSubMenuManager,aItemCommand,nItemId); in FillMenuManager()
1377 …ation::Attributes* pAttributes = (MenuConfiguration::Attributes *)(pMenu->GetUserValue( nItemId )); in FillMenuManager()
1382 … if ( nItemId == SID_HELPMENU || aItemCommand == aSlotHelpMenu || aItemCommand == aCmdHelpMenu ) in FillMenuManager()
1387 …else if (( nItemId == SID_ADDONLIST || aItemCommand == aSlotSpecialToolsMenu || aItemCommand == aC… in FillMenuManager()
1413 if ( nItemId == ITEMID_ADDONLIST ) in FillMenuManager()
1421 AddMenu(pSubMenuManager,aItemCommand,nItemId); in FillMenuManager()
1438 AddMenu(pSubMenuMgr,aItemCommand,nItemId); in FillMenuManager()
1446 if ( AddonMenuManager::IsAddonMenuId( nItemId )) in FillMenuManager()
1453 (MenuConfiguration::Attributes*)pMenu->GetUserValue( nItemId ); in FillMenuManager()
1469 pMenu->SetItemImage( nItemId, aImage ); in FillMenuManager()
1476 … MenuItemHandler* pItemHandler = new MenuItemHandler( nItemId, xStatusListener, xDispatch ); in FillMenuManager()
1487 pMenu->SetPopupMenu( pItemHandler->nItemId, pPopupMenu ); in FillMenuManager()
1495 lcl_CheckForChildren(pMenu, pItemHandler->nItemId); in FillMenuManager()
1515 pMenu->SetAccelKey( pMenuItemHandler->nItemId, aKeyCode ); in FillMenuManager()
1517 else if ( pMenu->GetPopupMenu( pMenuItemHandler->nItemId ) == 0 ) in FillMenuManager()
1518 pMenu->SetAccelKey( pMenuItemHandler->nItemId, pMenuItemHandler->aKeyCode ); in FillMenuManager()
1854 sal_uInt16 nItemId = ADDONMENU_MERGE_ITEMID_START; in MergeAddonMenus() local
1881 nItemId, in MergeAddonMenus()
1891 nItemId, in MergeAddonMenus()
2038 sal_uInt16 nItemId = _pMenu->GetItemId( _nIndex ); in FillItemCommand() local
2040 _rItemCommand = _pMenu->GetItemCommand( nItemId ); in FillItemCommand()
2045 _rItemCommand += ::rtl::OUString::valueOf( (sal_Int32)nItemId ); in FillItemCommand()
2046 _pMenu->SetItemCommand( nItemId, _rItemCommand ); in FillItemCommand()
2048 return nItemId; in FillItemCommand()
2075 sal_uInt16 nItemId = FillItemCommand(aItemCommand,pAddonMenu, i ); in Init() local
2077 PopupMenu* pPopupMenu = pAddonMenu->GetPopupMenu( nItemId ); in Init()
2090 nItemId, in Init()
2099 …ributes* pAddonAttributes = (MenuConfiguration::Attributes *)(pAddonMenu->GetUserValue( nItemId )); in Init()
2100 MenuItemHandler* pMenuItemHandler = new MenuItemHandler( nItemId, xStatusListener, xDispatch ); in Init()
2119 pAddonMenu->SetPopupMenu( pMenuItemHandler->nItemId, pCtlPopupMenu ); in Init()