Lines Matching refs:nNewDeltaX

763 		SCsCOL nNewDeltaX = nDeltaX;  in AlignToCursor()  local
772nNewDeltaX = nCurX - static_cast<SCsCOL>(aViewData.CellsAtX( nCurX, -1, eAlignX, static_cast<sal_u… in AlignToCursor()
773 if (nNewDeltaX < 0) nNewDeltaX = 0; in AlignToCursor()
774 nSizeX = (SCsCOL) aViewData.CellsAtX( nNewDeltaX, 1, eAlignX ); in AlignToCursor()
792 nNewDeltaX = nDeltaX + nCurX - aViewData.GetCurX(); in AlignToCursor()
793 if (nNewDeltaX < 0) nNewDeltaX = 0; in AlignToCursor()
794 nSizeX = (SCsCOL) aViewData.CellsAtX( nNewDeltaX, 1, eAlignX ); in AlignToCursor()
805 if ( nCurX < nNewDeltaX || nCurX >= nNewDeltaX+nSizeX ) in AlignToCursor()
807 nNewDeltaX = nCurX - (nSizeX / 2); in AlignToCursor()
808 if (nNewDeltaX < 0) nNewDeltaX = 0; in AlignToCursor()
809 nSizeX = (SCsCOL) aViewData.CellsAtX( nNewDeltaX, 1, eAlignX ); in AlignToCursor()
830 while ( nCurX >= nNewDeltaX+nSizeX ) in AlignToCursor()
832 nNewDeltaX = nCurX-nSizeX+1; in AlignToCursor()
835 while ( nNewDeltaX < MAXCOL && !pDoc->GetColWidth( nNewDeltaX, nTab ) ) in AlignToCursor()
836 ++nNewDeltaX; in AlignToCursor()
837 nSizeX = (SCsCOL) aViewData.CellsAtX( nNewDeltaX, 1, eAlignX ); in AlignToCursor()
848 if ( nCurX < nNewDeltaX ) nNewDeltaX = nCurX; in AlignToCursor()
852 if ( nNewDeltaX != nDeltaX ) in AlignToCursor()
853 nSizeX = (SCsCOL) aViewData.CellsAtX( nNewDeltaX, 1, eAlignX ); in AlignToCursor()
854 if (nNewDeltaX+nSizeX-1 > MAXCOL) nNewDeltaX = MAXCOL-nSizeX+1; in AlignToCursor()
855 if (nNewDeltaX < 0) nNewDeltaX = 0; in AlignToCursor()
862 if ( nNewDeltaX != nDeltaX ) ScrollX( nNewDeltaX - nDeltaX, eAlignX ); in AlignToCursor()