summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/slidebitmap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/slidebitmap.cxx')
-rw-r--r--slideshow/source/engine/slidebitmap.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/slideshow/source/engine/slidebitmap.cxx b/slideshow/source/engine/slidebitmap.cxx
index 01df83697fc6..59a28af50b31 100644
--- a/slideshow/source/engine/slidebitmap.cxx
+++ b/slideshow/source/engine/slidebitmap.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,20 +62,20 @@ namespace slideshow
ENSURE_OR_THROW( mxBitmap.is(), "SlideBitmap::SlideBitmap(): Invalid bitmap" );
}
-
+
bool SlideBitmap::draw( const ::cppcanvas::CanvasSharedPtr& rCanvas ) const
{
- ENSURE_OR_RETURN_FALSE( rCanvas && rCanvas->getUNOCanvas().is(),
+ ENSURE_OR_RETURN_FALSE( rCanvas && rCanvas->getUNOCanvas().is(),
"SlideBitmap::draw(): Invalid canvas" );
// selectively only copy the transformation from current viewstate,
// don't want no clipping here.
rendering::ViewState aViewState;
- aViewState.AffineTransform = rCanvas->getViewState().AffineTransform;
+ aViewState.AffineTransform = rCanvas->getViewState().AffineTransform;
rendering::RenderState aRenderState;
::canvas::tools::initRenderState( aRenderState );
-
+
const basegfx::B2DHomMatrix aTranslation(basegfx::tools::createTranslateB2DHomMatrix(maOutputPos));
::canvas::tools::setRenderStateTransform( aRenderState, aTranslation );
@@ -83,15 +83,15 @@ namespace slideshow
{
if( maClipPoly.count() )
{
- // TODO(P1): Buffer the clip polygon
- aRenderState.Clip =
- ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
+ // TODO(P1): Buffer the clip polygon
+ aRenderState.Clip =
+ ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
rCanvas->getUNOCanvas()->getDevice(),
maClipPoly );
}
-
- rCanvas->getUNOCanvas()->drawBitmap( mxBitmap,
- aViewState,
+
+ rCanvas->getUNOCanvas()->drawBitmap( mxBitmap,
+ aViewState,
aRenderState );
}
catch( uno::Exception& )
@@ -111,7 +111,7 @@ namespace slideshow
{
return ::basegfx::unotools::b2ISizeFromIntegerSize2D( mxBitmap->getSize() );
}
-
+
void SlideBitmap::move( const ::basegfx::B2DPoint& rNewPos )
{
maOutputPos = rNewPos;
@@ -121,7 +121,7 @@ namespace slideshow
{
maClipPoly = rClipPoly;
}
-
+
::com::sun::star::uno::Reference<
::com::sun::star::rendering::XBitmap > SlideBitmap::getXBitmap()
{