summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-06-24 11:12:26 +0000
committerKurt Zenker <kz@openoffice.org>2008-06-24 11:12:26 +0000
commit5f3b3f0212307af2588403f9b960a3165fda2e8b (patch)
treece6f4223ab5820083b1624431aa708cbfa1de6ec /slideshow
parent6b2b389f10d9b9cb96fa6ea402cd45058215de10 (diff)
INTEGRATION: CWS canvas05 (1.2.18); FILE MERGED
2008/04/21 07:55:31 thb 1.2.18.3: RESYNC: (1.3-1.4); FILE MERGED 2008/01/22 00:53:45 thb 1.2.18.2: RESYNC: (1.2-1.3); FILE MERGED 2007/10/01 13:49:13 thb 1.2.18.1: #i79258# Merge from CWS picom
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/shapes/viewshape.cxx24
1 files changed, 11 insertions, 13 deletions
diff --git a/slideshow/source/engine/shapes/viewshape.cxx b/slideshow/source/engine/shapes/viewshape.cxx
index a18497ace069..fb2246309343 100644
--- a/slideshow/source/engine/shapes/viewshape.cxx
+++ b/slideshow/source/engine/shapes/viewshape.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewshape.cxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
@@ -33,12 +33,14 @@
// must be first
#include <canvas/debug.hxx>
+#include <tools/diagnose_ex.h>
#include <math.h>
#include <rtl/logfile.hxx>
#include <rtl/math.hxx>
+#include <com/sun/star/rendering/XCanvas.hpp>
#include <com/sun/star/rendering/XIntegerBitmap.hpp>
#include <com/sun/star/rendering/PanoseLetterForm.hpp>
#include <com/sun/star/awt/FontSlant.hpp>
@@ -78,7 +80,7 @@ namespace slideshow
const ShapeAttributeLayerSharedPtr& rAttr ) const
{
RTL_LOGFILE_CONTEXT( aLog, "::presentation::internal::ViewShape::prefetch()" );
- ENSURE_AND_RETURN( rMtf,
+ ENSURE_OR_RETURN( rMtf,
"ViewShape::prefetch(): no valid metafile!" );
if( rMtf != io_rCacheEntry.mpMtf ||
@@ -204,7 +206,7 @@ namespace slideshow
::cppcanvas::RendererSharedPtr pRenderer(
getRenderer( rDestinationCanvas, rMtf, rAttr ) );
- ENSURE_AND_RETURN( pRenderer, "ViewShape::draw(): Invalid renderer" );
+ ENSURE_OR_RETURN( pRenderer, "ViewShape::draw(): Invalid renderer" );
pRenderer->setTransformation( rTransform );
#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
@@ -231,11 +233,7 @@ namespace slideshow
}
catch( uno::Exception& )
{
- // ignore - this is non-fatal
- OSL_ENSURE( false,
- rtl::OUStringToOString(
- comphelper::anyToString( cppu::getCaughtException() ),
- RTL_TEXTENCODING_UTF8 ).getStr() );
+ DBG_UNHANDLED_EXCEPTION();
}
#endif
if( pClip )
@@ -400,7 +398,7 @@ namespace slideshow
mpSprite->resize( rSpriteSizePixel );
}
- ENSURE_AND_RETURN( mpSprite, "ViewShape::renderSprite(): No sprite" );
+ ENSURE_OR_RETURN( mpSprite, "ViewShape::renderSprite(): No sprite" );
VERBOSE_TRACE( "ViewShape::renderSprite(): Rendering sprite 0x%X",
mpSprite.get() );
@@ -646,7 +644,7 @@ namespace slideshow
rDestinationCanvas,
aBmpSize ) );
- ENSURE_AND_THROW(pBitmap,
+ ENSURE_OR_THROW(pBitmap,
"ViewShape::render(): Could not create compositing surface");
aCompositingSurface->mpDestinationCanvas = rDestinationCanvas;
@@ -754,7 +752,7 @@ namespace slideshow
mbAnimationMode( false ),
mbForceUpdate( true )
{
- ENSURE_AND_THROW( mpViewLayer, "ViewShape::ViewShape(): Invalid View" );
+ ENSURE_OR_THROW( mpViewLayer, "ViewShape::ViewShape(): Invalid View" );
}
ViewLayerSharedPtr ViewShape::getViewLayer() const
@@ -837,7 +835,7 @@ namespace slideshow
::basegfx::B2DSize ViewShape::getAntialiasingBorder() const
{
- ENSURE_AND_THROW( mpViewLayer->getCanvas(),
+ ENSURE_OR_THROW( mpViewLayer->getCanvas(),
"ViewShape::getAntialiasingBorder(): Invalid ViewLayer canvas" );
const ::basegfx::B2DHomMatrix& rViewTransform(
@@ -875,7 +873,7 @@ namespace slideshow
bool bIsVisible ) const
{
RTL_LOGFILE_CONTEXT( aLog, "::presentation::internal::ViewShape::update()" );
- ENSURE_AND_RETURN( mpViewLayer->getCanvas(), "ViewShape::update(): Invalid layer canvas" );
+ ENSURE_OR_RETURN( mpViewLayer->getCanvas(), "ViewShape::update(): Invalid layer canvas" );
// Shall we render to a sprite, or to a plain canvas?
if( isBackgroundDetached() )