summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-15 14:47:51 +0200
committerNoel Grandin <noel@peralex.com>2016-08-17 08:45:15 +0200
commitfd0e67ce0d8cf84470b1414009ed1e0f81410b0f (patch)
tree40894cd63c18eb7c8967f1158c33c15f6069aac9 /cui
parent95be297746fda812f5a64e5fd53c753dfd9b249c (diff)
convert SvxCellJustifyMethod to scoped enum
Change-Id: Ifdb9192f6556477a28af05a74042f216d4e9e8fd
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/align.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/tabpages/align.cxx b/cui/source/tabpages/align.cxx
index 71eae6f1771e..c5cf4d2f27fa 100644
--- a/cui/source/tabpages/align.cxx
+++ b/cui/source/tabpages/align.cxx
@@ -129,16 +129,16 @@ void lcl_MaybeResetAlignToDistro(
p = static_cast<const SfxEnumItem*>(pItem);
SvxCellJustifyMethod eMethod = static_cast<SvxCellJustifyMethod>(p->GetEnumValue());
- if (eMethod == SVX_JUSTIFY_METHOD_DISTRIBUTE)
+ if (eMethod == SvxCellJustifyMethod::Distribute)
// Select the 'distribute' entry in the specified list box.
rLB.SelectEntryPos(nListPos);
}
void lcl_SetJustifyMethodToItemSet(SfxItemSet& rSet, sal_uInt16 nWhichJM, const ListBox& rLB, sal_uInt16 nListPos)
{
- SvxCellJustifyMethod eJM = SVX_JUSTIFY_METHOD_AUTO;
+ SvxCellJustifyMethod eJM = SvxCellJustifyMethod::Auto;
if (rLB.GetSelectEntryPos() == nListPos)
- eJM = SVX_JUSTIFY_METHOD_DISTRIBUTE;
+ eJM = SvxCellJustifyMethod::Distribute;
SvxJustifyMethodItem aItem(eJM, nWhichJM);
rSet.Put(aItem);
@@ -400,8 +400,8 @@ bool AlignmentTabPage::HasAlignmentChanged( const SfxItemSet& rNew, sal_uInt16 n
{
const SfxItemSet& rOld = GetItemSet();
const SfxPoolItem* pItem;
- SvxCellJustifyMethod eMethodOld = SVX_JUSTIFY_METHOD_AUTO;
- SvxCellJustifyMethod eMethodNew = SVX_JUSTIFY_METHOD_AUTO;
+ SvxCellJustifyMethod eMethodOld = SvxCellJustifyMethod::Auto;
+ SvxCellJustifyMethod eMethodNew = SvxCellJustifyMethod::Auto;
if (rOld.GetItemState(nWhich, true, &pItem) == SfxItemState::SET)
{
const SfxEnumItem* p = static_cast<const SfxEnumItem*>(pItem);