Lines Matching refs:nPos

177 sal_Int32 ScCsvGrid::GetNoScrollCol( sal_Int32 nPos ) const  in GetNoScrollCol()
179 sal_Int32 nNewPos = nPos; in GetNoScrollCol()
264 void ScCsvGrid::InsertSplit( sal_Int32 nPos ) in InsertSplit() argument
266 if( ImplInsertSplit( nPos ) ) in InsertSplit()
271 sal_uInt32 nColIx = GetColumnFromPos( nPos ); in InsertSplit()
279 void ScCsvGrid::RemoveSplit( sal_Int32 nPos ) in RemoveSplit() argument
281 if( ImplRemoveSplit( nPos ) ) in RemoveSplit()
286 ImplDrawColumn( GetColumnFromPos( nPos ) ); in RemoveSplit()
292 void ScCsvGrid::MoveSplit( sal_Int32 nPos, sal_Int32 nNewPos ) in MoveSplit() argument
294 sal_uInt32 nColIx = GetColumnFromPos( nPos ); in MoveSplit()
301 maSplits.Remove( nPos ); in MoveSplit()
311 ImplRemoveSplit( nPos ); in MoveSplit()
343 bool ScCsvGrid::ImplInsertSplit( sal_Int32 nPos ) in ImplInsertSplit() argument
345 sal_uInt32 nColIx = GetColumnFromPos( nPos ); in ImplInsertSplit()
346 bool bRet = (nColIx < GetColumnCount()) && maSplits.Insert( nPos ); in ImplInsertSplit()
358 bool ScCsvGrid::ImplRemoveSplit( sal_Int32 nPos ) in ImplRemoveSplit() argument
360 bool bRet = maSplits.Remove( nPos ); in ImplRemoveSplit()
363 sal_uInt32 nColIx = GetColumnFromPos( nPos ); in ImplRemoveSplit()
415 sal_Int32 nPos = (nX - GetFirstX()) / GetCharWidth() + GetFirstVisPos(); in GetColumnFromX() local
416 return ((GetFirstVisPos() <= nPos) && (nPos <= GetLastVisPos())) ? in GetColumnFromX()
417 GetColumnFromPos( nPos ) : CSV_COLUMN_INVALID; in GetColumnFromX()
420 sal_uInt32 ScCsvGrid::GetColumnFromPos( sal_Int32 nPos ) const in GetColumnFromPos()
422 return maSplits.UpperBound( nPos ); in GetColumnFromPos()
747 sal_Int32 nPos = maSplits[ nSplitIx ]; in ImplSetTextLineSep() local
748 maSplits.Remove( nPos ); in ImplSetTextLineSep()
749 maSplits.Insert( nPos + nDiff ); in ImplSetTextLineSep()
866 … sal_Int32 nPos = (rMEvt.GetPosPixel().X() - GetFirstX()) / GetCharWidth() + GetFirstVisPos(); in Tracking() local
868 nPos = Max( Min( nPos, GetPosCount() - sal_Int32( 1 ) ), sal_Int32( 0 ) ); in Tracking()
869 Execute( CSVCMD_MAKEPOSVISIBLE, nPos ); in Tracking()
871 sal_uInt32 nColIx = GetColumnFromPos( nPos ); in Tracking()
1263 sal_Int32 nPos = GetFirstVisPos(); in ImplDrawHorzScrolled() local
1264 if( !IsValidGfx() || (nPos == nOldPos) ) in ImplDrawHorzScrolled()
1266 if( Abs( nPos - nOldPos ) > GetVisPosCount() / 2 ) in ImplDrawHorzScrolled()
1275 if( nPos < nOldPos ) in ImplDrawHorzScrolled()
1278 aDest = Point( GetFirstX() + GetCharWidth() * (nOldPos - nPos) + 1, 0 ); in ImplDrawHorzScrolled()
1279 nFirstColIx = GetColumnFromPos( nPos ); in ImplDrawHorzScrolled()
1284 aSrc = Point( GetFirstX() + GetCharWidth() * (nPos - nOldPos) + 1, 0 ); in ImplDrawHorzScrolled()
1287 nLastColIx = GetColumnFromPos( Min( nPos + GetVisPosCount(), GetPosCount() ) - 1 ); in ImplDrawHorzScrolled()
1290 ImplInvertCursor( GetRulerCursorPos() + (nPos - nOldPos) ); in ImplDrawHorzScrolled()
1317 void ScCsvGrid::ImplInvertCursor( sal_Int32 nPos ) in ImplInvertCursor() argument
1319 if( IsVisibleSplitPos( nPos ) ) in ImplInvertCursor()
1321 sal_Int32 nX = GetX( nPos ) - 1; in ImplInvertCursor()