diff options
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/charmap.cxx | 4 | ||||
-rw-r--r-- | svx/source/dialog/fntctrl.cxx | 4 | ||||
-rw-r--r-- | svx/source/dialog/searchcharmap.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx index 501c85d6b55d..16982c63487f 100644 --- a/svx/source/dialog/charmap.cxx +++ b/svx/source/dialog/charmap.cxx @@ -624,7 +624,7 @@ void SvxShowCharSet::InitSettings(vcl::RenderContext& rRenderContext) vcl::Font aFont(maFont); aFont.SetWeight(WEIGHT_LIGHT); - aFont.SetAlignment(ALIGN_TOP); + aFont.SetAlignment(TextAlign::Top); aFont.SetFontSize(maFontSize); aFont.SetTransparent(true); rRenderContext.SetFont(aFont); @@ -651,7 +651,7 @@ void SvxShowCharSet::RecalculateFont(vcl::RenderContext& rRenderContext) vcl::Font aFont = maFont; aFont.SetWeight(WEIGHT_LIGHT); - aFont.SetAlignment(ALIGN_TOP); + aFont.SetAlignment(TextAlign::Top); int nFontHeight = (aSize.Height() - 5) * 2 / (3 * ROW_COUNT); maFontSize = rRenderContext.PixelToLogic(Size(0, nFontHeight)); aFont.SetFontSize(maFontSize); diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx index 33d54bee40e5..28fff033abb6 100644 --- a/svx/source/dialog/fntctrl.cxx +++ b/svx/source/dialog/fntctrl.cxx @@ -90,7 +90,7 @@ void scaleFontWidth(vcl::Font& rFont, vcl::RenderContext const & rRenderContext, void initFont(vcl::Font& rFont) { rFont.SetTransparent(true); - rFont.SetAlignment(ALIGN_BASELINE); + rFont.SetAlignment(TextAlign::Baseline); } void setFontSize(vcl::Font& rFont) @@ -116,7 +116,7 @@ void setFont(const SvxFont& rNewFont, SvxFont& rImplFont) { rImplFont = rNewFont; rImplFont.SetTransparent(true); - rImplFont.SetAlignment(ALIGN_BASELINE); + rImplFont.SetAlignment(TextAlign::Baseline); } /* diff --git a/svx/source/dialog/searchcharmap.cxx b/svx/source/dialog/searchcharmap.cxx index 1cdb3cfc082a..bd88ec497089 100644 --- a/svx/source/dialog/searchcharmap.cxx +++ b/svx/source/dialog/searchcharmap.cxx @@ -291,7 +291,7 @@ void SvxSearchCharSet::RecalculateFont(vcl::RenderContext& rRenderContext) vcl::Font aFont = rRenderContext.GetFont(); aFont.SetWeight(WEIGHT_LIGHT); - aFont.SetAlignment(ALIGN_TOP); + aFont.SetAlignment(TextAlign::Top); int nFontHeight = (aSize.Height() - 5) * 2 / (3 * ROW_COUNT); maFontSize = rRenderContext.PixelToLogic(Size(0, nFontHeight)); aFont.SetFontSize(maFontSize); |