diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-08-29 18:38:32 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-08-29 18:40:02 +0200 |
commit | 0ebe350b5c6bef25ddfa72a1c5e998aadaabe3b1 (patch) | |
tree | 39ddc64c68a1f4667d9f89aa8d811e8c38c48795 /svtools | |
parent | da4c200da332e637eb275c27a835eedd6c99dff1 (diff) |
Use different cursor when resizing borders than moving.
Change-Id: Ie77f9bfc44708db6555386eeb8b2da3a39259f42
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/ruler.cxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index 3b1f6e88dcc1..f9eea513b566 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -2019,9 +2019,23 @@ void Ruler::MouseMove( const MouseEvent& rMEvt ) if (mpCurrentHitTest->bSize) { if (mnWinStyle & WB_HORZ) - ePtrStyle = POINTER_ESIZE; + { + if (mpCurrentHitTest->mnDragSize == RULER_DRAGSIZE_1) + ePtrStyle = POINTER_TAB_SELECT_W; + else if (mpCurrentHitTest->mnDragSize == RULER_DRAGSIZE_2) + ePtrStyle = POINTER_TAB_SELECT_E; + else + ePtrStyle = POINTER_ESIZE; + } else - ePtrStyle = POINTER_SSIZE; + { + if (mpCurrentHitTest->mnDragSize == RULER_DRAGSIZE_1) + ePtrStyle = POINTER_WINDOW_NSIZE; + else if (mpCurrentHitTest->mnDragSize == RULER_DRAGSIZE_2) + ePtrStyle = POINTER_WINDOW_SSIZE; + else + ePtrStyle = POINTER_SSIZE; + } } else if (mpCurrentHitTest->bSizeBar) { |