summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/dialog.cxx12
-rw-r--r--starmath/source/format.cxx2
-rw-r--r--starmath/source/node.cxx6
3 files changed, 10 insertions, 10 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();
}
diff --git a/starmath/source/format.cxx b/starmath/source/format.cxx
index b169d24cc090..bd6409688eef 100644
--- a/starmath/source/format.cxx
+++ b/starmath/source/format.cxx
@@ -89,7 +89,7 @@ OUString GetDefaultFontName( LanguageType nLang, sal_uInt16 nIdent )
SmFormat::SmFormat()
: aBaseSize(0, SmPtsTo100th_mm(12))
{
- eHorAlign = AlignCenter;
+ eHorAlign = SmHorAlign::Center;
nGreekCharStyle = 0;
bIsTextmode = bScaleNormalBrackets = false;
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 3327d8c57b80..efc13f4483ee 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -226,9 +226,9 @@ void SmNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell)
mnAttributes = FontAttribute::None;
switch (rFormat.GetHorAlign())
- { case AlignLeft: meRectHorAlign = RectHorAlign::Left; break;
- case AlignCenter: meRectHorAlign = RectHorAlign::Center; break;
- case AlignRight: meRectHorAlign = RectHorAlign::Right; break;
+ { case SmHorAlign::Left: meRectHorAlign = RectHorAlign::Left; break;
+ case SmHorAlign::Center: meRectHorAlign = RectHorAlign::Center; break;
+ case SmHorAlign::Right: meRectHorAlign = RectHorAlign::Right; break;
}
GetFont() = rFormat.GetFont(FNT_MATH);