Lines Matching refs:nPosY
89 SCsROW nPosY; in BeginDrag() local
93 pViewData->GetPosFromPixel( aMPos.X(), aMPos.Y(), GetWhich(), nPosX, nPosY ); in BeginDrag()
98 nPosY = pViewData->GetCurY(); in BeginDrag()
135 SCROW nHandleY = (nPosY >= (SCsROW) nStartY) ? nPosY - nStartY : 0; in BeginDrag()
171 void ScViewFunctionSet::SetAnchor( SCCOL nPosX, SCROW nPosY ) in SetAnchor() argument
180 aAnchorPos.Set( nPosX, nPosY, nTab ); in SetAnchor()
187 aAnchorPos.Set( nPosX, nPosY, nTab ); in SetAnchor()
193 if ( bStarted && pView->IsMarking( nPosX, nPosY, nTab ) ) in SetAnchor()
200 aAnchorPos.Set( nPosX, nPosY, nTab ); in SetAnchor()
261 SCsROW nPosY; in SetCursorAtPoint() local
263 nPosX, nPosY, sal_True, sal_True ); // mit Repair in SetCursorAtPoint()
270 pViewData->GetMouseQuadrant( aEffPos, GetWhich(), nPosX, nPosY, bLeft, bTop ); in SetCursorAtPoint()
277 if (--nPosY >= 0) in SetCursorAtPoint()
279 nPosY = pDoc->LastVisibleRow(0, nPosY, nTab); in SetCursorAtPoint()
280 if (!ValidRow(nPosY)) in SetCursorAtPoint()
281 nPosY = -1; in SetCursorAtPoint()
312 return SetCursorAtCell( nPosX, nPosY, bScroll ); in SetCursorAtPoint()
315 sal_Bool ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, sal_Bool bScroll ) in SetCursorAtCell() argument
323 if (nPosX < 0 || nPosY < 0) in SetCursorAtCell()
333 … bool bCellProtected = pDoc->HasAttrib(nPosX, nPosY, nTab, nPosX, nPosY, nTab, HASATTR_PROTECTED); in SetCursorAtCell()
344 ( nPosX != (SCsCOL) pViewData->GetCurX() || nPosY != (SCsROW) pViewData->GetCurY() ); in SetCursorAtCell()
354 pView->AlignToCursor( nPosX, nPosY, SC_FOLLOW_LINE, &eWhich ); in SetCursorAtCell()
357 pView->AlignToCursor( nPosX, nPosY, SC_FOLLOW_LINE ); in SetCursorAtCell()
368 pView->InitRefMode( nPosX, nPosY, pViewData->GetTabNo(), SC_REFTYPE_REF ); in SetCursorAtCell()
371 pView->UpdateRef( nPosX, nPosY, pViewData->GetTabNo() ); in SetCursorAtCell()
395 nPosY+1 >= (SCsROW) nStartY && nPosY <= (SCsROW) nEndY && in SetCursorAtCell()
396 ( nPosX != nEndX || nPosY != nEndY ) ) // verkleinern ? in SetCursorAtCell()
403 long nSizeY = (long) pDoc->GetRowHeight( nPosY+1, nEndY, nTab ); in SetCursorAtCell()
410 nDelStartY = nPosY + 1; in SetCursorAtCell()
445 nPosY = nEndY; in SetCursorAtCell()
469 sal_Bool bNegY = ( nPosY < (SCsROW) nStartY ); in SetCursorAtCell()
489 if (++nPosY < nStartY) in SetCursorAtCell()
491 nPosY = pDoc->FirstVisibleRow(nPosY, nStartY-1, nTab); in SetCursorAtCell()
492 if (!ValidRow(nPosY)) in SetCursorAtCell()
493 nPosY = nStartY; in SetCursorAtCell()
495 nSizeY += pDoc->GetRowHeight( nPosY, nStartY-1, nTab ); in SetCursorAtCell()
498 nSizeY += pDoc->GetRowHeight( nEndY+1, nPosY, nTab ); in SetCursorAtCell()
502 nPosY = nEndY; in SetCursorAtCell()
520 pView->UpdateRef( nPosX, nPosY, nTab ); in SetCursorAtCell()
540 pView->UpdateRef( nPosX, nPosY, nTab ); in SetCursorAtCell()
556 if ( nPosY < nStartY ) nPosY = nStartY; in SetCursorAtCell()
558 pView->UpdateRef( nPosX, nPosY, nTab ); in SetCursorAtCell()
565 (SCROW)nPosY != pViewData->GetCurY() ); in SetCursorAtCell()
574 nPosY != (SCsROW) aAnchorPos.Row() ); in SetCursorAtCell()
583 pView->MarkCursor( (SCCOL) nPosX, (SCROW) nPosY, nTab, sal_False, sal_False, sal_True ); in SetCursorAtCell()
591 pView->InitBlockMode( nPosX, nPosY, nTab, sal_True ); in SetCursorAtCell()
592 pView->MarkCursor( (SCCOL) nPosX, (SCROW) nPosY, nTab ); in SetCursorAtCell()
594 aAnchorPos.Set( nPosX, nPosY, nTab ); in SetCursorAtCell()
609 if ( nOldX != nPosX || nOldY != nPosY ) in SetCursorAtCell()
612 pView->InitBlockMode( nPosX, nPosY, nTab, sal_True ); in SetCursorAtCell()
613 pView->MarkCursor( (SCCOL) nPosX, (SCROW) nPosY, nTab ); in SetCursorAtCell()
614 aAnchorPos.Set( nPosX, nPosY, nTab ); in SetCursorAtCell()
621 pView->SetCursor( (SCCOL) nPosX, (SCROW) nPosY ); in SetCursorAtCell()
622 pViewData->SetRefStart( nPosX, nPosY, nTab ); in SetCursorAtCell()
646 SCsROW nPosY; in IsSelectionAtPoint() local
647 pViewData->GetPosFromPixel( rPointPixel.X(), rPointPixel.Y(), GetWhich(), nPosX, nPosY ); in IsSelectionAtPoint()
648 return pViewData->GetMarkData().IsCellMarked( (SCCOL) nPosX, (SCROW) nPosY ); in IsSelectionAtPoint()
807 SCsROW nPosY; in SetCursorAtPoint() local
809 nPosX, nPosY, sal_False ); in SetCursorAtPoint()
813 nPosY = pViewData->GetPosY(WhichV(pViewData->GetActivePart())); in SetCursorAtPoint()
817 nCursorPos = static_cast<SCCOLROW>(nPosY); in SetCursorAtPoint()
823 pViewData->GetCurY() != nPosY; in SetCursorAtPoint()
828 pView->AlignToCursor( nPosX, nPosY, SC_FOLLOW_LINE ); in SetCursorAtPoint()
829 pView->SetCursor( nPosX, nPosY ); in SetCursorAtPoint()
835 pView->InitBlockMode( nPosX, nPosY, pViewData->GetTabNo(), sal_True, bColumn, !bColumn ); in SetCursorAtPoint()
840 pView->MarkCursor( nPosX, nPosY, pViewData->GetTabNo(), bColumn, !bColumn ); in SetCursorAtPoint()
854 SCsROW nPosY; in IsSelectionAtPoint() local
856 nPosX, nPosY, sal_False ); in IsSelectionAtPoint()
862 return rMark.IsRowMarked( nPosY ); in IsSelectionAtPoint()