Lines Matching refs:rDrag
133 …athDragData(const SdrPathObj& rPO, const SdrHdl& rHdl, sal_Bool bMuPoDr, const SdrDragStat& rDrag);
138 …PathDragData(const SdrPathObj& rPO, const SdrHdl& rHdl, sal_Bool bMuPoDr, const SdrDragStat& rDrag) in ImpSdrPathDragData() argument
146 const SdrMarkView& rMarkView = *rDrag.GetView(); in ImpSdrPathDragData()
519 bool beginPathDrag( SdrDragStat& rDrag ) const;
520 bool movePathDrag( SdrDragStat& rDrag ) const;
521 bool endPathDrag( SdrDragStat& rDrag );
523 String getSpecialDragComment(const SdrDragStat& rDrag) const;
524 basegfx::B2DPolyPolygon getSpecialDragPoly(const SdrDragStat& rDrag) const;
541 basegfx::B2DPolyPolygon TakeObjectPolyPolygon(const SdrDragStat& rDrag) const;
542 basegfx::B2DPolyPolygon TakeDragPolyPolygon(const SdrDragStat& rDrag) const;
563 bool ImpPathForDragAndCreate::beginPathDrag( SdrDragStat& rDrag ) const in beginPathDrag()
565 const SdrHdl* pHdl=rDrag.GetHdl(); in beginPathDrag()
576 const SdrMarkView& rMarkView = *rDrag.GetView(); in beginPathDrag()
596 …te*)this)->mpSdrPathDragData = new ImpSdrPathDragData(mrSdrPathObject,*pHdl,bMultiPointDrag,rDrag); in beginPathDrag()
609 bool ImpPathForDragAndCreate::movePathDrag( SdrDragStat& rDrag ) const in movePathDrag()
619 Point aDelta(rDrag.GetNow() - rDrag.GetStart()); in movePathDrag()
685 if (!bControl && rDrag.GetView()!=NULL && rDrag.GetView()->IsOrtho()) { in movePathDrag()
686 FASTBOOL bBigOrtho=rDrag.GetView()->IsBigOrtho(); in movePathDrag()
687 Point aPos(rDrag.GetNow()); // die aktuelle Position in movePathDrag()
752 if (bPnt1) rDrag.Now()=aNeuPos1; in movePathDrag()
753 if (bPnt2) rDrag.Now()=aNeuPos2; in movePathDrag()
755 rDrag.SetActionRect(Rectangle(rDrag.GetNow(),rDrag.GetNow())); in movePathDrag()
759 if (!bControl && rDrag.GetView()!=NULL && rDrag.GetView()->IsEliminatePolyPoints() && in movePathDrag()
763 aPt-=rDrag.GetNow(); in movePathDrag()
765 aPt=rDrag.GetNow(); in movePathDrag()
770 mpSdrPathDragData->bEliminate=nDiff<=rDrag.GetView()->GetEliminatePolyPointLimitAngle(); in movePathDrag()
775 rDrag.Now()=aPt; in movePathDrag()
780 Point aDiff(rDrag.GetNow()); aDiff-=mpSdrPathDragData->aXP[nPnt]; in movePathDrag()
845 bool ImpPathForDragAndCreate::endPathDrag(SdrDragStat& rDrag) in endPathDrag() argument
868 const SdrHdl* pHdl=rDrag.GetHdl(); in endPathDrag()
888 …if(PolyPolygonEditor::GetRelativePolyPoint(aTempPolyPolygon, rDrag.GetHdl()->GetSourceHdlNum(), nP… in endPathDrag()
944 String ImpPathForDragAndCreate::getSpecialDragComment(const SdrDragStat& rDrag) const in getSpecialDragComment()
947 const SdrHdl* pHdl = rDrag.GetHdl(); in getSpecialDragComment()
948 … const bool bCreateComment(rDrag.GetView() && &mrSdrPathObject == rDrag.GetView()->GetCreateObj()); in getSpecialDragComment()
950 if(bCreateComment && rDrag.GetUser()) in getSpecialDragComment()
953 ImpPathCreateUser* pU = (ImpPathCreateUser*)rDrag.GetUser(); in getSpecialDragComment()
959 Point aPrev(rDrag.GetPrev()); in getSpecialDragComment()
960 Point aNow(rDrag.GetNow()); in getSpecialDragComment()
1017 pDragData = (ImpSdrPathDragData*)rDrag.GetUser(); in getSpecialDragComment()
1044 Point aBeg(rDrag.GetStart()); in getSpecialDragComment()
1045 Point aNow(rDrag.GetNow()); in getSpecialDragComment()
1059 const XPolygon& rXPoly = aPathPolygon[(sal_uInt16)rDrag.GetHdl()->GetPolyNum()]; in getSpecialDragComment()
1163 basegfx::B2DPolyPolygon ImpPathForDragAndCreate::getSpecialDragPoly(const SdrDragStat& rDrag) const in getSpecialDragPoly()
1179 const XPolygon& rXP=aPathPolygon[(sal_uInt16)rDrag.GetHdl()->GetPolyNum()]; in getSpecialDragPoly()
1182 aXPoly[(sal_uInt16)rDrag.GetHdl()->GetPointNum()]=rDrag.GetNow(); in getSpecialDragPoly()
1577 basegfx::B2DPolyPolygon ImpPathForDragAndCreate::TakeObjectPolyPolygon(const SdrDragStat& rDrag) co… in TakeObjectPolyPolygon()
1580 SdrView* pView = rDrag.GetView(); in TakeObjectPolyPolygon()
1585 ImpPathCreateUser* pU = (ImpPathCreateUser*)rDrag.GetUser(); in TakeObjectPolyPolygon()
1619 basegfx::B2DPolyPolygon ImpPathForDragAndCreate::TakeDragPolyPolygon(const SdrDragStat& rDrag) const in TakeDragPolyPolygon()
1622 SdrView* pView = rDrag.GetView(); in TakeDragPolyPolygon()
1627 ImpPathCreateUser* pU = (ImpPathCreateUser*)rDrag.GetUser(); in TakeDragPolyPolygon()
1629 if(pU && pU->bBezier && rDrag.IsMouseDown()) in TakeDragPolyPolygon()
2170 bool SdrPathObj::beginSpecialDrag(SdrDragStat& rDrag) const in beginSpecialDrag()
2174 return aDragAndCreate.beginPathDrag(rDrag); in beginSpecialDrag()
2177 bool SdrPathObj::applySpecialDrag(SdrDragStat& rDrag) in applySpecialDrag() argument
2180 bool bRetval(aDragAndCreate.beginPathDrag(rDrag)); in applySpecialDrag()
2184 bRetval = aDragAndCreate.movePathDrag(rDrag); in applySpecialDrag()
2189 bRetval = aDragAndCreate.endPathDrag(rDrag); in applySpecialDrag()
2200 String SdrPathObj::getSpecialDragComment(const SdrDragStat& rDrag) const in getSpecialDragComment()
2207 const bool bCreateComment(rDrag.GetView() && this == rDrag.GetView()->GetCreateObj()); in getSpecialDragComment()
2211 aRetval = mpDAC->getSpecialDragComment(rDrag); in getSpecialDragComment()
2217 bool bDidWork(aDragAndCreate.beginPathDrag((SdrDragStat&)rDrag)); in getSpecialDragComment()
2221 aRetval = aDragAndCreate.getSpecialDragComment(rDrag); in getSpecialDragComment()
2228 basegfx::B2DPolyPolygon SdrPathObj::getSpecialDragPoly(const SdrDragStat& rDrag) const in getSpecialDragPoly()
2232 bool bDidWork(aDragAndCreate.beginPathDrag((SdrDragStat&)rDrag)); in getSpecialDragPoly()
2236 aRetval = aDragAndCreate.getSpecialDragPoly(rDrag); in getSpecialDragPoly()
2313 basegfx::B2DPolyPolygon SdrPathObj::TakeCreatePoly(const SdrDragStat& rDrag) const in TakeCreatePoly()
2319 aRetval = mpDAC->TakeObjectPolyPolygon(rDrag); in TakeCreatePoly()
2320 aRetval.append(mpDAC->TakeDragPolyPolygon(rDrag)); in TakeCreatePoly()
2327 basegfx::B2DPolyPolygon SdrPathObj::getObjectPolyPolygon(const SdrDragStat& rDrag) const in getObjectPolyPolygon()
2333 aRetval = mpDAC->TakeObjectPolyPolygon(rDrag); in getObjectPolyPolygon()
2339 basegfx::B2DPolyPolygon SdrPathObj::getDragPolyPolygon(const SdrDragStat& rDrag) const in getDragPolyPolygon()
2345 aRetval = mpDAC->TakeDragPolyPolygon(rDrag); in getDragPolyPolygon()