Lines Matching refs:nIndex

111 	sal_uInt16	nIndex = ImplAccelEntryGetIndex( pList, pEntry->mnId, &nInsIndex );  in ImplAccelEntryInsert()  local
113 if ( nIndex != ACCELENTRY_NOTFOUND ) in ImplAccelEntryInsert()
117 nIndex++; in ImplAccelEntryInsert()
118 ImplAccelEntry* pTempEntry = pList->GetObject( nIndex ); in ImplAccelEntryInsert()
122 while ( nIndex < pList->Count() ); in ImplAccelEntryInsert()
124 pList->Insert( pEntry, (sal_uLong)nIndex ); in ImplAccelEntryInsert()
134 sal_uInt16 nIndex = ImplAccelEntryGetIndex( pList, nId ); in ImplAccelEntryGetFirstPos() local
135 if ( nIndex != ACCELENTRY_NOTFOUND ) in ImplAccelEntryGetFirstPos()
137 while ( nIndex ) in ImplAccelEntryGetFirstPos()
139 nIndex--; in ImplAccelEntryGetFirstPos()
140 if ( pList->GetObject( nIndex )->mnId != nId ) in ImplAccelEntryGetFirstPos()
144 if ( pList->GetObject( nIndex )->mnId != nId ) in ImplAccelEntryGetFirstPos()
145 nIndex++; in ImplAccelEntryGetFirstPos()
148 return nIndex; in ImplAccelEntryGetFirstPos()
404 sal_uInt16 nIndex = ImplAccelEntryGetFirstPos( &(mpData->maIdList), nItemId ); in RemoveItem() local
405 if ( nIndex != ACCELENTRY_NOTFOUND ) in RemoveItem()
410 ImplAccelEntry* pEntry = mpData->maIdList.GetObject( (sal_uLong)nIndex ); in RemoveItem()
414 mpData->maIdList.Remove( (sal_uLong)nIndex ); in RemoveItem()
425 while ( nIndex < nItemCount ); in RemoveItem()
439 sal_uInt16 nIndex = ImplAccelEntryGetFirstPos( &(mpData->maIdList), pEntry->mnId ); in RemoveItem() local
443 if ( mpData->maIdList.GetObject( (sal_uLong)nIndex ) == pEntry ) in RemoveItem()
445 nIndex++; in RemoveItem()
447 while ( nIndex < nItemCount ); in RemoveItem()
450 mpData->maIdList.Remove( (sal_uLong)nIndex ); in RemoveItem()
525 sal_uInt16 nIndex = ImplAccelEntryGetFirstPos( &(mpData->maIdList), nItemId ); in GetKeyCode() local
526 if ( nIndex != ACCELENTRY_NOTFOUND ) in GetKeyCode()
527 return mpData->maIdList.GetObject( (sal_uLong)nIndex )->maKeyCode; in GetKeyCode()
538 sal_uInt16 nIndex = ImplAccelEntryGetIndex( &(mpData->maIdList), nItemId ); in IsIdValid() local
539 return (nIndex != ACCELENTRY_NOTFOUND); in IsIdValid()
589 sal_uInt16 nIndex = ImplAccelEntryGetFirstPos( &(mpData->maIdList), nItemId ); in SetAccel() local
590 if ( nIndex != ACCELENTRY_NOTFOUND ) in SetAccel()
595 ImplAccelEntry* pEntry = mpData->maIdList.GetObject( (sal_uLong)nIndex ); in SetAccel()
600 nIndex++; in SetAccel()
602 while ( nIndex < nItemCount ); in SetAccel()
612 sal_uInt16 nIndex = ImplAccelEntryGetIndex( &(mpData->maIdList), nItemId ); in GetAccel() local
613 if ( nIndex != ACCELENTRY_NOTFOUND ) in GetAccel()
614 return mpData->maIdList.GetObject( (sal_uLong)nIndex )->mpAccel; in GetAccel()
649 sal_uInt16 nIndex = ImplAccelEntryGetFirstPos( &(mpData->maIdList), nItemId ); in EnableItem() local
650 if ( nIndex != ACCELENTRY_NOTFOUND ) in EnableItem()
655 ImplAccelEntry* pEntry = mpData->maIdList.GetObject( (sal_uLong)nIndex ); in EnableItem()
660 nIndex++; in EnableItem()
662 while ( nIndex < nItemCount ); in EnableItem()
672 sal_uInt16 nIndex = ImplAccelEntryGetIndex( &(mpData->maIdList), nItemId ); in IsItemEnabled() local
673 if ( nIndex != ACCELENTRY_NOTFOUND ) in IsItemEnabled()
674 return mpData->maIdList.GetObject( (sal_uLong)nIndex )->mbEnabled; in IsItemEnabled()