diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-21 17:06:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-22 06:43:35 +0000 |
commit | 41f7878ccbc457ef0431c999d38d9d77265d5dc7 (patch) | |
tree | e0b6700f1019b5537ca1629d82fd65cfd1a7f626 /cui | |
parent | 7444355f1d544e015083c2412696e1df6f295e2d (diff) |
convert BmpFilter to scoped enum
Change-Id: I22c5b49f108d4ce103dea5098a2a0dc9d6bc854c
Reviewed-on: https://gerrit.libreoffice.org/32292
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/cuigrfflt.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cui/source/dialogs/cuigrfflt.cxx b/cui/source/dialogs/cuigrfflt.cxx index f90faf9a0a74..947a7e843b56 100644 --- a/cui/source/dialogs/cuigrfflt.cxx +++ b/cui/source/dialogs/cuigrfflt.cxx @@ -242,10 +242,10 @@ Graphic GraphicFilterMosaic::GetFilteredGraphic( const Graphic& rGraphic, { Animation aAnim( rGraphic.GetAnimation() ); - if( aAnim.Filter( BMP_FILTER_MOSAIC, &aParam ) ) + if( aAnim.Filter( BmpFilter::Mosaic, &aParam ) ) { if( IsEnhanceEdges() ) - aAnim.Filter( BMP_FILTER_SHARPEN ); + aAnim.Filter( BmpFilter::Sharpen ); aRet = aAnim; } @@ -254,10 +254,10 @@ Graphic GraphicFilterMosaic::GetFilteredGraphic( const Graphic& rGraphic, { BitmapEx aBmpEx( rGraphic.GetBitmapEx() ); - if( aBmpEx.Filter( BMP_FILTER_MOSAIC, &aParam ) ) + if( aBmpEx.Filter( BmpFilter::Mosaic, &aParam ) ) { if( IsEnhanceEdges() ) - (void)aBmpEx.Filter( BMP_FILTER_SHARPEN ); + (void)aBmpEx.Filter( BmpFilter::Sharpen ); aRet = aBmpEx; } @@ -308,7 +308,7 @@ Graphic GraphicFilterSmooth::GetFilteredGraphic( const Graphic& rGraphic, double { Animation aAnim( rGraphic.GetAnimation() ); - if( aAnim.Filter( BMP_FILTER_SMOOTH, &aParam ) ) + if( aAnim.Filter( BmpFilter::Smooth, &aParam ) ) { aRet = aAnim; } @@ -317,7 +317,7 @@ Graphic GraphicFilterSmooth::GetFilteredGraphic( const Graphic& rGraphic, double { BitmapEx aBmpEx( rGraphic.GetBitmapEx() ); - if( aBmpEx.Filter( BMP_FILTER_SMOOTH, &aParam ) ) + if( aBmpEx.Filter( BmpFilter::Smooth, &aParam ) ) { aRet = aBmpEx; } @@ -379,7 +379,7 @@ Graphic GraphicFilterSolarize::GetFilteredGraphic( const Graphic& rGraphic, doub { Animation aAnim( rGraphic.GetAnimation() ); - if( aAnim.Filter( BMP_FILTER_SOLARIZE, &aParam ) ) + if( aAnim.Filter( BmpFilter::Solarize, &aParam ) ) { if( IsInvert() ) aAnim.Invert(); @@ -391,7 +391,7 @@ Graphic GraphicFilterSolarize::GetFilteredGraphic( const Graphic& rGraphic, doub { BitmapEx aBmpEx( rGraphic.GetBitmapEx() ); - if( aBmpEx.Filter( BMP_FILTER_SOLARIZE, &aParam ) ) + if( aBmpEx.Filter( BmpFilter::Solarize, &aParam ) ) { if( IsInvert() ) aBmpEx.Invert(); @@ -441,14 +441,14 @@ Graphic GraphicFilterSepia::GetFilteredGraphic( const Graphic& rGraphic, double, { Animation aAnim( rGraphic.GetAnimation() ); - if( aAnim.Filter( BMP_FILTER_SEPIA, &aParam ) ) + if( aAnim.Filter( BmpFilter::Sepia, &aParam ) ) aRet = aAnim; } else { BitmapEx aBmpEx( rGraphic.GetBitmapEx() ); - if( aBmpEx.Filter( BMP_FILTER_SEPIA, &aParam ) ) + if( aBmpEx.Filter( BmpFilter::Sepia, &aParam ) ) aRet = aBmpEx; } @@ -584,14 +584,14 @@ Graphic GraphicFilterEmboss::GetFilteredGraphic( const Graphic& rGraphic, double { Animation aAnim( rGraphic.GetAnimation() ); - if( aAnim.Filter( BMP_FILTER_EMBOSS_GREY, &aParam ) ) + if( aAnim.Filter( BmpFilter::EmbossGrey, &aParam ) ) aRet = aAnim; } else { BitmapEx aBmpEx( rGraphic.GetBitmapEx() ); - if( aBmpEx.Filter( BMP_FILTER_EMBOSS_GREY, &aParam ) ) + if( aBmpEx.Filter( BmpFilter::EmbossGrey, &aParam ) ) aRet = aBmpEx; } |