diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-25 15:43:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-02-26 11:55:20 +0100 |
commit | cf828ae14324eca743c7a51f79ffe22238d1fe8f (patch) | |
tree | 0278c06092acddea76b74835ddc829201a6ef954 /svtools/source | |
parent | da457f41f8f0a14014ff9f122467f3a26eb1ac20 (diff) |
rename one ImplHitTest so using window::ImplHitTest can be dropped
Change-Id: I8a77654d4c6629ee76d57fc26bb022c69dab0b9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111559
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/ruler.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index 7b1aa9549e8b..1f4a5d4eafac 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -1412,7 +1412,7 @@ void Ruler::ImplUpdate( bool bMustCalc ) } } -bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest, +bool Ruler::ImplDoHitTest( const Point& rPos, RulerSelection* pHitTest, bool bRequireStyle, RulerIndentStyle nRequiredStyle ) const { sal_Int32 i; @@ -1728,7 +1728,7 @@ bool Ruler::ImplDocHitTest( const Point& rPos, RulerType eDragType, else aPos.setX( RULER_OFF + 1 ); - if ( ImplHitTest( aPos, pHitTest, bRequiredStyle, nRequiredStyle ) ) + if ( ImplDoHitTest( aPos, pHitTest, bRequiredStyle, nRequiredStyle ) ) { if ( (pHitTest->eType == eDragType) || (eDragType == RulerType::DontKnow) ) return true; @@ -1744,7 +1744,7 @@ bool Ruler::ImplDocHitTest( const Point& rPos, RulerType eDragType, else aPos.setX( mnWidth - RULER_OFF - 1 ); - if ( ImplHitTest( aPos, pHitTest, bRequiredStyle, nRequiredStyle ) ) + if ( ImplDoHitTest( aPos, pHitTest, bRequiredStyle, nRequiredStyle ) ) { if ( (pHitTest->eType == eDragType) || (eDragType == RulerType::DontKnow) ) return true; @@ -1759,7 +1759,7 @@ bool Ruler::ImplDocHitTest( const Point& rPos, RulerType eDragType, else aPos.setX( RULER_OFF + (mnVirHeight / 2) ); - if ( ImplHitTest( aPos, pHitTest ) ) + if ( ImplDoHitTest( aPos, pHitTest ) ) { if ( (pHitTest->eType == eDragType) || (eDragType == RulerType::DontKnow) ) return true; @@ -1935,7 +1935,7 @@ void Ruler::MouseButtonDown( const MouseEvent& rMEvt ) else { std::unique_ptr<RulerSelection> pHitTest(new RulerSelection); - bool bHitTestResult = ImplHitTest(aMousePos, pHitTest.get()); + bool bHitTestResult = ImplDoHitTest(aMousePos, pHitTest.get()); if ( nMouseClicks == 1 ) { @@ -1953,7 +1953,7 @@ void Ruler::MouseButtonDown( const MouseEvent& rMEvt ) mnDragPos = 0; // call HitTest again as a click, for example, could set a new tab - if ( ImplHitTest(aMousePos, pHitTest.get()) ) + if ( ImplDoHitTest(aMousePos, pHitTest.get()) ) ImplStartDrag(pHitTest.get(), nMouseModifier); } } @@ -1986,7 +1986,7 @@ void Ruler::MouseMove( const MouseEvent& rMEvt ) maHoverSelection.eType = RulerType::DontKnow; - if (ImplHitTest( rMEvt.GetPosPixel(), mxCurrentHitTest.get() )) + if (ImplDoHitTest( rMEvt.GetPosPixel(), mxCurrentHitTest.get() )) { maHoverSelection = *mxCurrentHitTest; @@ -2319,7 +2319,7 @@ RulerType Ruler::GetRulerType( const Point& rPos, sal_uInt16* pAryPos ) Invalidate(InvalidateFlags::NoErase); } - (void)ImplHitTest(rPos, &aHitTest); + (void)ImplDoHitTest(rPos, &aHitTest); // return values if ( pAryPos ) |