summaryrefslogtreecommitdiff
path: root/canvas/source/tools/canvascustomspritehelper.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-07-17 13:23:48 +0000
committerOliver Bolte <obo@openoffice.org>2007-07-17 13:23:48 +0000
commitd867173f243938ed63082fd03554dca644317aa8 (patch)
treeb0adb0ce9ad072b821d3f331c53e90138eba7972 /canvas/source/tools/canvascustomspritehelper.cxx
parentacea325c504e0843021d464312413c56f18e5715 (diff)
INTEGRATION: CWS presfixes12 (1.3.30); FILE MERGED
2007/02/20 22:23:08 thb 1.3.30.1: #i37778# Added XCanvas::clear() method throughout all implementations
Diffstat (limited to 'canvas/source/tools/canvascustomspritehelper.cxx')
-rw-r--r--canvas/source/tools/canvascustomspritehelper.cxx30
1 files changed, 8 insertions, 22 deletions
diff --git a/canvas/source/tools/canvascustomspritehelper.cxx b/canvas/source/tools/canvascustomspritehelper.cxx
index d88c603ed105..aa2e616091ee 100644
--- a/canvas/source/tools/canvascustomspritehelper.cxx
+++ b/canvas/source/tools/canvascustomspritehelper.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: canvascustomspritehelper.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 03:25:07 $
+ * last change: $Author: obo $ $Date: 2007-07-17 14:23:48 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -207,6 +207,12 @@ namespace canvas
mpSpriteCanvas.clear();
}
+ void CanvasCustomSpriteHelper::clearingContent( const Sprite::Reference& /*rSprite*/ )
+ {
+ // about to clear content to fully transparent
+ mbIsContentFullyOpaque = false;
+ }
+
void CanvasCustomSpriteHelper::checkDrawBitmap( const Sprite::Reference& rSprite,
const uno::Reference< rendering::XBitmap >& xBitmap,
const rendering::ViewState& viewState,
@@ -418,26 +424,6 @@ namespace canvas
}
}
- void CanvasCustomSpriteHelper::prepareContentCanvas( const Sprite::Reference& rSprite )
- {
- if( !mpSpriteCanvas.get() )
- return; // we're disposed
-
- if( mbActive )
- {
- // the client is about to render into the sprite. Thus,
- // potentially the whole sprite area has changed.
- mpSpriteCanvas->updateSprite( rSprite,
- maPosition,
- getUpdateArea() );
- }
-
- clearSurface();
-
- // just cleared content to fully transparent
- mbIsContentFullyOpaque = false;
- }
-
// Sprite interface
bool CanvasCustomSpriteHelper::isAreaUpdateOpaque( const ::basegfx::B2DRange& rUpdateArea ) const
{