diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-08 08:58:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-08 09:07:34 +0000 |
commit | 1f4e0359d3cee2780944f64025a63c208720c74d (patch) | |
tree | f99934a01892ede88b5213655de481919e5edfab /sw/source/core/inc/swfont.hxx | |
parent | 9cacb6ad9f5a012bc892cf9893cd8d37a2a5f304 (diff) |
convert SvxShadowLocation to scoped enum
Change-Id: Ie51995579312328538263172cd3173641df89bca
Reviewed-on: https://gerrit.libreoffice.org/34965
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/inc/swfont.hxx')
-rw-r--r-- | sw/source/core/inc/swfont.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx index 4b94ff256bdb..39a302fc6cde 100644 --- a/sw/source/core/inc/swfont.hxx +++ b/sw/source/core/inc/swfont.hxx @@ -872,8 +872,8 @@ inline sal_uInt16 SwFont::GetTopBorderSpace() const { nRet += m_aTopBorder.get().GetScaledWidth() + m_nTopBorderDist; } - if( m_aShadowLocation == SVX_SHADOW_TOPLEFT || - m_aShadowLocation == SVX_SHADOW_TOPRIGHT ) + if( m_aShadowLocation == SvxShadowLocation::TopLeft || + m_aShadowLocation == SvxShadowLocation::TopRight ) { nRet += m_nShadowWidth; } @@ -887,8 +887,8 @@ inline sal_uInt16 SwFont::GetBottomBorderSpace() const { nRet += m_aBottomBorder.get().GetScaledWidth() + m_nBottomBorderDist; } - if( m_aShadowLocation == SVX_SHADOW_BOTTOMLEFT || - m_aShadowLocation == SVX_SHADOW_BOTTOMRIGHT ) + if( m_aShadowLocation == SvxShadowLocation::BottomLeft || + m_aShadowLocation == SvxShadowLocation::BottomRight ) { nRet += m_nShadowWidth; } @@ -902,8 +902,8 @@ inline sal_uInt16 SwFont::GetRightBorderSpace() const { nRet += m_aRightBorder.get().GetScaledWidth() + m_nRightBorderDist; } - if( m_aShadowLocation == SVX_SHADOW_TOPRIGHT || - m_aShadowLocation == SVX_SHADOW_BOTTOMRIGHT ) + if( m_aShadowLocation == SvxShadowLocation::TopRight || + m_aShadowLocation == SvxShadowLocation::BottomRight ) { nRet += m_nShadowWidth; } @@ -917,8 +917,8 @@ inline sal_uInt16 SwFont::GetLeftBorderSpace() const { nRet += m_aLeftBorder.get().GetScaledWidth() + m_nLeftBorderDist; } - if( m_aShadowLocation == SVX_SHADOW_TOPLEFT || - m_aShadowLocation == SVX_SHADOW_BOTTOMLEFT ) + if( m_aShadowLocation == SvxShadowLocation::TopLeft || + m_aShadowLocation == SvxShadowLocation::BottomLeft ) { nRet += m_nShadowWidth; } |