summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/graphhelp.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 08:53:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 10:45:27 +0000
commit58ba105a0328a932ff3dd86b043a909d01dacf5d (patch)
tree35d2e72bad7bc10cbc6ba7cfdc69023767c94521 /sfx2/source/doc/graphhelp.cxx
parent94ffeed68f14be4790fd537b8fb1431472613373 (diff)
callcatcher: update unused code
Change-Id: Ia8e6abffb85b92ee4538fb0aeaee4e4aa18f2772
Diffstat (limited to 'sfx2/source/doc/graphhelp.cxx')
-rw-r--r--sfx2/source/doc/graphhelp.cxx55
1 files changed, 0 insertions, 55 deletions
diff --git a/sfx2/source/doc/graphhelp.cxx b/sfx2/source/doc/graphhelp.cxx
index 6a6597d9197d..60329d0740aa 100644
--- a/sfx2/source/doc/graphhelp.cxx
+++ b/sfx2/source/doc/graphhelp.cxx
@@ -206,61 +206,6 @@ sal_Bool GraphicHelper::supportsMetaFileHandle_Impl()
// static
-sal_Bool GraphicHelper::mergeBitmaps_Impl( const BitmapEx& rBmpEx, const BitmapEx& rOverlay,
- const Rectangle& rOverlayRect, BitmapEx& rReturn )
-{
- // the implementation is provided by KA
-
- Point aNullPt;
- Rectangle aBmpRect( aNullPt, rBmpEx.GetSizePixel() );
- VirtualDevice aVDev;
-
- if( !rReturn.IsEmpty() )
- rReturn.SetEmpty();
-
- if( !rBmpEx.IsEmpty() && aVDev.SetOutputSizePixel( aBmpRect.GetSize() ) )
- {
- Rectangle aOverlayRect( rOverlayRect );
-
- aOverlayRect.Intersection( aBmpRect );
-
- if( rOverlay.IsEmpty() || rOverlayRect.IsEmpty() )
- rReturn = rBmpEx;
- else
- {
- aVDev.DrawBitmap( aNullPt, aVDev.GetOutputSizePixel(), rBmpEx.GetBitmap() );
- aVDev.DrawBitmapEx( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), rOverlay );
-
- Bitmap aBmp( aVDev.GetBitmap( aNullPt, aVDev.GetOutputSizePixel() ) );
- aBmp.Convert( BMP_CONVERSION_24BIT );
-
- if( !rBmpEx.IsTransparent() )
- rReturn = aBmp;
- else
- {
- aVDev.DrawBitmap( aNullPt, aVDev.GetOutputSizePixel(), rBmpEx.GetMask() );
- Bitmap aOverlayMergeBmp( aVDev.GetBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize() ) );
-
- if( rOverlay.IsTransparent() )
- aVDev.DrawBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), rOverlay.GetMask() );
- else
- {
- aVDev.SetLineColor( COL_BLACK );
- aVDev.SetFillColor( COL_BLACK );
- aVDev.DrawRect( aOverlayRect);
- }
-
- aOverlayMergeBmp.CombineSimple( aVDev.GetBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize() ), BMP_COMBINE_AND );
- aVDev.DrawBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), aOverlayMergeBmp );
- rReturn = BitmapEx( aBmp, aVDev.GetBitmap( aNullPt, aVDev.GetOutputSizePixel() ) );
- }
- }
- }
-
- return !rReturn.IsEmpty();
-}
-
-// static
sal_Bool GraphicHelper::getThumbnailFormatFromGDI_Impl( GDIMetaFile* pMetaFile,
const uno::Reference< io::XStream >& xStream )
{