summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-14 10:47:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-14 13:05:56 +0200
commit01062f27774a5c0adec8ba6e3bb10994538c8a82 (patch)
tree5dde4eafe65593aa77cb2a8407eb39b82fc227e8 /include
parentdb12ecd5d77670db5a61fb16b9372d7fd7da858c (diff)
convert SvxCellOrientation to scoped enum
Change-Id: Ia4c75c6394b47805f24a7daca593e0074a8ddf0b Reviewed-on: https://gerrit.libreoffice.org/42268 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/editeng/svxenum.hxx10
-rw-r--r--include/svx/algitem.hxx4
2 files changed, 7 insertions, 7 deletions
diff --git a/include/editeng/svxenum.hxx b/include/editeng/svxenum.hxx
index 626383329990..a6d00920a2b5 100644
--- a/include/editeng/svxenum.hxx
+++ b/include/editeng/svxenum.hxx
@@ -121,12 +121,12 @@ enum SvxCellVerJustify
SVX_VER_JUSTIFY_BLOCK
};
-enum SvxCellOrientation
+enum class SvxCellOrientation
{
- SVX_ORIENTATION_STANDARD,
- SVX_ORIENTATION_TOPBOTTOM,
- SVX_ORIENTATION_BOTTOMTOP,
- SVX_ORIENTATION_STACKED
+ Standard,
+ TopBottom,
+ BottomUp,
+ Stacked
};
enum class SvxSpellArea
diff --git a/include/svx/algitem.hxx b/include/svx/algitem.hxx
index 4438d9148553..00ab5145fec7 100644
--- a/include/svx/algitem.hxx
+++ b/include/svx/algitem.hxx
@@ -35,7 +35,7 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxOrientationItem: public SfxEnumItem<SvxCe
{
public:
SvxOrientationItem(
- const SvxCellOrientation eOrientation /*= SVX_ORIENTATION_STANDARD*/,
+ const SvxCellOrientation eOrientation,
const sal_uInt16 nId );
SvxOrientationItem(
@@ -51,7 +51,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( SvxCellOrientation nVal );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nVer ) const override;