Lines Matching refs:nItemId
167 sal_uInt16 nItemId = FillItemCommand(aItemCommand,pMenu, i ); in MenuManager() local
169 MenuItemBits nBits = pMenu->GetItemBits( nItemId ); in MenuManager()
175 PopupMenu* pPopupMenu = pMenu->GetPopupMenu( nItemId ); in MenuManager()
178 AddMenu(pPopupMenu,aItemCommand,nItemId,bDeleteChildren,bDeleteChildren); in MenuManager()
185 if ( pMenu->GetItemText( nItemId ).Len() == 0 ) in MenuManager()
186 aQueryLabelItemIdVector.push_back( nItemId ); in MenuManager()
190 if (( nItemId == SID_ADDONLIST || in MenuManager()
214 AddMenu(pSubMenu,::rtl::OUString(),nItemId,sal_True,sal_False); in MenuManager()
216 if ( pMenu->GetItemText( nItemId ).Len() == 0 ) in MenuManager()
217 aQueryLabelItemIdVector.push_back( nItemId ); in MenuManager()
234 if ( nItemId == SID_NEWDOCDIRECT || in MenuManager()
242 pMenu->SetPopupMenu( nItemId, pSubMenu ); in MenuManager()
246 AddMenu(pSubMenu,::rtl::OUString(),nItemId,sal_True,sal_False); in MenuManager()
248 if ( pMenu->GetItemText( nItemId ).Len() == 0 ) in MenuManager()
249 aQueryLabelItemIdVector.push_back( nItemId ); in MenuManager()
252 if ( bShowMenuImages && !pMenu->GetItemImage( nItemId )) in MenuManager()
256 pMenu->SetItemImage( nItemId, aImage ); in MenuManager()
259 else if ( nItemId == SID_AUTOPILOTMENU || in MenuManager()
267 pMenu->SetPopupMenu( nItemId, pSubMenu ); in MenuManager()
271 AddMenu(pSubMenu,::rtl::OUString(),nItemId,sal_True,sal_False); in MenuManager()
273 if ( pMenu->GetItemText( nItemId ).Len() == 0 ) in MenuManager()
274 aQueryLabelItemIdVector.push_back( nItemId ); in MenuManager()
277 if ( bShowMenuImages && !pMenu->GetItemImage( nItemId )) in MenuManager()
281 pMenu->SetItemImage( nItemId, aImage ); in MenuManager()
288 if ( AddonMenuManager::IsAddonMenuId( nItemId )) in MenuManager()
295 (MenuConfiguration::Attributes*)pMenu->GetUserValue( nItemId ); in MenuManager()
311 pMenu->SetItemImage( nItemId, aImage ); in MenuManager()
313 else if ( !pMenu->GetItemImage( nItemId )) in MenuManager()
317 pMenu->SetItemImage( nItemId, aImage ); in MenuManager()
322 m_aMenuItemHandlerVector.push_back( new MenuItemHandler( nItemId, NULL, aXDispatchRef )); in MenuManager()
324 if ( pMenu->GetItemText( nItemId ).Len() == 0 ) in MenuManager()
325 aQueryLabelItemIdVector.push_back( nItemId ); in MenuManager()
384 sal_uInt16 nItemId = FillItemCommand(aItemCommand,pAddonMenu, i );
386 PopupMenu* pPopupMenu = pAddonMenu->GetPopupMenu( nItemId );
391 AddMenu(pPopupMenu,aItemCommand,nItemId,bDeleteChildren,bDeleteChildren);
397 …ributes* pAddonAttributes = (MenuConfiguration::Attributes *)(pAddonMenu->GetUserValue( nItemId ));
399 MenuItemHandler* pMenuItemHandler = new MenuItemHandler( nItemId, NULL, aXDispatchRef );
444 MenuManager::MenuItemHandler* MenuManager::GetMenuItemHandler( sal_uInt16 nItemId ) in GetMenuItemHandler() argument
452 if ( pItemHandler->nItemId == nItemId ) in GetMenuItemHandler()
489 sal_Bool bMenuItemEnabled = m_pVCLMenu->IsItemEnabled( pStatusChangedMenu->nItemId ); in statusChanged()
492 m_pVCLMenu->EnableItem( pStatusChangedMenu->nItemId, Event.IsEnabled ); in statusChanged()
498 m_pVCLMenu->CheckItem( pStatusChangedMenu->nItemId, bCheckmark ); in statusChanged()
763 pMenu->InsertItem( pMenuItemHandler->nItemId, aTitle ); in UpdateSpecialFileMenu()
764 pMenu->SetTipHelpText( pMenuItemHandler->nItemId, aTipHelpText ); in UpdateSpecialFileMenu()
780 sal_uInt16 nItemId = START_ITEMID_WINDOWLIST; in UpdateSpecialWindowMenu() local
797 nActiveItemId = nItemId; in UpdateSpecialWindowMenu()
803 ++nItemId; in UpdateSpecialWindowMenu()
829 nItemId = START_ITEMID_WINDOWLIST; in UpdateSpecialWindowMenu()
833 pMenu->InsertItem( nItemId, aNewWindowListVector.at( i ), MIB_RADIOCHECK ); in UpdateSpecialWindowMenu()
834 if ( nItemId == nActiveItemId ) in UpdateSpecialWindowMenu()
835 pMenu->CheckItem( nItemId ); in UpdateSpecialWindowMenu()
836 ++nItemId; in UpdateSpecialWindowMenu()
956 if ( pMenuItemHandler->nItemId < START_ITEMID_WINDOWLIST || in IMPL_LINK()
957 pMenuItemHandler->nItemId > END_ITEMID_WINDOWLIST ) in IMPL_LINK()
959 ::rtl::OUString aItemCommand = pMenu->GetItemCommand( pMenuItemHandler->nItemId ); in IMPL_LINK()
964 aItemCommand += ::rtl::OUString::valueOf( (sal_Int32)pMenuItemHandler->nItemId ); in IMPL_LINK()
965 pMenu->SetItemCommand( pMenuItemHandler->nItemId, aItemCommand ); in IMPL_LINK()
985 pMenu->EnableItem( pMenuItemHandler->nItemId, sal_False ); in IMPL_LINK()
1115 sal_uInt16 nItemId = _pMenu->GetItemId( _nIndex ); in FillItemCommand() local
1117 _rItemCommand = _pMenu->GetItemCommand( nItemId ); in FillItemCommand()
1122 _rItemCommand += ::rtl::OUString::valueOf( (sal_Int32)nItemId ); in FillItemCommand()
1123 _pMenu->SetItemCommand( nItemId, _rItemCommand ); in FillItemCommand()
1125 return nItemId; in FillItemCommand()