From 47c4daf0d777771185823ac9367f2108e950d12e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 24 Aug 2016 09:59:39 +0200 Subject: convert SgaObjKind to scoped enum Change-Id: I1bc1244646db661f181d4224d81f12d613976362 --- svx/source/gallery2/galmisc.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'svx/source/gallery2/galmisc.cxx') diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx index b0fa80e914fa..1fb0777fd016 100644 --- a/svx/source/gallery2/galmisc.cxx +++ b/svx/source/gallery2/galmisc.cxx @@ -419,7 +419,7 @@ void GalleryTransferable::InitData( bool bLazy ) { switch( meObjectKind ) { - case SGA_OBJ_SVDRAW: + case SgaObjKind::SvDraw: { if( !bLazy ) { @@ -445,10 +445,10 @@ void GalleryTransferable::InitData( bool bLazy ) } break; - case SGA_OBJ_ANIM: - case SGA_OBJ_BMP: - case SGA_OBJ_INET: - case SGA_OBJ_SOUND: + case SgaObjKind::Animation: + case SgaObjKind::Bitmap: + case SgaObjKind::Inet: + case SgaObjKind::Sound: { if( !mpURL ) { @@ -461,7 +461,7 @@ void GalleryTransferable::InitData( bool bLazy ) } } - if( ( SGA_OBJ_SOUND != meObjectKind ) && !mpGraphicObject ) + if( ( SgaObjKind::Sound != meObjectKind ) && !mpGraphicObject ) { Graphic aGraphic; @@ -479,7 +479,7 @@ void GalleryTransferable::InitData( bool bLazy ) void GalleryTransferable::AddSupportedFormats() { - if( SGA_OBJ_SVDRAW == meObjectKind ) + if( SgaObjKind::SvDraw == meObjectKind ) { AddFormat( SotClipboardFormatId::DRAWING ); AddFormat( SotClipboardFormatId::SVXB ); @@ -516,7 +516,7 @@ bool GalleryTransferable::GetData( const datatransfer::DataFlavor& rFlavor, cons InitData( false ); - if( ( SotClipboardFormatId::DRAWING == nFormat ) && ( SGA_OBJ_SVDRAW == meObjectKind ) ) + if( ( SotClipboardFormatId::DRAWING == nFormat ) && ( SgaObjKind::SvDraw == meObjectKind ) ) { bRet = ( mxModelStream.Is() && SetObject( &mxModelStream, SotClipboardFormatId::NONE, rFlavor ) ); } -- cgit