Lines Matching refs:nNewPos
266 sal_Int32 nNewPos = nPos; in GetNoScrollPos() local
267 if( nNewPos != CSV_POS_INVALID ) in GetNoScrollPos()
269 if( nNewPos < GetFirstVisPos() + CSV_SCROLL_DIST ) in GetNoScrollPos()
272 nNewPos = Max( nPos, GetFirstVisPos() + nScroll ); in GetNoScrollPos()
274 else if( nNewPos > GetLastVisPos() - CSV_SCROLL_DIST - 1L ) in GetNoScrollPos()
277 nNewPos = Min( nNewPos, GetLastVisPos() - nScroll - sal_Int32( 1 ) ); in GetNoScrollPos()
280 return nNewPos; in GetNoScrollPos()
301 void ScCsvRuler::MoveSplit( sal_Int32 nPos, sal_Int32 nNewPos ) in MoveSplit() argument
304 bool bInsert = maSplits.Insert( nNewPos ); in MoveSplit()
308 ImplDrawSplit( nNewPos ); in MoveSplit()
321 sal_Int32 nNewPos = nPos; in FindEmptyPos() local
322 if( nNewPos != CSV_POS_INVALID ) in FindEmptyPos()
327 nNewPos = Min( nPos, FindEmptyPos( 0, MOVE_NEXT ) ); in FindEmptyPos()
330 nNewPos = Max( nPos, FindEmptyPos( GetPosCount(), MOVE_PREV ) ); in FindEmptyPos()
333 while( HasSplit( --nNewPos ) ) ; in FindEmptyPos()
336 while( HasSplit( ++nNewPos ) ) ; in FindEmptyPos()
344 return IsValidSplitPos( nNewPos ) ? nNewPos : CSV_POS_INVALID; in FindEmptyPos()
347 void ScCsvRuler::MoveCurrSplit( sal_Int32 nNewPos ) in MoveCurrSplit() argument
350 Execute( CSVCMD_MOVESPLIT, GetRulerCursorPos(), nNewPos ); in MoveCurrSplit()
351 MoveCursor( nNewPos ); in MoveCurrSplit()
359 sal_Int32 nNewPos = FindEmptyPos( GetRulerCursorPos(), eDir ); in MoveCurrSplitRel() local
360 if( nNewPos != CSV_POS_INVALID ) in MoveCurrSplitRel()
361 MoveCurrSplit( nNewPos ); in MoveCurrSplitRel()