Lines Matching refs:rPol
370 void SdrMeasureObj::ImpCalcGeometrics(const ImpMeasureRec& rRec, ImpMeasurePoly& rPol) const in ImpCalcGeometrics()
376 rPol.aTextSize=GetTextSize(); in ImpCalcGeometrics()
377 rPol.nLineLen=GetLen(aDelt); in ImpCalcGeometrics()
379 rPol.nLineWdt2=0; in ImpCalcGeometrics()
384 rPol.nArrow1Wdt=0; in ImpCalcGeometrics()
385 rPol.nArrow2Wdt=0; in ImpCalcGeometrics()
392 rPol.nLineWdt2 = (nLineWdt + 1) / 2; in ImpCalcGeometrics()
412 if (rPol.nLineLen<nArrowNeed) bPfeileAussen=sal_True; in ImpCalcGeometrics()
415 rPol.eUsedTextHPos=rRec.eWantTextHPos; in ImpCalcGeometrics()
416 rPol.eUsedTextVPos=rRec.eWantTextVPos; in ImpCalcGeometrics()
417 if (rPol.eUsedTextVPos==SDRMEASURE_TEXTVAUTO) rPol.eUsedTextVPos=SDRMEASURE_ABOVE; in ImpCalcGeometrics()
418 FASTBOOL bBrkLine=rPol.eUsedTextVPos==SDRMEASURETEXT_BREAKEDLINE; in ImpCalcGeometrics()
419 if (rPol.eUsedTextVPos==SDRMEASURETEXT_VERTICALCENTERED) in ImpCalcGeometrics()
427 rPol.bBreakedLine=bBrkLine; in ImpCalcGeometrics()
428 …if (rPol.eUsedTextHPos==SDRMEASURE_TEXTHAUTO) { // bei zu breitem Text diesen eventuell nach ausse… in ImpCalcGeometrics()
430 long nNeedSiz=!rRec.bTextRota90 ? rPol.aTextSize.Width() : rPol.aTextSize.Height(); in ImpCalcGeometrics()
431 if (nNeedSiz>rPol.nLineLen) bOutside=sal_True; // Text passt nicht in die Mitte in ImpCalcGeometrics()
433 …if (nNeedSiz+nArrowNeed>rPol.nLineLen) bPfeileAussen=sal_True; // Text passt in die Mitte, wenn di… in ImpCalcGeometrics()
436 …if (nNeedSiz+nSmallNeed>rPol.nLineLen) bPfeileAussen=sal_True; // Text passt in die Mitte, wenn di… in ImpCalcGeometrics()
438 rPol.eUsedTextHPos=bOutside ? SDRMEASURE_TEXTLEFTOUTSIDE : SDRMEASURE_TEXTINSIDE; in ImpCalcGeometrics()
440 if (rPol.eUsedTextHPos!=SDRMEASURE_TEXTINSIDE) bPfeileAussen=sal_True; in ImpCalcGeometrics()
441 rPol.nArrow1Wdt=nArrow1Wdt; in ImpCalcGeometrics()
442 rPol.nArrow2Wdt=nArrow2Wdt; in ImpCalcGeometrics()
443 rPol.nShortLineLen=nShortLen; in ImpCalcGeometrics()
444 rPol.bPfeileAussen=bPfeileAussen; in ImpCalcGeometrics()
445 rPol.nArrow1Len=nArrow1Len; in ImpCalcGeometrics()
446 rPol.bArrow1Center=bArrow1Center; in ImpCalcGeometrics()
447 rPol.nArrow2Len=nArrow2Len; in ImpCalcGeometrics()
448 rPol.bArrow2Center=bArrow2Center; in ImpCalcGeometrics()
450 rPol.nLineWink=GetAngle(aDelt); in ImpCalcGeometrics()
451 double a=rPol.nLineWink*nPi180; in ImpCalcGeometrics()
454 rPol.nLineSin=nLineSin; in ImpCalcGeometrics()
455 rPol.nLineCos=nLineCos; in ImpCalcGeometrics()
457 rPol.nTextWink=rPol.nLineWink; in ImpCalcGeometrics()
458 if (rRec.bTextRota90) rPol.nTextWink+=9000; in ImpCalcGeometrics()
460 rPol.bAutoUpsideDown=sal_False; in ImpCalcGeometrics()
462 long nTmpWink=NormAngle360(rPol.nTextWink-rRec.nTextAutoAngleView); in ImpCalcGeometrics()
464 rPol.nTextWink+=18000; in ImpCalcGeometrics()
465 rPol.bAutoUpsideDown=sal_True; in ImpCalcGeometrics()
469 if (rRec.bTextUpsideDown) rPol.nTextWink+=18000; in ImpCalcGeometrics()
470 rPol.nTextWink=NormAngle360(rPol.nTextWink); in ImpCalcGeometrics()
471 rPol.nHlpWink=rPol.nLineWink+9000; in ImpCalcGeometrics()
472 if (rRec.bBelowRefEdge) rPol.nHlpWink+=18000; in ImpCalcGeometrics()
473 rPol.nHlpWink=NormAngle360(rPol.nHlpWink); in ImpCalcGeometrics()
480 rPol.nHlpSin=nHlpSin; in ImpCalcGeometrics()
481 rPol.nHlpCos=nHlpCos; in ImpCalcGeometrics()
497 rPol.aHelpline1.aP1=Point(aP1.X()+dxh1a,aP1.Y()+dyh1a); in ImpCalcGeometrics()
498 rPol.aHelpline1.aP2=Point(aP1.X()+dxh2,aP1.Y()+dyh2); in ImpCalcGeometrics()
501 rPol.aHelpline2.aP1=Point(aP2.X()+dxh1b,aP2.Y()+dyh1b); in ImpCalcGeometrics()
502 rPol.aHelpline2.aP2=Point(aP2.X()+dxh2,aP2.Y()+dyh2); in ImpCalcGeometrics()
508 rPol.aMainline1.aP1=aMainlinePt1; in ImpCalcGeometrics()
509 rPol.aMainline1.aP2=aMainlinePt2; in ImpCalcGeometrics()
510 rPol.aMainline2=rPol.aMainline1; in ImpCalcGeometrics()
511 rPol.aMainline3=rPol.aMainline1; in ImpCalcGeometrics()
512 rPol.nMainlineAnz=1; in ImpCalcGeometrics()
514 long nNeedSiz=!rRec.bTextRota90 ? rPol.aTextSize.Width() : rPol.aTextSize.Height(); in ImpCalcGeometrics()
515 long nHalfLen=(rPol.nLineLen-nNeedSiz-nArrow1Wdt/4-nArrow2Wdt/4) /2; in ImpCalcGeometrics()
516 rPol.nMainlineAnz=2; in ImpCalcGeometrics()
517 rPol.aMainline1.aP2=aMainlinePt1; in ImpCalcGeometrics()
518 rPol.aMainline1.aP2.X()+=nHalfLen; in ImpCalcGeometrics()
519 RotatePoint(rPol.aMainline1.aP2,rPol.aMainline1.aP1,nLineSin,nLineCos); in ImpCalcGeometrics()
520 rPol.aMainline2.aP1=aMainlinePt2; in ImpCalcGeometrics()
521 rPol.aMainline2.aP1.X()-=nHalfLen; in ImpCalcGeometrics()
522 RotatePoint(rPol.aMainline2.aP1,rPol.aMainline2.aP2,nLineSin,nLineCos); in ImpCalcGeometrics()
527 long nTextWdt=rRec.bTextRota90 ? rPol.aTextSize.Height() : rPol.aTextSize.Width(); in ImpCalcGeometrics()
529 if (rPol.eUsedTextHPos==SDRMEASURE_TEXTLEFTOUTSIDE) nLen1=nArrow1Len+nTextWdt; in ImpCalcGeometrics()
530 if (rPol.eUsedTextHPos==SDRMEASURE_TEXTRIGHTOUTSIDE) nLen2=nArrow2Len+nTextWdt; in ImpCalcGeometrics()
532 rPol.aMainline1.aP1=aMainlinePt1; in ImpCalcGeometrics()
533 …rPol.aMainline1.aP2=aMainlinePt1; rPol.aMainline1.aP2.X()-=nLen1; RotatePoint(rPol.aMainline1.aP2,… in ImpCalcGeometrics()
534 …rPol.aMainline2.aP1=aMainlinePt2; rPol.aMainline2.aP1.X()+=nLen2; RotatePoint(rPol.aMainline2.aP1,… in ImpCalcGeometrics()
535 rPol.aMainline2.aP2=aMainlinePt2; in ImpCalcGeometrics()
536 rPol.aMainline3.aP1=aMainlinePt1; in ImpCalcGeometrics()
537 rPol.aMainline3.aP2=aMainlinePt2; in ImpCalcGeometrics()
538 rPol.nMainlineAnz=3; in ImpCalcGeometrics()
539 if (bBrkLine && rPol.eUsedTextHPos==SDRMEASURE_TEXTINSIDE) rPol.nMainlineAnz=2; in ImpCalcGeometrics()
543 basegfx::B2DPolyPolygon SdrMeasureObj::ImpCalcXPoly(const ImpMeasurePoly& rPol) const in ImpCalcXPoly()
547 aPartPolyA.append(basegfx::B2DPoint(rPol.aMainline1.aP1.X(), rPol.aMainline1.aP1.Y())); in ImpCalcXPoly()
548 aPartPolyA.append(basegfx::B2DPoint(rPol.aMainline1.aP2.X(), rPol.aMainline1.aP2.Y())); in ImpCalcXPoly()
551 if(rPol.nMainlineAnz > 1) in ImpCalcXPoly()
554 aPartPolyA.append(basegfx::B2DPoint(rPol.aMainline2.aP1.X(), rPol.aMainline2.aP1.Y())); in ImpCalcXPoly()
555 aPartPolyA.append(basegfx::B2DPoint(rPol.aMainline2.aP2.X(), rPol.aMainline2.aP2.Y())); in ImpCalcXPoly()
559 if(rPol.nMainlineAnz > 2) in ImpCalcXPoly()
562 aPartPolyA.append(basegfx::B2DPoint(rPol.aMainline3.aP1.X(), rPol.aMainline3.aP1.Y())); in ImpCalcXPoly()
563 aPartPolyA.append(basegfx::B2DPoint(rPol.aMainline3.aP2.X(), rPol.aMainline3.aP2.Y())); in ImpCalcXPoly()
568 aPartPolyA.append(basegfx::B2DPoint(rPol.aHelpline1.aP1.X(), rPol.aHelpline1.aP1.Y())); in ImpCalcXPoly()
569 aPartPolyA.append(basegfx::B2DPoint(rPol.aHelpline1.aP2.X(), rPol.aHelpline1.aP2.Y())); in ImpCalcXPoly()
573 aPartPolyA.append(basegfx::B2DPoint(rPol.aHelpline2.aP1.X(), rPol.aHelpline2.aP1.Y())); in ImpCalcXPoly()
574 aPartPolyA.append(basegfx::B2DPoint(rPol.aHelpline2.aP2.X(), rPol.aHelpline2.aP2.Y())); in ImpCalcXPoly()