lets have just one getB2DRange function/method
Change-Id: I5081abca177c6fb8bd21d971d93dc115d57de294 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192589 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
This commit is contained in:
@@ -562,7 +562,7 @@ namespace cppcanvas::internal
|
||||
}
|
||||
|
||||
const ::basegfx::B2DRectangle aBounds(
|
||||
::basegfx::utils::getRange(aDevicePoly) );
|
||||
aDevicePoly.getB2DRange() );
|
||||
const ::basegfx::B2DVector aOffset(
|
||||
rGradient.GetOfsX() / 100.0,
|
||||
rGradient.GetOfsY() / 100.0);
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace cppcanvas::internal
|
||||
bool bStroke ) :
|
||||
CachedPrimitiveBase( rCanvas, false ),
|
||||
mxPolyPoly( ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( rCanvas->getUNOCanvas()->getDevice(), rPolyPoly) ),
|
||||
maBounds( ::basegfx::utils::getRange(rPolyPoly) ),
|
||||
maBounds( rPolyPoly.getB2DRange() ),
|
||||
mpCanvas( rCanvas )
|
||||
{
|
||||
cppcanvastools::initRenderState(maState,rState);
|
||||
@@ -109,7 +109,7 @@ namespace cppcanvas::internal
|
||||
int nTransparency ) :
|
||||
CachedPrimitiveBase( rCanvas, false ),
|
||||
mxPolyPoly( ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( rCanvas->getUNOCanvas()->getDevice(), rPolyPoly) ),
|
||||
maBounds( ::basegfx::utils::getRange(rPolyPoly) ),
|
||||
maBounds( rPolyPoly.getB2DRange() ),
|
||||
mpCanvas( rCanvas )
|
||||
{
|
||||
cppcanvastools::initRenderState(maState,rState);
|
||||
@@ -258,7 +258,7 @@ namespace cppcanvas::internal
|
||||
const rendering::Texture& rTexture ) :
|
||||
CachedPrimitiveBase( rCanvas, true ),
|
||||
mxPolyPoly( ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( rCanvas->getUNOCanvas()->getDevice(), rPolyPoly) ),
|
||||
maBounds( ::basegfx::utils::getRange(rPolyPoly) ),
|
||||
maBounds( rPolyPoly.getB2DRange() ),
|
||||
mpCanvas( rCanvas ),
|
||||
maTexture( rTexture )
|
||||
{
|
||||
@@ -367,7 +367,7 @@ namespace cppcanvas::internal
|
||||
rendering::StrokeAttributes aStrokeAttributes ) :
|
||||
CachedPrimitiveBase( rCanvas, false ),
|
||||
mxPolyPoly( ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( rCanvas->getUNOCanvas()->getDevice(), rPolyPoly) ),
|
||||
maBounds( ::basegfx::utils::getRange(rPolyPoly) ),
|
||||
maBounds( rPolyPoly.getB2DRange() ),
|
||||
mpCanvas( rCanvas ),
|
||||
maStrokeAttributes(std::move( aStrokeAttributes ))
|
||||
{
|
||||
|
||||
@@ -585,7 +585,7 @@ namespace cppcanvas::internal
|
||||
const ::basegfx::B2DPolyPolygon aPoly(
|
||||
cppcanvastools::createTextLinesPolyPolygon( 0.0, nLineWidth,
|
||||
rLineInfo ) );
|
||||
auto aRange = basegfx::utils::getRange( aPoly ).getRange();
|
||||
auto aRange = aPoly.getB2DRange().getRange();
|
||||
o_rOverallSize = basegfx::B2DSize(aRange.getX(), aRange.getY());
|
||||
|
||||
o_rTextLines = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
|
||||
@@ -1567,7 +1567,7 @@ namespace cppcanvas::internal
|
||||
|
||||
return calcEffectTextBounds( ::basegfx::unotools::b2DRectangleFromRealRectangle2D(
|
||||
xTextLayout->queryTextBounds() ),
|
||||
::basegfx::utils::getRange( aPoly ),
|
||||
aPoly.getB2DRange(),
|
||||
maReliefOffset,
|
||||
maShadowOffset,
|
||||
aLocalState,
|
||||
@@ -2122,7 +2122,7 @@ namespace cppcanvas::internal
|
||||
rShadowColor,
|
||||
rTextFillColor,
|
||||
xTextBoundsPoly,
|
||||
::basegfx::utils::getRange(aResultingPolyPolygon),
|
||||
aResultingPolyPolygon.getB2DRange(),
|
||||
xTextPoly,
|
||||
aCharWidthSeq,
|
||||
rVDev,
|
||||
@@ -2140,7 +2140,7 @@ namespace cppcanvas::internal
|
||||
rShadowColor,
|
||||
rTextFillColor,
|
||||
xTextBoundsPoly,
|
||||
::basegfx::utils::getRange(aResultingPolyPolygon),
|
||||
aResultingPolyPolygon.getB2DRange(),
|
||||
xTextPoly,
|
||||
aCharWidthSeq,
|
||||
rVDev,
|
||||
|
||||
@@ -59,19 +59,19 @@ void TextLinesHelper::init(double nLineWidth, const cppcanvastools::TextLineInfo
|
||||
|
||||
if (aOverline.count())
|
||||
{
|
||||
aRange.expand(::basegfx::utils::getRange(aOverline));
|
||||
aRange.expand(aOverline.getB2DRange());
|
||||
mxOverline = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(xDevice, aOverline);
|
||||
}
|
||||
|
||||
if (aUnderline.count())
|
||||
{
|
||||
aRange.expand(::basegfx::utils::getRange(aUnderline));
|
||||
aRange.expand(aUnderline.getB2DRange());
|
||||
mxUnderline = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(xDevice, aUnderline);
|
||||
}
|
||||
|
||||
if (aStrikeout.count())
|
||||
{
|
||||
aRange.expand(::basegfx::utils::getRange(aStrikeout));
|
||||
aRange.expand(aStrikeout.getB2DRange());
|
||||
mxStrikeout = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(xDevice, aStrikeout);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user