summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/font.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/outdev/font.cxx')
-rw-r--r--vcl/source/outdev/font.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index 6c761ec4bf07..220b5ddaa976 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -61,7 +61,7 @@ FontMetric OutputDevice::GetDevFont( int nDevFontIndex ) const
aFontMetric.SetPitch( rData.GetPitch() );
aFontMetric.SetWeight( rData.GetWeight() );
aFontMetric.SetItalic( rData.GetItalic() );
- aFontMetric.SetAlignment( TextAlign::ALIGN_TOP );
+ aFontMetric.SetAlignment( TextAlign::Top );
aFontMetric.SetWidthType( rData.GetWidthType() );
aFontMetric.SetQuality( rData.GetQuality() );
}
@@ -199,7 +199,7 @@ FontMetric OutputDevice::GetFontMetric() const
aMetric.SetPitch( xFontMetric->GetPitch() );
aMetric.SetWeight( xFontMetric->GetWeight() );
aMetric.SetItalic( xFontMetric->GetItalic() );
- aMetric.SetAlignment( TextAlign::ALIGN_TOP );
+ aMetric.SetAlignment( TextAlign::Top );
aMetric.SetWidthType( xFontMetric->GetWidthType() );
if ( pFontInstance->mnOwnOrientation )
aMetric.SetOrientation( pFontInstance->mnOwnOrientation );
@@ -1017,12 +1017,12 @@ bool OutputDevice::ImplNewFont() const
// calculate text offset depending on TextAlignment
TextAlign eAlign = maFont.GetAlignment();
- if ( eAlign == ALIGN_BASELINE )
+ if ( eAlign == TextAlign::Baseline )
{
mnTextOffX = 0;
mnTextOffY = 0;
}
- else if ( eAlign == ALIGN_TOP )
+ else if ( eAlign == TextAlign::Top )
{
mnTextOffX = 0;
mnTextOffY = +pFontInstance->mxFontMetric->GetAscent() + mnEmphasisAscent;
@@ -1032,7 +1032,7 @@ bool OutputDevice::ImplNewFont() const
aOriginPt.RotateAround( mnTextOffX, mnTextOffY, pFontInstance->mnOrientation );
}
}
- else // eAlign == ALIGN_BOTTOM
+ else // eAlign == TextAlign::Bottom
{
mnTextOffX = 0;
mnTextOffY = -pFontInstance->mxFontMetric->GetDescent() + mnEmphasisDescent;
href='/cgit/lo/core/commit/xmlhelp?h=cp-6.4-31&id=743d5604c22e2c599ec22c1afd8c7c02388d575f'>loplugin:indentation in writerfilter..xmloffNoel Grandin 2019-02-08o3tl::make_unique -> std::make_unique in tools..xmloffGabor Kelemen 2019-01-24loplugin:constparams in ucb..xmlhelpNoel Grandin 2018-12-21use unique_ptr in xmlhelpNoel Grandin 2018-12-05loplugin:unnecessaryparen include more assignmentsNoel Grandin 2018-11-27convert treeview::TVDom::Kind to scoped enumNoel Grandin 2018-11-09loplugin:useuniqueptr in ResultSetForQueryNoel Grandin 2018-10-20pvs-studio: The 'aIndexFolderResultVector' variable is used after it was movedCaolán McNamara 2018-10-10Set up our own libxslt security context in xmlhelp, as per #i117643.Damjan Jovanovic 2018-10-09Extend loplugin:redundantinline to catch inline functions w/o external linkageStephan Bergmann 2018-10-01loplugin:useuniqueptr in TVChildTargetNoel Grandin 2018-09-18loplugin:useuniqueptr in xmlhelp::DatabasesNoel Grandin 2018-09-17New loplugin:externalStephan Bergmann 2018-09-15Simplify containers iterations in xmlhelp, xmlreader, xmlscript, xmlsecurityArkadiy Illarionov 2018-09-13loplugin:constfields in xmlhelpNoel Grandin 2018-09-13tdf#42949 Fix IWYU warnings in include/ucbhelper/*Gabor Kelemen 2018-09-13loplugin:simplifyconstruct in writerfilter..xmlsecurityNoel Grandin 2018-09-08loplugin:useuniqueptr in xmlhelpNoel Grandin 2018-08-22loplugin:useuniqueptr in chelp::DynamicResultSetNoel Grandin 2018-08-02loplugin:stringloop in variousNoel Grandin 2018-07-31Fix typosAndrea Gelmini 2018-07-12Add missing sal/log.hxx headersGabor Kelemen 2018-07-11clean up UNO available() implementationsNoel Grandin 2018-06-26tdf#96099 Remove some trivial container iterator typedefsArkadiy Illarionov 2018-06-07tdf#96099 Remove std::vector typedefsAbhyudaya Sharma 2018-05-17loplugin:unusedfields in tools..xmlhelpNoel Grandin 2018-05-14loplugin:useuniqueptr in helpdatafileproxy::HdfNoel Grandin 2018-04-01remove unused processfactory.hxx includesJochen Nitschke 2018-03-12loplugin:redundantfcast look for redundant copies in return statementsNoel Grandin 2018-03-05loplugin:useuniqueptr in chelp::ResultSetBaseNoel Grandin