Lines Matching refs:nPos

150 void PolyPolygon::Insert( const Polygon& rPoly, sal_uInt16 nPos )  in Insert()  argument
163 if ( nPos > mpImplPolyPolygon->mnCount ) in Insert()
164 nPos = mpImplPolyPolygon->mnCount; in Insert()
177 memcpy( pNewAry, mpImplPolyPolygon->mpPolyAry, nPos*sizeof(SVPPOLYGON) ); in Insert()
178 memcpy( pNewAry+nPos+1, mpImplPolyPolygon->mpPolyAry+nPos, in Insert()
179 (nOldSize-nPos)*sizeof(SVPPOLYGON) ); in Insert()
184 else if ( nPos < mpImplPolyPolygon->mnCount ) in Insert()
186 memmove( mpImplPolyPolygon->mpPolyAry+nPos+1, in Insert()
187 mpImplPolyPolygon->mpPolyAry+nPos, in Insert()
188 (mpImplPolyPolygon->mnCount-nPos)*sizeof(SVPPOLYGON) ); in Insert()
191 mpImplPolyPolygon->mpPolyAry[nPos] = new Polygon( rPoly ); in Insert()
197 void PolyPolygon::Remove( sal_uInt16 nPos ) in Remove() argument
200 DBG_ASSERT( nPos < Count(), "PolyPolygon::Remove(): nPos >= nSize" ); in Remove()
201 if ( nPos >= Count() ) return; // not removable in Remove()
209 delete mpImplPolyPolygon->mpPolyAry[nPos]; in Remove()
211 memmove( mpImplPolyPolygon->mpPolyAry+nPos, in Remove()
212 mpImplPolyPolygon->mpPolyAry+nPos+1, in Remove()
213 (mpImplPolyPolygon->mnCount-nPos)*sizeof(SVPPOLYGON) ); in Remove()
218 void PolyPolygon::Replace( const Polygon& rPoly, sal_uInt16 nPos ) in Replace() argument
221 DBG_ASSERT( nPos < Count(), "PolyPolygon::Replace(): nPos >= nSize" ); in Replace()
222 if ( nPos >= Count() ) return; // not replaceable in Replace()
230 delete mpImplPolyPolygon->mpPolyAry[nPos]; in Replace()
231 mpImplPolyPolygon->mpPolyAry[nPos] = new Polygon( rPoly ); in Replace()
236 const Polygon& PolyPolygon::GetObject( sal_uInt16 nPos ) const in GetObject()
239 DBG_ASSERT( nPos < Count(), "PolyPolygon::GetObject(): nPos >= nSize" ); in GetObject()
241 return *(mpImplPolyPolygon->mpPolyAry[nPos]); in GetObject()
675 Polygon& PolyPolygon::operator[]( sal_uInt16 nPos ) in operator []() argument
678 DBG_ASSERT( nPos < Count(), "PolyPolygon::[](): nPos >= nSize" ); in operator []()
686 return *(mpImplPolyPolygon->mpPolyAry[nPos]); in operator []()