summaryrefslogtreecommitdiff
path: root/starmath/source/dialog.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-05-05 12:07:11 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2017-05-05 13:55:37 +0200
commit6e4cba99bb35e6697b94309eedd1a08ebea2dc68 (patch)
treea5a9b88663d8e42a92bd34ce2064d9a84ded5332 /starmath/source/dialog.cxx
parentc7e4f2b310d10fb3b3ae3b8ebdf02f9d2ad79b7a (diff)
starmath: Convert SmHorAlign to scoped enum
Change-Id: Ie75749ebbea2ec74e2f16b1c42a55fbcd71845c3 Reviewed-on: https://gerrit.libreoffice.org/37270 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/source/dialog.cxx')
-rw-r--r--starmath/source/dialog.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 43141395ddc6..b0252455b2f7 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -1044,19 +1044,19 @@ void SmAlignDialog::ReadFrom(const SmFormat &rFormat)
{
switch (rFormat.GetHorAlign())
{
- case AlignLeft:
+ case SmHorAlign::Left:
m_pLeft->Check();
m_pCenter->Check(false);
m_pRight->Check(false);
break;
- case AlignCenter:
+ case SmHorAlign::Center:
m_pLeft->Check(false);
m_pCenter->Check();
m_pRight->Check(false);
break;
- case AlignRight:
+ case SmHorAlign::Right:
m_pLeft->Check(false);
m_pCenter->Check(false);
m_pRight->Check();
@@ -1068,11 +1068,11 @@ void SmAlignDialog::ReadFrom(const SmFormat &rFormat)
void SmAlignDialog::WriteTo(SmFormat &rFormat) const
{
if (m_pLeft->IsChecked())
- rFormat.SetHorAlign(AlignLeft);
+ rFormat.SetHorAlign(SmHorAlign::Left);
else if (m_pRight->IsChecked())
- rFormat.SetHorAlign(AlignRight);
+ rFormat.SetHorAlign(SmHorAlign::Right);
else
- rFormat.SetHorAlign(AlignCenter);
+ rFormat.SetHorAlign(SmHorAlign::Center);
rFormat.RequestApplyChanges();
}