diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-19 15:18:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-20 08:04:53 +0200 |
commit | 1e822e401ea8fe950c7fb62172ac61d8396c98e9 (patch) | |
tree | 3a29227adfe1c5ec9209d7e7deb2035633104986 /sw/source/uibase/utlui/shdwcrsr.cxx | |
parent | b225980d2d65694278c9ed89512fbe21b08febd6 (diff) |
use tools::Long in sw
Change-Id: I44be72b3a9b14823ec37a3c799cffb4fb4d6e1de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104527
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/utlui/shdwcrsr.cxx')
-rw-r--r-- | sw/source/uibase/utlui/shdwcrsr.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/uibase/utlui/shdwcrsr.cxx b/sw/source/uibase/utlui/shdwcrsr.cxx index dbdf78b49ccb..dfe40700d726 100644 --- a/sw/source/uibase/utlui/shdwcrsr.cxx +++ b/sw/source/uibase/utlui/shdwcrsr.cxx @@ -29,7 +29,7 @@ SwShadowCursor::~SwShadowCursor() DrawCursor( aOldPt, nOldHeight, nOldMode ); } -void SwShadowCursor::SetPos( const Point& rPt, long nHeight, sal_uInt16 nMode ) +void SwShadowCursor::SetPos( const Point& rPt, tools::Long nHeight, sal_uInt16 nMode ) { Point aPt( pWin->LogicToPixel( rPt )); nHeight = pWin->LogicToPixel( Size( 0, nHeight )).Height(); @@ -45,17 +45,17 @@ void SwShadowCursor::SetPos( const Point& rPt, long nHeight, sal_uInt16 nMode ) } } -void SwShadowCursor::DrawTri( const Point& rPt, long nHeight, bool bLeft ) +void SwShadowCursor::DrawTri( const Point& rPt, tools::Long nHeight, bool bLeft ) { - long nLineDiff = nHeight / 2; - long nLineDiffHalf = nLineDiff / 2; + tools::Long nLineDiff = nHeight / 2; + tools::Long nLineDiffHalf = nLineDiff / 2; // Dot above Point aPt1( (bLeft ? rPt.X() - 3 : rPt.X() + 3), rPt.Y() + nLineDiffHalf ); // Dot below Point aPt2( aPt1.X(), aPt1.Y() + nHeight - nLineDiff - 1 ); - long nDiff = bLeft ? -1 : 1; + tools::Long nDiff = bLeft ? -1 : 1; while( aPt1.Y() <= aPt2.Y() ) { pWin->DrawLine( aPt1, aPt2 ); @@ -65,7 +65,7 @@ void SwShadowCursor::DrawTri( const Point& rPt, long nHeight, bool bLeft ) } } -void SwShadowCursor::DrawCursor( const Point& rPt, long nHeight, sal_uInt16 nMode ) +void SwShadowCursor::DrawCursor( const Point& rPt, tools::Long nHeight, sal_uInt16 nMode ) { nHeight = (((nHeight / 4)+1) * 4) + 1; @@ -97,11 +97,11 @@ void SwShadowCursor::Paint() tools::Rectangle SwShadowCursor::GetRect() const { - long nH = nOldHeight; + tools::Long nH = nOldHeight; Point aPt( aOldPt ); nH = (((nH / 4)+1) * 4) + 1; - long nWidth = nH / 4 + 3 + 1; + tools::Long nWidth = nH / 4 + 3 + 1; Size aSz( nWidth, nH ); |