author | László Németh <nemeth@numbertext.org> | 2024-06-08 23:39:13 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2024-06-10 23:22:20 +0200 |
commit | b285cf49dffe8a74f0ba54b88b781db6a68a4f3b (patch) | |
tree | 876739c8dde8e64505dfa50bc2fd44af23360f65 | |
parent | 4cd4be3e7cc77953813a6f1713b6b8245ca92214 (diff) |
-rw-r--r-- | include/svtools/ruler.hxx | 11 | ||||
-rw-r--r-- | svtools/source/control/ruler.cxx | 20 | ||||
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter6.cxx | 134 | ||||
-rw-r--r-- | sw/source/core/frmedt/fetab.cxx | 43 | ||||
-rw-r--r-- | sw/source/uibase/docvw/edtwin3.cxx | 10 |
diff --git a/include/svtools/ruler.hxx b/include/svtools/ruler.hxx index 8acc70aa14c1..a7a0a581f941 100644 --- a/include/svtools/ruler.hxx +++ b/include/svtools/ruler.hxx @@ -691,8 +691,12 @@ private: SVT_DLLPRIVATE bool ImplDoHitTest( const Point& rPosition, RulerSelection* pHitTest, bool bRequiredStyle = false, - RulerIndentStyle nRequiredStyle = RulerIndentStyle::Top ) const; - SVT_DLLPRIVATE bool ImplDocHitTest( const Point& rPos, RulerType eDragType, RulerSelection* pHitTest ) const; + RulerIndentStyle nRequiredStyle = RulerIndentStyle::Top, + tools::Long nTolerance = 1 ) const; + SVT_DLLPRIVATE bool ImplDocHitTest( const Point& rPos, + RulerType eDragType, + RulerSelection* pHitTest, + tools::Long nTolerance = 1 ) const; SVT_DLLPRIVATE bool ImplStartDrag( RulerSelection const * pHitTest, sal_uInt16 nModifier ); SVT_DLLPRIVATE void ImplDrag( const Point& rPos ); SVT_DLLPRIVATE void ImplEndDrag(); @@ -743,7 +747,8 @@ public: void SetExtraType( RulerExtra eNewExtraType, sal_uInt16 nStyle = 0 ); bool StartDocDrag( const MouseEvent& rMEvt, - RulerType eDragType ); + RulerType eDragType, + tools::Long nTolerance = 1 ); RulerType GetDragType() const { return meDragType; } tools::Long GetDragPos() const { return mnDragPos; } sal_uInt16 GetDragAryPos() const { return mnDragAryPos; } diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx |