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 /include | |
parent | 2bbce7dcd46e8aca716808602aa152ecd85b42af (diff) |
convert SHADOW_ constants to enum class
Change-Id: I1d3c144b2438776a31a246a2d0d4fe57b0caeaa3
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/shaditem.hxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/editeng/shaditem.hxx b/include/editeng/shaditem.hxx index 1e9209b87ae3..e022cff7d770 100644 --- a/include/editeng/shaditem.hxx +++ b/include/editeng/shaditem.hxx @@ -31,11 +31,7 @@ This item describes the shadow attribute (color, width and position). */ - -#define SHADOW_TOP ((sal_uInt16)0) -#define SHADOW_BOTTOM ((sal_uInt16)1) -#define SHADOW_LEFT ((sal_uInt16)2) -#define SHADOW_RIGHT ((sal_uInt16)3) +enum class SvxShadowItemSide { TOP, BOTTOM, LEFT, RIGHT }; class EDITENG_DLLPUBLIC SvxShadowItem : public SfxEnumItemInterface { @@ -77,7 +73,7 @@ public: void SetLocation( SvxShadowLocation eNew ) { eLocation = eNew; } // Calculate width of the shadow on the page. - sal_uInt16 CalcShadowSpace( sal_uInt16 nShadow ) const; + sal_uInt16 CalcShadowSpace( SvxShadowItemSide nShadow ) const; virtual sal_uInt16 GetValueCount() const SAL_OVERRIDE; virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const SAL_OVERRIDE; |