diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-10-20 07:27:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-21 08:13:05 +0200 |
commit | 0fb58a1ff168ae122e9c8993a3136658e3b0e3f0 (patch) | |
tree | 908983b02f466e0a49599edc70aaa1baaa240371 /sw/source/core/inc/swfont.hxx | |
parent | b84afd2188d6993c91081885dc24664bd3f1cc73 (diff) |
new tools::Degree10 strong typedef
partly to flush some use of "long" out the codebase,
but also to make it obvious which units are being used
for angle values.
Change-Id: I1dc22494ca42c4677a63f685d5903f2b89886dc2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104548
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
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 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx index 96d1fbe187b5..f58a65ac9455 100644 --- a/sw/source/core/inc/swfont.hxx +++ b/sw/source/core/inc/swfont.hxx @@ -48,7 +48,7 @@ const sal_Unicode CH_FULL_BLANK = 0x3000; const sal_Unicode CH_NB_SPACE = 0xA0; const sal_Unicode CH_SIX_PER_EM = 0x2006; // six-per-em space -sal_uInt16 UnMapDirection( sal_uInt16 nDir, const bool bVertFormat, const bool bVertFormatLRBT ); +Degree10 UnMapDirection( Degree10 nDir, const bool bVertFormat, const bool bVertFormatLRBT ); class SwSubFont : public SvxFont { @@ -92,7 +92,7 @@ class SwSubFont : public SvxFont inline void SetStrikeout( const FontStrikeout eStrikeout ); inline void SetItalic( const FontItalic eItalic ); inline void SetOutline( const bool bOutline ); - inline void SetVertical( const sal_uInt16 nDir, const bool bVertFormat ); + inline void SetVertical( const Degree10 nDir, const bool bVertFormat ); inline void SetShadow( const bool bShadow ); inline void SetAutoKern( FontKerning nAutoKern ); inline void SetWordLineMode( const bool bWordLineMode ); @@ -216,7 +216,7 @@ public: void SetOverColor( const Color &rColor ) { m_aOverColor = rColor; } inline void SetStrikeout( const FontStrikeout eStrikeout ); inline void SetOutline( const bool bOutline ); - void SetVertical(sal_uInt16 nDir, const bool bVertLayout = false, + void SetVertical(Degree10 nDir, const bool bVertLayout = false, const bool bVertLayoutLRBT = false); inline void SetShadow( const bool bShadow ); inline void SetAutoKern( FontKerning nAutoKern ); @@ -281,7 +281,7 @@ public: FontWeight GetWeight() const { return m_aSub[m_nActual].GetWeight(); } FontEmphasisMark GetEmphasisMark() const { return m_aSub[m_nActual].GetEmphasisMark(); } - sal_uInt16 GetOrientation(const bool bVertLayout = false, + Degree10 GetOrientation(const bool bVertLayout = false, const bool bVertFormatLRBT = false) const; const OUString& GetName( const SwFontScript nWhich ) const @@ -817,7 +817,7 @@ inline void SwFont::SetGreyWave( const bool bNew ) m_bGreyWave = bNew; } -inline void SwSubFont::SetVertical( const sal_uInt16 nDir, const bool bVertFormat ) +inline void SwSubFont::SetVertical( const Degree10 nDir, const bool bVertFormat ) { m_nFontCacheId = nullptr; Font::SetVertical( bVertFormat ); |