diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-07 14:28:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-08 09:07:08 +0200 |
commit | 90dc63a8ddda7d09635bdf60fcaafc5d0fdbbeeb (patch) | |
tree | d242492d503479dae72d8c8ff4cb0f7849eb0ac1 /editeng/source | |
parent | 2bbce7dcd46e8aca716808602aa152ecd85b42af (diff) |
convert SHADOW_ constants to enum class
Change-Id: I1d3c144b2438776a31a246a2d0d4fe57b0caeaa3
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 2029a8578ed2..a25bc0a97290 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1429,31 +1429,31 @@ SfxPoolItem* SvxShadowItem::Clone( SfxItemPool* ) const -sal_uInt16 SvxShadowItem::CalcShadowSpace( sal_uInt16 nShadow ) const +sal_uInt16 SvxShadowItem::CalcShadowSpace( SvxShadowItemSide nShadow ) const { sal_uInt16 nSpace = 0; switch ( nShadow ) { - case SHADOW_TOP: + case SvxShadowItemSide::TOP: if ( eLocation == SVX_SHADOW_TOPLEFT || eLocation == SVX_SHADOW_TOPRIGHT ) nSpace = nWidth; break; - case SHADOW_BOTTOM: + case SvxShadowItemSide::BOTTOM: if ( eLocation == SVX_SHADOW_BOTTOMLEFT || eLocation == SVX_SHADOW_BOTTOMRIGHT ) nSpace = nWidth; break; - case SHADOW_LEFT: + case SvxShadowItemSide::LEFT: if ( eLocation == SVX_SHADOW_TOPLEFT || eLocation == SVX_SHADOW_BOTTOMLEFT ) nSpace = nWidth; break; - case SHADOW_RIGHT: + case SvxShadowItemSide::RIGHT: if ( eLocation == SVX_SHADOW_TOPRIGHT || eLocation == SVX_SHADOW_BOTTOMRIGHT ) nSpace = nWidth; |