INTEGRATION: CWS presfixes12 (1.8.22); FILE MERGED
2007/03/08 21:37:08 thb 1.8.22.1: #i37778# Added extra setClip() method to be able to set no clip - setting a clip with zero polygons by definition clips everything
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
*
|
||||
* $RCSfile: implsprite.cxx,v $
|
||||
*
|
||||
* $Revision: 1.8 $
|
||||
* $Revision: 1.9 $
|
||||
*
|
||||
* last change: $Author: obo $ $Date: 2006-09-17 12:53:06 $
|
||||
* last change: $Author: obo $ $Date: 2007-07-17 15:27:11 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
@@ -182,14 +182,9 @@ namespace cppcanvas
|
||||
OSL_ENSURE( mxSprite.is(), "ImplSprite::transform(): Invalid sprite");
|
||||
|
||||
if( mxSprite.is() && mxGraphicDevice.is() )
|
||||
{
|
||||
if( rClipPoly.count() == 0 )
|
||||
mxSprite->clip( uno::Reference< rendering::XPolyPolygon2D >() );
|
||||
else
|
||||
mxSprite->clip( ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( mxGraphicDevice,
|
||||
rClipPoly ) );
|
||||
}
|
||||
}
|
||||
|
||||
void ImplSprite::setClip( const ::basegfx::B2DPolyPolygon& rClipPoly )
|
||||
{
|
||||
@@ -197,12 +192,6 @@ namespace cppcanvas
|
||||
OSL_ENSURE( mxSprite.is(), "ImplSprite::transform(): Invalid sprite");
|
||||
|
||||
if( mxSprite.is() && mxGraphicDevice.is() )
|
||||
{
|
||||
if( rClipPoly.count() == 0 )
|
||||
{
|
||||
mxSprite->clip( uno::Reference< rendering::XPolyPolygon2D >() );
|
||||
}
|
||||
else
|
||||
{
|
||||
::basegfx::B2DPolyPolygon aTransformedClipPoly( rClipPoly );
|
||||
|
||||
@@ -219,6 +208,14 @@ namespace cppcanvas
|
||||
aTransformedClipPoly ) );
|
||||
}
|
||||
}
|
||||
|
||||
void ImplSprite::setClip()
|
||||
{
|
||||
OSL_ENSURE( mxGraphicDevice.is(), "ImplSprite::setClip(): Invalid canvas");
|
||||
OSL_ENSURE( mxSprite.is(), "ImplSprite::setClip(): Invalid sprite");
|
||||
|
||||
if( mxSprite.is() && mxGraphicDevice.is() )
|
||||
mxSprite->clip( uno::Reference< rendering::XPolyPolygon2D >() );
|
||||
}
|
||||
|
||||
void ImplSprite::show()
|
||||
|
Reference in New Issue
Block a user