diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-15 14:47:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-17 08:45:15 +0200 |
commit | fd0e67ce0d8cf84470b1414009ed1e0f81410b0f (patch) | |
tree | 40894cd63c18eb7c8967f1158c33c15f6069aac9 /editeng/source/items/justifyitem.cxx | |
parent | 95be297746fda812f5a64e5fd53c753dfd9b249c (diff) |
convert SvxCellJustifyMethod to scoped enum
Change-Id: Ifdb9192f6556477a28af05a74042f216d4e9e8fd
Diffstat (limited to 'editeng/source/items/justifyitem.cxx')
-rw-r--r-- | editeng/source/items/justifyitem.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/items/justifyitem.cxx b/editeng/source/items/justifyitem.cxx index 0aa568f3984a..48f961aab56d 100644 --- a/editeng/source/items/justifyitem.cxx +++ b/editeng/source/items/justifyitem.cxx @@ -345,8 +345,8 @@ bool SvxJustifyMethodItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/ ) sal_Int32 nUno = table::CellJustifyMethod::AUTO; switch (static_cast<SvxCellJustifyMethod>(GetValue())) { - case SVX_JUSTIFY_METHOD_AUTO: nUno = table::CellJustifyMethod::AUTO; break; - case SVX_JUSTIFY_METHOD_DISTRIBUTE: nUno = table::CellJustifyMethod::DISTRIBUTE; break; + case SvxCellJustifyMethod::Auto: nUno = table::CellJustifyMethod::AUTO; break; + case SvxCellJustifyMethod::Distribute: nUno = table::CellJustifyMethod::DISTRIBUTE; break; default:; } rVal <<= nUno; @@ -359,14 +359,14 @@ bool SvxJustifyMethodItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId if (!(rVal >>= nVal)) return false; - SvxCellJustifyMethod eSvx = SVX_JUSTIFY_METHOD_AUTO; + SvxCellJustifyMethod eSvx = SvxCellJustifyMethod::Auto; switch (nVal) { case table::CellJustifyMethod::AUTO: - eSvx = SVX_JUSTIFY_METHOD_AUTO; + eSvx = SvxCellJustifyMethod::Auto; break; case table::CellJustifyMethod::DISTRIBUTE: - eSvx = SVX_JUSTIFY_METHOD_DISTRIBUTE; + eSvx = SvxCellJustifyMethod::Distribute; break; default:; } @@ -398,7 +398,7 @@ SfxPoolItem* SvxJustifyMethodItem::Create( SvStream& rStream, sal_uInt16 ) const sal_uInt16 SvxJustifyMethodItem::GetValueCount() const { - return SVX_JUSTIFY_METHOD_DISTRIBUTE + 1; // Last Enum value + 1 + return (sal_uInt16)SvxCellJustifyMethod::Distribute + 1; // Last Enum value + 1 } SvxJustifyMethodItem& SvxJustifyMethodItem::operator=(const SvxJustifyMethodItem& r) |