Lines Matching refs:nCurX
635 void ScTabView::AlignToCursor( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, in AlignToCursor() argument
648 if (eActiveX == SC_SPLIT_LEFT && nCurX >= (SCsCOL)aViewData.GetFixPosX()) in AlignToCursor()
681 if ( nCurX >= 0 && nCurY >= 0 ) in AlignToCursor()
682 aViewData.GetMergeSizePixel( (SCCOL)nCurX, (SCROW)nCurY, nCellSizeX, nCellSizeY ); in AlignToCursor()
716 if ( nCurX < nDeltaX || nCurX >= nDeltaX+nSizeX || in AlignToCursor()
722 Point aStart = aViewData.GetScrPos( nCurX, nCurY, eAlign ); in AlignToCursor()
724 aViewData.GetMergeSizePixel( nCurX, nCurY, nCSX, nCSY ); in AlignToCursor()
770 if ( nCurX < nDeltaX || nCurX >= nDeltaX+nSizeX ) in AlignToCursor()
772 …nNewDeltaX = nCurX - static_cast<SCsCOL>(aViewData.CellsAtX( nCurX, -1, eAlignX, static_cast<sal_u… in AlignToCursor()
790 if ( nCurX < nDeltaX || nCurX >= nDeltaX+nSizeX ) in AlignToCursor()
792 nNewDeltaX = nDeltaX + nCurX - aViewData.GetCurX(); in AlignToCursor()
805 if ( nCurX < nNewDeltaX || nCurX >= nNewDeltaX+nSizeX ) in AlignToCursor()
807 nNewDeltaX = nCurX - (nSizeX / 2); in AlignToCursor()
830 while ( nCurX >= nNewDeltaX+nSizeX ) in AlignToCursor()
832 nNewDeltaX = nCurX-nSizeX+1; in AlignToCursor()
848 if ( nCurX < nNewDeltaX ) nNewDeltaX = nCurX; in AlignToCursor()
871 if (eActiveX == SC_SPLIT_RIGHT && nCurX < (SCsCOL)aViewData.GetFixPosX()) in AlignToCursor()
908 void ScTabView::MoveCursorAbs( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, in MoveCursorAbs() argument
916 aViewData.GetViewShell()->SetForceFocusOnCurCell( !ValidColRow(nCurX, nCurY) ); in MoveCursorAbs()
918 if (nCurX < 0) nCurX = 0; in MoveCursorAbs()
920 if (nCurX > MAXCOL) nCurX = MAXCOL; in MoveCursorAbs()
934 AlignToCursor( nCurX, nCurY, eMode ); in MoveCursorAbs()
938 SetCursor( nCurX, nCurY ); // Markierung stehenlassen in MoveCursorAbs()
941 sal_Bool bSame = ( nCurX == aViewData.GetCurX() && nCurY == aViewData.GetCurY() ); in MoveCursorAbs()
945 aFunctionSet.SetCursorAtCell( nCurX, nCurY, sal_False ); in MoveCursorAbs()
975 SCsCOL nCurX; in MoveCursorRel() local
981 nCurX = nOldX + nMovX; in MoveCursorRel()
988 nCurX = (nMovX != 0) ? nOldX+nMovX : (SCsCOL) aViewData.GetOldCurX(); in MoveCursorRel()
995 if (nMovX != 0 && VALIDCOLROW(nCurX,nCurY)) in MoveCursorRel()
1001 … bSkipCell = pDoc->ColHidden(nCurX, nTab, nLastCol) || pDoc->IsHorOverlapped( nCurX, nCurY, nTab ); in MoveCursorRel()
1003 … bSkipCell = pDoc->HasAttrib(nCurX, nCurY, nTab, nCurX, nCurY, nTab, HASATTR_PROTECTED); in MoveCursorRel()
1005 … bSkipCell = !pDoc->HasAttrib(nCurX, nCurY, nTab, nCurX, nCurY, nTab, HASATTR_PROTECTED); in MoveCursorRel()
1009 if ( nCurX<=0 || nCurX>=MAXCOL ) in MoveCursorRel()
1013 nCurX = nOldX; in MoveCursorRel()
1019 if (nMovX > 0) ++nCurX; else --nCurX; // zuruecknehmen in MoveCursorRel()
1024 if (nMovX > 0) ++nCurX; else --nCurX; in MoveCursorRel()
1029 if (pDoc->IsVerOverlapped( nCurX, nCurY, nTab )) in MoveCursorRel()
1031 aViewData.SetOldCursor( nCurX,nCurY ); in MoveCursorRel()
1032 while (pDoc->IsVerOverlapped( nCurX, nCurY, nTab )) in MoveCursorRel()
1037 if (nMovY != 0 && VALIDCOLROW(nCurX,nCurY)) in MoveCursorRel()
1043 … bSkipCell = pDoc->RowHidden(nCurY, nTab, nLastRow) || pDoc->IsVerOverlapped( nCurX, nCurY, nTab ); in MoveCursorRel()
1045 … bSkipCell = pDoc->HasAttrib(nCurX, nCurY, nTab, nCurX, nCurY, nTab, HASATTR_PROTECTED); in MoveCursorRel()
1047 … bSkipCell = !pDoc->HasAttrib(nCurX, nCurY, nTab, nCurX, nCurY, nTab, HASATTR_PROTECTED); in MoveCursorRel()
1071 if (pDoc->IsHorOverlapped( nCurX, nCurY, nTab )) in MoveCursorRel()
1073 aViewData.SetOldCursor( nCurX,nCurY ); in MoveCursorRel()
1074 while (pDoc->IsHorOverlapped( nCurX, nCurY, nTab )) in MoveCursorRel()
1075 --nCurX; in MoveCursorRel()
1079 MoveCursorAbs( nCurX, nCurY, eMode, bShift, sal_False, sal_True, bKeepSel ); in MoveCursorRel()
1084 SCCOL nCurX; in MoveCursorPage() local
1086 aViewData.GetMoveCursor( nCurX,nCurY ); in MoveCursorPage()
1095 nPageX = ((SCsCOL) aViewData.CellsAtX( nCurX, 1, eWhichX )) * nMovX; in MoveCursorPage()
1097 nPageX = ((SCsCOL) aViewData.CellsAtX( nCurX, -1, eWhichX )) * nMovX; in MoveCursorPage()
1112 SCCOL nCurX; in MoveCursorArea() local
1114 aViewData.GetMoveCursor( nCurX,nCurY ); in MoveCursorArea()
1115 SCCOL nNewX = nCurX; in MoveCursorArea()
1145 …MoveCursorRel( ((SCsCOL)nNewX)-(SCsCOL)nCurX, ((SCsROW)nNewY)-(SCsROW)nCurY, eMode, bShift, bKeepS… in MoveCursorArea()
1153 SCCOL nCurX; in MoveCursorEnd() local
1155 aViewData.GetMoveCursor( nCurX,nCurY ); in MoveCursorEnd()
1156 SCCOL nNewX = nCurX; in MoveCursorEnd()
1175 …MoveCursorRel( ((SCsCOL)nNewX)-(SCsCOL)nCurX, ((SCsROW)nNewY)-(SCsROW)nCurY, eMode, bShift, bKeepS… in MoveCursorEnd()
1183 SCCOL nCurX; in MoveCursorScreen() local
1185 aViewData.GetMoveCursor( nCurX,nCurY ); in MoveCursorScreen()
1186 SCCOL nNewX = nCurX; in MoveCursorScreen()
1251 SCCOL nCurX; in MoveCursorEnter() local
1253 aViewData.GetMoveCursor( nCurX,nCurY ); in MoveCursorEnter()
1254 SCCOL nNewX = nCurX; in MoveCursorEnter()
1261 MoveCursorRel( ((SCsCOL)nNewX)-(SCsCOL)nCurX, ((SCsROW)nNewY)-(SCsROW)nCurY, in MoveCursorEnter()
1265 if ( nNewX == nCurX && nNewY == nCurY ) in MoveCursorEnter()
1276 SCCOL nCurX; in MoveCursorEnter() local
1278 aViewData.GetMoveCursor( nCurX,nCurY ); in MoveCursorEnter()
1279 nMoveX = ((SCsCOL)nTabCol)-(SCsCOL)nCurX; in MoveCursorEnter()
1371 SCCOL nCurX; in FindNextUnprot() local
1373 aViewData.GetMoveCursor( nCurX,nCurY ); in FindNextUnprot()
1374 SCCOL nNewX = nCurX; in FindNextUnprot()
1383 nTabCol = nCurX; // auf diese Spalte zurueck bei Enter in FindNextUnprot()
1385 MoveCursorRel( ((SCsCOL)nNewX)-(SCsCOL)nCurX, ((SCsROW)nNewY)-(SCsROW)nCurY, in FindNextUnprot()
1520 SCCOL nCurX; in Unmark() local
1522 aViewData.GetMoveCursor( nCurX,nCurY ); in Unmark()
1523 MoveCursorAbs( nCurX, nCurY, SC_FOLLOW_NONE, sal_False, sal_False ); in Unmark()