diff options
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 30 | ||||
-rw-r--r-- | editeng/source/editeng/impedit.hxx | 1 |
2 files changed, 1 insertions, 30 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 0f91a4fa24eb..b17c8c9c5386 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -645,10 +645,7 @@ void ImpEditView::SetOutputArea( const tools::Rectangle& rRect ) if ( aOutArea.Bottom() < aOutArea.Top() ) aOutArea.SetBottom( aOutArea.Top() ); - if ( DoBigScroll() ) - SetScrollDiffX( static_cast<sal_uInt16>(aOutArea.GetWidth()) * 3 / 10 ); - else - SetScrollDiffX( static_cast<sal_uInt16>(aOutArea.GetWidth()) * 2 / 10 ); + SetScrollDiffX( static_cast<sal_uInt16>(aOutArea.GetWidth()) * 2 / 10 ); } void ImpEditView::InvalidateAtWindow(const tools::Rectangle& rRect) @@ -995,31 +992,6 @@ void ImpEditView::ShowCursor( bool bGotoCursor, bool bForceVisCursor ) long nDiffX = !IsVertical() ? nDocDiffX : (IsTopToBottom() ? -nDocDiffY : nDocDiffY); long nDiffY = !IsVertical() ? nDocDiffY : (IsTopToBottom() ? nDocDiffX : -nDocDiffX); - // Negative: Back to the top or left edge - if ( ( std::abs( nDiffY ) > pEditEngine->GetOnePixelInRef() ) && DoBigScroll() ) - { - long nH = aOutArea.GetHeight() / 4; - if ( ( nH > aEditCursor.GetHeight() ) && ( std::abs( nDiffY ) < nH ) ) - { - if ( nDiffY < 0 ) - nDiffY -= nH; - else - nDiffY += nH; - } - } - - if ( ( std::abs( nDiffX ) > pEditEngine->GetOnePixelInRef() ) && DoBigScroll() ) - { - long nW = aOutArea.GetWidth() / 4; - if ( std::abs( nDiffX ) < nW ) - { - if ( nDiffY < 0 ) - nDiffY -= nW; - else - nDiffY += nW; - } - } - if ( nDiffX ) pEditEngine->GetInternalEditStatus().GetStatusWord() = pEditEngine->GetInternalEditStatus().GetStatusWord() | EditStatusFlags::HSCROLL; if ( nDiffY ) diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index dffd2534ef69..418ef91f6814 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -382,7 +382,6 @@ public: bool DoSingleLinePaste() const { return bool( nControl & EVControlBits::SINGLELINEPASTE ); } bool DoAutoScroll() const { return bool( nControl & EVControlBits::AUTOSCROLL ); } - bool DoBigScroll() const { return bool( nControl & EVControlBits::BIGSCROLL ); } bool DoAutoSize() const { return bool( nControl & EVControlBits::AUTOSIZE ); } bool DoAutoWidth() const { return bool( nControl & EVControlBits::AUTOSIZEX); } bool DoAutoHeight() const { return bool( nControl & EVControlBits::AUTOSIZEY); } |