summaryrefslogtreecommitdiff
path: root/svx/source/gallery2/galmisc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-24 09:59:39 +0200
committerNoel Grandin <noel@peralex.com>2016-08-25 08:40:00 +0200
commit47c4daf0d777771185823ac9367f2108e950d12e (patch)
treec4843f87fa5b604475916d3797e7e2c7c905082f /svx/source/gallery2/galmisc.cxx
parentbd4526b557fe787b3826ddf46bf8009fb45e05e6 (diff)
convert SgaObjKind to scoped enum
Change-Id: I1bc1244646db661f181d4224d81f12d613976362
Diffstat (limited to 'svx/source/gallery2/galmisc.cxx')
-rw-r--r--svx/source/gallery2/galmisc.cxx16
1 files changed, 8 insertions, 8 deletions
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 ) );
}