Lines Matching refs:aRect
174 Rectangle aRect = rRect; in ImplDrawLinearGradient() local
177 double fWidth = aRect.GetWidth(); in ImplDrawLinearGradient()
178 double fHeight = aRect.GetHeight(); in ImplDrawLinearGradient()
185 aRect.Left() -= (long)fDX; in ImplDrawLinearGradient()
186 aRect.Right() += (long)fDX; in ImplDrawLinearGradient()
187 aRect.Top() -= (long)fDY; in ImplDrawLinearGradient()
188 aRect.Bottom() += (long)fDY; in ImplDrawLinearGradient()
191 double fBorder = rGradient.GetBorder() * aRect.GetHeight() / 100.0; in ImplDrawLinearGradient()
197 Rectangle aMirrorRect = aRect; // used in style axial in ImplDrawLinearGradient()
198 aMirrorRect.Top() = ( aRect.Top() + aRect.Bottom() ) / 2; in ImplDrawLinearGradient()
201 aRect.Bottom() = aMirrorRect.Top(); in ImplDrawLinearGradient()
242 Rectangle aBorderRect = aRect; in ImplDrawLinearGradient()
255 aRect.Top() = aBorderRect.Bottom(); in ImplDrawLinearGradient()
285 long nMinRect = aRect.GetHeight(); in ImplDrawLinearGradient()
313 double fScanInc = ((double)aRect.GetHeight()) / (double) nSteps; in ImplDrawLinearGradient()
314 double fGradientLine = (double)aRect.Top(); in ImplDrawLinearGradient()
340 aRect.Top() = (long)( fGradientLine + ((double) i) * fScanInc ); in ImplDrawLinearGradient()
341 aRect.Bottom() = (long)( fGradientLine + ( ((double) i) + 1.0 ) * fScanInc ); in ImplDrawLinearGradient()
342 aPoly[0] = aRect.TopLeft(); in ImplDrawLinearGradient()
343 aPoly[1] = aRect.TopRight(); in ImplDrawLinearGradient()
344 aPoly[2] = aRect.BottomRight(); in ImplDrawLinearGradient()
345 aPoly[3] = aRect.BottomLeft(); in ImplDrawLinearGradient()
377 aRect.Top() = (long)( fGradientLine + ((double)nSteps) * fScanInc ); in ImplDrawLinearGradient()
378 aRect.Bottom() = (long)( fMirrorGradientLine - ((double) nSteps) * fScanInc ); in ImplDrawLinearGradient()
379 aPoly[0] = aRect.TopLeft(); in ImplDrawLinearGradient()
380 aPoly[1] = aRect.TopRight(); in ImplDrawLinearGradient()
381 aPoly[2] = aRect.BottomRight(); in ImplDrawLinearGradient()
382 aPoly[3] = aRect.BottomLeft(); in ImplDrawLinearGradient()
406 Rectangle aRect( rRect ); in ImplDrawComplexGradient() local
429 const double fWidth = aRect.GetWidth(); in ImplDrawComplexGradient()
430 const double fHeight = aRect.GetHeight(); in ImplDrawComplexGradient()
437 aRect.Left() -= (long) fDX; in ImplDrawComplexGradient()
438 aRect.Right() += (long) fDX; in ImplDrawComplexGradient()
439 aRect.Top() -= (long) fDY; in ImplDrawComplexGradient()
440 aRect.Bottom() += (long) fDY; in ImplDrawComplexGradient()
443 Size aSize( aRect.GetSize() ); in ImplDrawComplexGradient()
466 long nZWidth = aRect.GetWidth() * (long) rGradient.GetOfsX() / 100; in ImplDrawComplexGradient()
467 long nZHeight = aRect.GetHeight() * (long) rGradient.GetOfsY() / 100; in ImplDrawComplexGradient()
470 Point aCenter( aRect.Left() + nZWidth, aRect.Top() + nZHeight ); in ImplDrawComplexGradient()
477 aRect.Left() = aCenter.X() - ( aSize.Width() >> 1 ); in ImplDrawComplexGradient()
478 aRect.Top() = aCenter.Y() - ( aSize.Height() >> 1 ); in ImplDrawComplexGradient()
480 aRect.SetSize( aSize ); in ImplDrawComplexGradient()
481 long nMinRect = Min( aRect.GetWidth(), aRect.GetHeight() ); in ImplDrawComplexGradient()
520 double fScanLeft = aRect.Left(); in ImplDrawComplexGradient()
521 double fScanTop = aRect.Top(); in ImplDrawComplexGradient()
522 double fScanRight = aRect.Right(); in ImplDrawComplexGradient()
523 double fScanBottom = aRect.Bottom(); in ImplDrawComplexGradient()
555 aRect.Left() = (long)( fScanLeft += fScanInc ); in ImplDrawComplexGradient()
556 aRect.Top() = (long)( fScanTop += fScanInc ); in ImplDrawComplexGradient()
557 aRect.Right() = (long)( fScanRight -= fScanInc ); in ImplDrawComplexGradient()
558 aRect.Bottom() = (long)( fScanBottom -= fScanInc ); in ImplDrawComplexGradient()
560 if( ( aRect.GetWidth() < 2 ) || ( aRect.GetHeight() < 2 ) ) in ImplDrawComplexGradient()
564 aPoly = Polygon( aRect.Center(), aRect.GetWidth() >> 1, aRect.GetHeight() >> 1 ); in ImplDrawComplexGradient()
566 aPoly = Polygon( aRect ); in ImplDrawComplexGradient()
719 Rectangle aRect( ImplLogicToDevicePixel( rRect ) ); in DrawGradient() local
720 aRect.Justify(); in DrawGradient()
723 if ( !aRect.IsEmpty() ) in DrawGradient()
731 aRect.Left()--; in DrawGradient()
732 aRect.Top()--; in DrawGradient()
733 aRect.Right()++; in DrawGradient()
734 aRect.Bottom()++; in DrawGradient()
762 ImplDrawLinearGradient( aRect, aGradient, sal_False, NULL ); in DrawGradient()
764 ImplDrawComplexGradient( aRect, aGradient, sal_False, NULL ); in DrawGradient()
826 const Rectangle aRect( rPolyPoly.GetBoundRect() ); in DrawGradient() local
835 DrawGradient( aRect, rGradient ); in DrawGradient()
845 DrawGradient( aRect, rGradient ); in DrawGradient()
850 DrawGradient( aRect, rGradient ); in DrawGradient()
897 Rectangle aRect( ImplLogicToDevicePixel( aBoundRect ) ); in DrawGradient() local
898 aRect.Justify(); in DrawGradient()
901 if ( !aRect.IsEmpty() ) in DrawGradient()
927 ImplDrawLinearGradient( aRect, aGradient, sal_False, &aClipPolyPoly ); in DrawGradient()
929 ImplDrawComplexGradient( aRect, aGradient, sal_False, &aClipPolyPoly ); in DrawGradient()
1009 Rectangle aRect( rRect ); in AddGradientActions() local
1011 aRect.Justify(); in AddGradientActions()
1014 if ( !aRect.IsEmpty() ) in AddGradientActions()
1021 mpMetaFile->AddAction( new MetaISectRectClipRegionAction( aRect ) ); in AddGradientActions()
1026 aRect.Left()--; in AddGradientActions()
1027 aRect.Top()--; in AddGradientActions()
1028 aRect.Right()++; in AddGradientActions()
1029 aRect.Bottom()++; in AddGradientActions()
1036 ImplDrawLinearGradient( aRect, aGradient, sal_True, NULL ); in AddGradientActions()
1038 ImplDrawComplexGradient( aRect, aGradient, sal_True, NULL ); in AddGradientActions()
1173 Rectangle aRect( rPolyPoly.GetBoundRect() ); in ImplDrawHatch() local
1181 …aRect.Left() -= nLogPixelWidth; aRect.Top() -= nLogPixelWidth; aRect.Right() += nLogPixelWidth; aR… in ImplDrawHatch()
1182 ImplCalcHatchValues( aRect, nWidth, rHatch.GetAngle(), aPt1, aPt2, aInc, aEndPt1 ); in ImplDrawHatch()
1194 ImplCalcHatchValues( aRect, nWidth, rHatch.GetAngle() + 900, aPt1, aPt2, aInc, aEndPt1 ); in ImplDrawHatch()
1206 ImplCalcHatchValues( aRect, nWidth, rHatch.GetAngle() + 450, aPt1, aPt2, aInc, aEndPt1 ); in ImplDrawHatch()