From 8689bd5490b473a7ffb149bbe5f7f0683f679c72 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 29 Jul 2021 20:49:29 +0100 Subject: convert TextAlign to scoped enum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id2c466eacb44f0ea6adba75a0ac0be8be8e7ed4c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119682 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- basctl/source/basicide/baside2.cxx | 4 ++-- basctl/source/dlged/dlged.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'basctl/source') diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index 4e562420ef19..d5f1e07e6e4f 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -121,7 +121,7 @@ void lcl_PrintHeader( Printer* pPrinter, sal_uInt16 nPages, sal_uInt16 nCurPage, vcl::Font aFont( aOldFont ); aFont.SetWeight( WEIGHT_BOLD ); - aFont.SetAlignment( ALIGN_BOTTOM ); + aFont.SetAlignment( TextAlign::Bottom ); pPrinter->SetFont( aFont ); tools::Long nFontHeight = pPrinter->GetTextHeight(); @@ -829,7 +829,7 @@ sal_Int32 ModulWindow::FormatAndPrint( Printer* pPrinter, sal_Int32 nPrintPage ) vcl::Font aOldFont( pPrinter->GetFont() ); vcl::Font aFont( GetEditEngine()->GetFont() ); - aFont.SetAlignment( ALIGN_BOTTOM ); + aFont.SetAlignment( TextAlign::Bottom ); aFont.SetTransparent( true ); aFont.SetFontSize( Size( 0, 360 ) ); pPrinter->SetFont( aFont ); diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index 34467260c140..e54ab203411c 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -1106,7 +1106,7 @@ static void lcl_PrintHeader( Printer* pPrinter, const OUString& rTitle ) // not vcl::Font aFont( pPrinter->GetFont() ); aFont.SetWeight( WEIGHT_BOLD ); - aFont.SetAlignment( ALIGN_BOTTOM ); + aFont.SetAlignment( TextAlign::Bottom ); pPrinter->SetFont( aFont ); tools::Long const nFontHeight = pPrinter->GetTextHeight(); @@ -1148,7 +1148,7 @@ void DlgEditor::Print( Printer* pPrinter, const OUString& rTitle ) // not wor MapMode aMap( MapUnit::Map100thMM ); pPrinter->SetMapMode( aMap ); vcl::Font aFont; - aFont.SetAlignment( ALIGN_BOTTOM ); + aFont.SetAlignment( TextAlign::Bottom ); aFont.SetFontSize( Size( 0, 360 )); pPrinter->SetFont( aFont ); -- cgit v1.2.3