Lines Matching refs:nItemId
531 … sal_Bool bMenuItemEnabled( m_pVCLMenu->IsItemEnabled( pMenuItemHandler->nItemId )); in statusChanged()
549 m_pVCLMenu->EnableItem( pMenuItemHandler->nItemId, bEnabledItem ); in statusChanged()
554 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, sal_True ); in statusChanged()
555 m_pVCLMenu->CheckItem( pMenuItemHandler->nItemId, bCheckmark ); in statusChanged()
557 MenuItemBits nBits = m_pVCLMenu->GetItemBits( pMenuItemHandler->nItemId ); in statusChanged()
560 m_pVCLMenu->SetItemBits( pMenuItemHandler->nItemId, nBits | MIB_CHECKABLE ); in statusChanged()
588 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, sal_True ); in statusChanged()
589 m_pVCLMenu->SetItemText( pMenuItemHandler->nItemId, aItemText ); in statusChanged()
594 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, aVisibilityStatus.bVisible ); in statusChanged()
597 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, sal_True ); in statusChanged()
610 MenuBarManager::MenuItemHandler* MenuBarManager::GetMenuItemHandler( sal_uInt16 nItemId ) in GetMenuItemHandler() argument
619 if ( pItemHandler->nItemId == nItemId ) in GetMenuItemHandler()
678 m_pVCLMenu->SetPopupMenu( pItemHandler->nItemId, 0 ); in RemoveListener()
776 m_pVCLMenu->SetPopupMenu( pMenuItemDisposing->nItemId, 0 ); in disposing()
817 sal_uInt16 nItemId = pMenu->GetItemId( n ); in CheckAndAddMenuExtension() local
818 nNewItemId = std::max( nItemId, nNewItemId ); in CheckAndAddMenuExtension()
819 if ( pMenu->GetItemCommand( nItemId ) == aCommandAfter ) in CheckAndAddMenuExtension()
821 else if ( pMenu->GetItemCommand( nItemId ) == aCommandBefore ) in CheckAndAddMenuExtension()
836 static void lcl_CheckForChildren(Menu* pMenu, sal_uInt16 nItemId) in lcl_CheckForChildren() argument
838 if (PopupMenu* pThisPopup = pMenu->GetPopupMenu( nItemId )) in lcl_CheckForChildren()
839 pMenu->EnableItem( nItemId, pThisPopup->GetItemCount() ? true : false ); in lcl_CheckForChildren()
897 sal_uInt16 nItemId = pMenu->GetItemId( nPos ); in IMPL_LINK() local
899 ( pMenu->GetItemText( nItemId ).Len() == 0 )) in IMPL_LINK()
901 String aCommand = pMenu->GetItemCommand( nItemId ); in IMPL_LINK()
903 pMenu->SetItemText( nItemId, RetrieveLabelFromCommand( aCommand )); in IMPL_LINK()
920 pMenu->SetAccelKey( pMenuItemHandler->nItemId, aKeyCode ); in IMPL_LINK()
922 else if ( pMenu->GetPopupMenu( pMenuItemHandler->nItemId ) == 0 ) in IMPL_LINK()
923 pMenu->SetAccelKey( pMenuItemHandler->nItemId, pMenuItemHandler->aKeyCode ); in IMPL_LINK()
952 if ( !(( pMenuItemHandler->nItemId >= START_ITEMID_WINDOWLIST && in IMPL_LINK()
953 pMenuItemHandler->nItemId < END_ITEMID_WINDOWLIST ))) in IMPL_LINK()
957 … ::rtl::OUString aItemCommand = pMenu->GetItemCommand( pMenuItemHandler->nItemId ); in IMPL_LINK()
961 aItemCommand += ::rtl::OUString::valueOf( (sal_Int32)pMenuItemHandler->nItemId ); in IMPL_LINK()
962 pMenu->SetItemCommand( pMenuItemHandler->nItemId, aItemCommand ); in IMPL_LINK()
972 pMenu->HideItem( pMenuItemHandler->nItemId ); in IMPL_LINK()
991 if (PopupMenu* pThisPopup = pMenu->GetPopupMenu( pMenuItemHandler->nItemId )) in IMPL_LINK()
992 … pMenu->EnableItem( pMenuItemHandler->nItemId, pThisPopup->GetItemCount() ? true : false ); in IMPL_LINK()
995 lcl_CheckForChildren(pMenu, pMenuItemHandler->nItemId); in IMPL_LINK()
1010 pMenu->EnableItem( pMenuItemHandler->nItemId, sal_False ); in IMPL_LINK()
1017 lcl_CheckForChildren(pMenu, pMenuItemHandler->nItemId); in IMPL_LINK()
1037 lcl_CheckForChildren(pMenu, pMenuItemHandler->nItemId); in IMPL_LINK()
1289 sal_uInt16 nItemId = pMenu->GetItemId( nPos ); in FillMenuManager() local
1290 ::rtl::OUString aCommand = pMenu->GetItemCommand( nItemId ); in FillMenuManager()
1291 if ( nItemId == SID_MDIWINDOWLIST || in FillMenuManager()
1315 sal_uInt16 nItemId = FillItemCommand(aItemCommand,pMenu, i ); in FillMenuManager() local
1325 ( pMenu->GetItemText( nItemId ).Len() == 0 )) in FillMenuManager()
1328 pMenu->SetItemText( nItemId, RetrieveLabelFromCommand( aItemCommand )); in FillMenuManager()
1333 PopupMenu* pPopup = pMenu->GetPopupMenu( nItemId ); in FillMenuManager()
1335 MenuItemBits nBits = pMenu->GetItemBits( nItemId ); in FillMenuManager()
1343 if ( pMenu->GetHelpCommand( nItemId ).Len() > 0 ) in FillMenuManager()
1345 aModuleIdentifier = pMenu->GetHelpCommand( nItemId ); in FillMenuManager()
1346 pMenu->SetHelpCommand( nItemId, aEmpty ); in FillMenuManager()
1357 … MenuItemHandler* pItemHandler = new MenuItemHandler( nItemId, xStatusListener, xDispatch ); in FillMenuManager()
1360 pMenu->SetPopupMenu( nItemId, pNewPopupMenu ); in FillMenuManager()
1371 lcl_CheckForChildren(pMenu, nItemId); in FillMenuManager()
1379 AddMenu(pSubMenuManager,aItemCommand,nItemId); in FillMenuManager()
1386 …ation::Attributes* pAttributes = (MenuConfiguration::Attributes *)(pMenu->GetUserValue( nItemId )); in FillMenuManager()
1391 … if ( nItemId == SID_HELPMENU || aItemCommand == aSlotHelpMenu || aItemCommand == aCmdHelpMenu ) in FillMenuManager()
1396 …else if (( nItemId == SID_ADDONLIST || aItemCommand == aSlotSpecialToolsMenu || aItemCommand == aC… in FillMenuManager()
1422 if ( nItemId == ITEMID_ADDONLIST ) in FillMenuManager()
1430 AddMenu(pSubMenuManager,aItemCommand,nItemId); in FillMenuManager()
1447 AddMenu(pSubMenuMgr,aItemCommand,nItemId); in FillMenuManager()
1455 if ( AddonMenuManager::IsAddonMenuId( nItemId )) in FillMenuManager()
1462 (MenuConfiguration::Attributes*)pMenu->GetUserValue( nItemId ); in FillMenuManager()
1478 pMenu->SetItemImage( nItemId, aImage ); in FillMenuManager()
1485 … MenuItemHandler* pItemHandler = new MenuItemHandler( nItemId, xStatusListener, xDispatch ); in FillMenuManager()
1496 pMenu->SetPopupMenu( pItemHandler->nItemId, pPopupMenu ); in FillMenuManager()
1504 lcl_CheckForChildren(pMenu, pItemHandler->nItemId); in FillMenuManager()
1524 pMenu->SetAccelKey( pMenuItemHandler->nItemId, aKeyCode ); in FillMenuManager()
1526 else if ( pMenu->GetPopupMenu( pMenuItemHandler->nItemId ) == 0 ) in FillMenuManager()
1527 pMenu->SetAccelKey( pMenuItemHandler->nItemId, pMenuItemHandler->aKeyCode ); in FillMenuManager()
1863 sal_uInt16 nItemId = ADDONMENU_MERGE_ITEMID_START; in MergeAddonMenus() local
1890 nItemId, in MergeAddonMenus()
1900 nItemId, in MergeAddonMenus()
2047 sal_uInt16 nItemId = _pMenu->GetItemId( _nIndex ); in FillItemCommand() local
2049 _rItemCommand = _pMenu->GetItemCommand( nItemId ); in FillItemCommand()
2054 _rItemCommand += ::rtl::OUString::valueOf( (sal_Int32)nItemId ); in FillItemCommand()
2055 _pMenu->SetItemCommand( nItemId, _rItemCommand ); in FillItemCommand()
2057 return nItemId; in FillItemCommand()
2084 sal_uInt16 nItemId = FillItemCommand(aItemCommand,pAddonMenu, i ); in Init() local
2086 PopupMenu* pPopupMenu = pAddonMenu->GetPopupMenu( nItemId ); in Init()
2099 nItemId, in Init()
2108 …ributes* pAddonAttributes = (MenuConfiguration::Attributes *)(pAddonMenu->GetUserValue( nItemId )); in Init()
2109 MenuItemHandler* pMenuItemHandler = new MenuItemHandler( nItemId, xStatusListener, xDispatch ); in Init()
2128 pAddonMenu->SetPopupMenu( pMenuItemHandler->nItemId, pCtlPopupMenu ); in Init()