Lines Matching refs:rRec
327 void SdrMeasureObj::ImpTakeAttr(ImpMeasureRec& rRec) const in ImpTakeAttr()
329 rRec.aPt1 = aPt1; in ImpTakeAttr()
330 rRec.aPt2 = aPt2; in ImpTakeAttr()
333 …rRec.eKind =((SdrMeasureKindItem& )rSet.Get(SDRATTR_MEASUREKIND )… in ImpTakeAttr()
334 …rRec.eWantTextHPos =((SdrMeasureTextHPosItem& )rSet.Get(SDRATTR_MEASURETEXTHPOS )… in ImpTakeAttr()
335 …rRec.eWantTextVPos =((SdrMeasureTextVPosItem& )rSet.Get(SDRATTR_MEASURETEXTVPOS )… in ImpTakeAttr()
336 …rRec.nLineDist =((SdrMeasureLineDistItem& )rSet.Get(SDRATTR_MEASURELINEDIST )… in ImpTakeAttr()
337 …rRec.nHelplineOverhang=((SdrMeasureHelplineOverhangItem&)rSet.Get(SDRATTR_MEASUREHELPLINEOVERHANG)… in ImpTakeAttr()
338 …rRec.nHelplineDist =((SdrMeasureHelplineDistItem& )rSet.Get(SDRATTR_MEASUREHELPLINEDIST )… in ImpTakeAttr()
339 …rRec.nHelpline1Len =((SdrMeasureHelpline1LenItem& )rSet.Get(SDRATTR_MEASUREHELPLINE1LEN )… in ImpTakeAttr()
340 …rRec.nHelpline2Len =((SdrMeasureHelpline2LenItem& )rSet.Get(SDRATTR_MEASUREHELPLINE2LEN )… in ImpTakeAttr()
341 …rRec.bBelowRefEdge =((SdrMeasureBelowRefEdgeItem& )rSet.Get(SDRATTR_MEASUREBELOWREFEDGE )… in ImpTakeAttr()
342 …rRec.bTextRota90 =((SdrMeasureTextRota90Item& )rSet.Get(SDRATTR_MEASURETEXTROTA90 )… in ImpTakeAttr()
343 …rRec.bTextUpsideDown =((SdrMeasureTextUpsideDownItem& )rSet.Get(SDRATTR_MEASURETEXTUPSIDEDOWN )… in ImpTakeAttr()
344 …rRec.nMeasureOverhang =((SdrMeasureOverhangItem& )rSet.Get(SDRATTR_MEASUREOVERHANG )… in ImpTakeAttr()
345 …rRec.eMeasureUnit =((SdrMeasureUnitItem& )rSet.Get(SDRATTR_MEASUREUNIT )… in ImpTakeAttr()
346 …rRec.aMeasureScale =((SdrMeasureScaleItem& )rSet.Get(SDRATTR_MEASURESCALE )… in ImpTakeAttr()
347 …rRec.bShowUnit =((SdrMeasureShowUnitItem& )rSet.Get(SDRATTR_MEASURESHOWUNIT )… in ImpTakeAttr()
348 …rRec.aFormatString =((SdrMeasureFormatStringItem& )rSet.Get(SDRATTR_MEASUREFORMATSTRING )… in ImpTakeAttr()
349 …rRec.bTextAutoAngle =((SdrMeasureTextAutoAngleItem& )rSet.Get(SDRATTR_MEASURETEXTAUTOANGLE … in ImpTakeAttr()
350 …rRec.nTextAutoAngleView=((SdrMeasureTextAutoAngleViewItem&)rSet.Get(SDRATTR_MEASURETEXTAUTOANGLEVI… in ImpTakeAttr()
351 …rRec.bTextIsFixedAngle =((SdrMeasureTextIsFixedAngleItem& )rSet.Get(SDRATTR_MEASURETEXTISFIXEDANGL… in ImpTakeAttr()
352 …rRec.nTextFixedAngle =((SdrMeasureTextFixedAngleItem& )rSet.Get(SDRATTR_MEASURETEXTFIXEDANGLE … in ImpTakeAttr()
370 void SdrMeasureObj::ImpCalcGeometrics(const ImpMeasureRec& rRec, ImpMeasurePoly& rPol) const in ImpCalcGeometrics() argument
372 Point aP1(rRec.aPt1); in ImpCalcGeometrics()
373 Point aP2(rRec.aPt2); in ImpCalcGeometrics()
415 rPol.eUsedTextHPos=rRec.eWantTextHPos; in ImpCalcGeometrics()
416 rPol.eUsedTextVPos=rRec.eWantTextVPos; in ImpCalcGeometrics()
430 long nNeedSiz=!rRec.bTextRota90 ? rPol.aTextSize.Width() : rPol.aTextSize.Height(); in ImpCalcGeometrics()
458 if (rRec.bTextRota90) rPol.nTextWink+=9000; in ImpCalcGeometrics()
461 if (rRec.bTextAutoAngle) { in ImpCalcGeometrics()
462 long nTmpWink=NormAngle360(rPol.nTextWink-rRec.nTextAutoAngleView); in ImpCalcGeometrics()
469 if (rRec.bTextUpsideDown) rPol.nTextWink+=18000; in ImpCalcGeometrics()
472 if (rRec.bBelowRefEdge) rPol.nHlpWink+=18000; in ImpCalcGeometrics()
476 if (rRec.bBelowRefEdge) { in ImpCalcGeometrics()
483 long nLineDist=rRec.nLineDist; in ImpCalcGeometrics()
484 long nOverhang=rRec.nHelplineOverhang; in ImpCalcGeometrics()
485 long nHelplineDist=rRec.nHelplineDist; in ImpCalcGeometrics()
489 long dxh1a= Round((nHelplineDist-rRec.nHelpline1Len)*nHlpCos); in ImpCalcGeometrics()
490 long dyh1a=-Round((nHelplineDist-rRec.nHelpline1Len)*nHlpSin); in ImpCalcGeometrics()
491 long dxh1b= Round((nHelplineDist-rRec.nHelpline2Len)*nHlpCos); in ImpCalcGeometrics()
492 long dyh1b=-Round((nHelplineDist-rRec.nHelpline2Len)*nHlpSin); in ImpCalcGeometrics()
514 long nNeedSiz=!rRec.bTextRota90 ? rPol.aTextSize.Width() : rPol.aTextSize.Height(); in ImpCalcGeometrics()
527 long nTextWdt=rRec.bTextRota90 ? rPol.aTextSize.Height() : rPol.aTextSize.Width(); in ImpCalcGeometrics()
901 void SdrMeasureObj::ImpEvalDrag(ImpMeasureRec& rRec, const SdrDragStat& rDrag) const in ImpEvalDrag() argument
903 long nLineWink=GetAngle(rRec.aPt2-rRec.aPt1); in ImpEvalDrag()
912 FASTBOOL bBelow=rRec.bBelowRefEdge; in ImpEvalDrag()
918 rRec.nHelpline1Len=aPt1.Y()-aPt.Y(); in ImpEvalDrag()
919 if (bBelow) rRec.nHelpline1Len=-rRec.nHelpline1Len; in ImpEvalDrag()
920 if (bOrtho) rRec.nHelpline2Len=rRec.nHelpline1Len; in ImpEvalDrag()
924 rRec.nHelpline2Len=aPt2.Y()-aPt.Y(); in ImpEvalDrag()
925 if (bBelow) rRec.nHelpline2Len=-rRec.nHelpline2Len; in ImpEvalDrag()
926 if (bOrtho) rRec.nHelpline1Len=rRec.nHelpline2Len; in ImpEvalDrag()
930 Point& rMov=bAnf ? rRec.aPt1 : rRec.aPt2; in ImpEvalDrag()
932 Point aFix(bAnf ? rRec.aPt2 : rRec.aPt1); in ImpEvalDrag()
955 long nVal0=rRec.nLineDist; in ImpEvalDrag()
957 rRec.nLineDist=aPt.Y()- (nHdlNum==4 ? aPt1.Y() : aPt2.Y()); in ImpEvalDrag()
958 if (bBelow) rRec.nLineDist=-rRec.nLineDist; in ImpEvalDrag()
959 if (rRec.nLineDist<0) { in ImpEvalDrag()
960 rRec.nLineDist=-rRec.nLineDist; in ImpEvalDrag()
961 rRec.bBelowRefEdge=!bBelow; in ImpEvalDrag()
963 rRec.nLineDist-=rRec.nHelplineOverhang; in ImpEvalDrag()
964 if (bOrtho) rRec.nLineDist=nVal0; in ImpEvalDrag()