Lines Matching refs:nPosX
88 SCsCOL nPosX; in BeginDrag() local
93 pViewData->GetPosFromPixel( aMPos.X(), aMPos.Y(), GetWhich(), nPosX, nPosY ); in BeginDrag()
97 nPosX = pViewData->GetCurX(); in BeginDrag()
134 SCCOL nHandleX = (nPosX >= (SCsCOL) nStartX) ? nPosX - nStartX : 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()
260 SCsCOL nPosX; 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()
274 do --nPosX; while ( nPosX>=0 && pDoc->ColHidden( nPosX, nTab ) ); 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()
394 if ( nPosX+1 >= (SCsCOL) nStartX && nPosX <= (SCsCOL) nEndX && in SetCursorAtCell()
396 ( nPosX != nEndX || nPosY != nEndY ) ) // verkleinern ? in SetCursorAtCell()
401 for (SCCOL i=nPosX+1; i<=nEndX; i++) in SetCursorAtCell()
408 nDelStartX = nPosX + 1; in SetCursorAtCell()
444 nPosX = nEndX; // roten Rahmen um ganzen Bereich lassen in SetCursorAtCell()
468 sal_Bool bNegX = ( nPosX < (SCsCOL) nStartX ); in SetCursorAtCell()
476 do ++nPosX; while ( nPosX<nStartX && pDoc->ColHidden(nPosX, nTab) ); in SetCursorAtCell()
477 for (SCCOL i=nPosX; i<nStartX; i++) in SetCursorAtCell()
481 for (SCCOL i=nEndX+1; i<=nPosX; i++) in SetCursorAtCell()
507 nPosX = nEndX; in SetCursorAtCell()
520 pView->UpdateRef( nPosX, nPosY, nTab ); in SetCursorAtCell()
540 pView->UpdateRef( nPosX, nPosY, nTab ); in SetCursorAtCell()
555 if ( nPosX < nStartX ) nPosX = nStartX; in SetCursorAtCell()
558 pView->UpdateRef( nPosX, nPosY, nTab ); in SetCursorAtCell()
564 sal_Bool bHideCur = bAnchor && ( (SCCOL)nPosX != pViewData->GetCurX() || in SetCursorAtCell()
573 sal_Bool bMove = ( nPosX != (SCsCOL) aAnchorPos.Col() || 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()
645 SCsCOL nPosX; 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()
806 SCsCOL nPosX; in SetCursorAtPoint() local
809 nPosX, nPosY, sal_False ); in SetCursorAtPoint()
812 nCursorPos = static_cast<SCCOLROW>(nPosX); in SetCursorAtPoint()
818 nPosX = pViewData->GetPosX(WhichH(pViewData->GetActivePart())); in SetCursorAtPoint()
822 sal_Bool bHide = pViewData->GetCurX() != nPosX || 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()
853 SCsCOL nPosX; in IsSelectionAtPoint() local
856 nPosX, nPosY, sal_False ); in IsSelectionAtPoint()
860 return rMark.IsColumnMarked( nPosX ); in IsSelectionAtPoint()