diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-14 11:48:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-15 07:58:45 +0200 |
commit | 54e608c6605ca2bcfd8dfdbe674d5110a18d2c5c (patch) | |
tree | 0ac2df642d3499930f90b7b073cfcb52f44e6eaf /include/editeng | |
parent | 8d0fbad1e08368bd0b6ff76798c779ac7e747cfc (diff) |
convert SvxCellVerJustify to scoped enum
Change-Id: I9d1cdb4ddfee43b7a0990624d7d16e06679343c4
Reviewed-on: https://gerrit.libreoffice.org/42276
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/justifyitem.hxx | 6 | ||||
-rw-r--r-- | include/editeng/svxenum.hxx | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/editeng/justifyitem.hxx b/include/editeng/justifyitem.hxx index 3f51d0dde129..a4513a76e257 100644 --- a/include/editeng/justifyitem.hxx +++ b/include/editeng/justifyitem.hxx @@ -65,7 +65,7 @@ public: explicit SvxVerJustifyItem( const sal_uInt16 nId ); SvxVerJustifyItem( - const SvxCellVerJustify eJustify /*= SVX_VER_JUSTIFY_STANDARD*/, + const SvxCellVerJustify eJustify, const sal_uInt16 nId ); virtual bool GetPresentation( SfxItemPresentation ePres, @@ -77,7 +77,7 @@ public: virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; virtual sal_uInt16 GetValueCount() const override; - static OUString GetValueText( sal_uInt16 nVal ); + static OUString GetValueText( SvxCellVerJustify nVal ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nVer ) const override; @@ -105,7 +105,7 @@ public: virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; virtual sal_uInt16 GetValueCount() const override; - static OUString GetValueText( sal_uInt16 nVal ); + static OUString GetValueText( SvxCellJustifyMethod nVal ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; SvxJustifyMethodItem& operator=(const SvxJustifyMethodItem& r); diff --git a/include/editeng/svxenum.hxx b/include/editeng/svxenum.hxx index a6d00920a2b5..a2f844e9bdbe 100644 --- a/include/editeng/svxenum.hxx +++ b/include/editeng/svxenum.hxx @@ -112,13 +112,13 @@ enum class SvxCellJustifyMethod Distribute }; -enum SvxCellVerJustify +enum class SvxCellVerJustify { - SVX_VER_JUSTIFY_STANDARD, - SVX_VER_JUSTIFY_TOP, - SVX_VER_JUSTIFY_CENTER, - SVX_VER_JUSTIFY_BOTTOM, - SVX_VER_JUSTIFY_BLOCK + Standard, + Top, + Center, + Bottom, + Block }; enum class SvxCellOrientation |