Lines Matching refs:nIdx
146 SbxVariableRef& SbxArray::GetRef32( sal_uInt32 nIdx ) in GetRef32() argument
149 DBG_ASSERT( nIdx <= SBX_MAXINDEX32, "SBX: Array-Index > SBX_MAXINDEX32" ); in GetRef32()
151 if( nIdx > SBX_MAXINDEX32 ) in GetRef32()
154 nIdx = 0; in GetRef32()
156 while( pData->size() <= nIdx ) in GetRef32()
161 return *((*pData)[nIdx]); in GetRef32()
164 SbxVariableRef& SbxArray::GetRef( sal_uInt16 nIdx ) in GetRef() argument
167 DBG_ASSERT( nIdx <= SBX_MAXINDEX, "SBX: Array-Index > SBX_MAXINDEX" ); in GetRef()
169 if( nIdx > SBX_MAXINDEX ) in GetRef()
172 nIdx = 0; in GetRef()
174 while( pData->size() <= nIdx ) in GetRef()
179 return *((*pData)[nIdx]); in GetRef()
182 SbxVariable* SbxArray::Get32( sal_uInt32 nIdx ) in Get32() argument
189 SbxVariableRef& rRef = GetRef32( nIdx ); in Get32()
201 SbxVariable* SbxArray::Get( sal_uInt16 nIdx ) in Get() argument
208 SbxVariableRef& rRef = GetRef( nIdx ); in Get()
220 void SbxArray::Put32( SbxVariable* pVar, sal_uInt32 nIdx ) in Put32() argument
231 SbxVariableRef& rRef = GetRef32( nIdx ); in Put32()
240 void SbxArray::Put( SbxVariable* pVar, sal_uInt16 nIdx ) in Put() argument
251 SbxVariableRef& rRef = GetRef( nIdx ); in Put()
260 const XubString& SbxArray::GetAlias( sal_uInt16 nIdx ) in GetAlias() argument
267 SbxVarEntry& rRef = (SbxVarEntry&) GetRef( nIdx ); in GetAlias()
279 void SbxArray::PutAlias( const XubString& rAlias, sal_uInt16 nIdx ) in PutAlias() argument
285 SbxVarEntry& rRef = (SbxVarEntry&) GetRef( nIdx ); in PutAlias()
293 void SbxArray::Insert32( SbxVariable* pVar, sal_uInt32 nIdx ) in Insert32() argument
301 if( nIdx > nSize ) in Insert32()
302 nIdx = nSize; in Insert32()
305 if( nIdx == nSize ) in Insert32()
311 pData->insert( pData->begin() + nIdx, p ); in Insert32()
316 void SbxArray::Insert( SbxVariable* pVar, sal_uInt16 nIdx ) in Insert() argument
321 Insert32( pVar, nIdx ); in Insert()
324 void SbxArray::Remove32( sal_uInt32 nIdx ) in Remove32() argument
326 if( nIdx < pData->size() ) in Remove32()
328 SbxVariableRef* pRef = (*pData)[nIdx]; in Remove32()
329 pData->erase( pData->begin() + nIdx ); in Remove32()
335 void SbxArray::Remove( sal_uInt16 nIdx ) in Remove() argument
337 if( nIdx < pData->size() ) in Remove()
339 SbxVariableRef* pRef = (*pData)[nIdx]; in Remove()
340 pData->erase( pData->begin() + nIdx ); in Remove()
521 sal_uInt16 nIdx; in LoadData() local
522 rStrm >> nIdx; in LoadData()
526 SbxVariableRef& rRef = GetRef( nIdx ); in LoadData()
568 void SbxArray::PutDirect( SbxVariable* pVar, sal_uInt32 nIdx ) in PutDirect() argument
570 SbxVariableRef& rRef = GetRef32( nIdx ); in PutDirect()
714 sal_Int32 nIdx = *pIdx++; in Offset32() local
715 if( nIdx < p->nLbound || nIdx > p->nUbound ) in Offset32()
719 nPos = nPos * p->nSize + nIdx - p->nLbound; in Offset32()
733 short nIdx = *pIdx++; in Offset() local
734 if( nIdx < p->nLbound || nIdx > p->nUbound ) in Offset()
738 nPos = nPos * p->nSize + nIdx - p->nLbound; in Offset()
790 sal_Int32 nIdx = pPar->Get( nOff++ )->GetLong(); in Offset32() local
791 if( nIdx < p->nLbound || nIdx > p->nUbound ) in Offset32()
795 nPos = nPos * p->nSize + nIdx - p->nLbound; in Offset32()