diff options
Diffstat (limited to 'svtools/source/misc/embedhlp.cxx')
-rw-r--r-- | svtools/source/misc/embedhlp.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx index 22c8d889bd83..23805a459aa1 100644 --- a/svtools/source/misc/embedhlp.cxx +++ b/svtools/source/misc/embedhlp.cxx @@ -2,7 +2,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 @@ -296,7 +296,7 @@ EmbeddedObjectRef::EmbeddedObjectRef( const EmbeddedObjectRef& rObj ) EmbeddedObjectRef::~EmbeddedObjectRef() { delete mpImp->pGraphic; - if ( mpImp->pHCGraphic ) + if ( mpImp->pHCGraphic ) DELETEZ( mpImp->pHCGraphic ); Clear(); } @@ -448,7 +448,7 @@ void EmbeddedObjectRef::GetReplacement( BOOL bUpdate ) DELETEZ( mpImp->pGraphic ); mpImp->aMediaType = ::rtl::OUString(); mpImp->pGraphic = new Graphic; - if ( mpImp->pHCGraphic ) + if ( mpImp->pHCGraphic ) DELETEZ( mpImp->pHCGraphic ); mpImp->mnGraphicVersion++; } @@ -594,7 +594,7 @@ Graphic* EmbeddedObjectRef::GetHCGraphic() const if ( !pStream->GetError() ) { GraphicFilter* pGF = GraphicFilter::GetGraphicFilter(); - Graphic* pGraphic = new Graphic(); + Graphic* pGraphic = new Graphic(); if ( pGF->ImportGraphic( *pGraphic, String(), *pStream, GRFILTER_FORMAT_DONTKNOW ) == 0 ) mpImp->pHCGraphic = pGraphic; else @@ -617,7 +617,7 @@ void EmbeddedObjectRef::SetGraphicStream( const uno::Reference< io::XInputStream delete mpImp->pGraphic; mpImp->pGraphic = new Graphic(); mpImp->aMediaType = rMediaType; - if ( mpImp->pHCGraphic ) + if ( mpImp->pHCGraphic ) DELETEZ( mpImp->pHCGraphic ); mpImp->mnGraphicVersion++; @@ -628,7 +628,7 @@ void EmbeddedObjectRef::SetGraphicStream( const uno::Reference< io::XInputStream GraphicFilter* pGF = GraphicFilter::GetGraphicFilter(); pGF->ImportGraphic( *mpImp->pGraphic, String(), *pGraphicStream, GRFILTER_FORMAT_DONTKNOW ); mpImp->mnGraphicVersion++; - + if ( mpImp->pContainer ) { pGraphicStream->Seek( 0 ); @@ -650,7 +650,7 @@ void EmbeddedObjectRef::SetGraphic( const Graphic& rGraphic, const ::rtl::OUStri delete mpImp->pGraphic; mpImp->pGraphic = new Graphic( rGraphic ); mpImp->aMediaType = rMediaType; - if ( mpImp->pHCGraphic ) + if ( mpImp->pHCGraphic ) DELETEZ( mpImp->pHCGraphic ); mpImp->mnGraphicVersion++; @@ -750,8 +750,8 @@ void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const Stri if( nHeight > 0 ) { aPt.Y() = nHeight; - Point aP = rRect.TopLeft(); - Size aBmpSize = aBmp.GetSizePixel(); + Point aP = rRect.TopLeft(); + Size aBmpSize = aBmp.GetSizePixel(); // Bitmap einpassen if( nHeight * 10 / nWidth > aBmpSize.Height() * 10 / aBmpSize.Width() ) @@ -887,7 +887,7 @@ void EmbeddedObjectRef::UpdateReplacementOnDemand() { DELETEZ( mpImp->pGraphic ); mpImp->bNeedUpdate = sal_True; - if ( mpImp->pHCGraphic ) + if ( mpImp->pHCGraphic ) DELETEZ( mpImp->pHCGraphic ); mpImp->mnGraphicVersion++; |