diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-26 13:41:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-27 14:41:22 +0100 |
commit | 7290ce233de89319549cf47899905170a65593c7 (patch) | |
tree | 91fec5d42153b3fbd55dfd81e144de7f8587afe9 /editeng/source | |
parent | f691472b6ca89610eaf70c85640361fcee50ae9b (diff) |
remove unused EVControlBits enum values
Change-Id: I4e10f0a2f40f9e7b6cc40a810468f43b2ab97aa9
Reviewed-on: https://gerrit.libreoffice.org/64090
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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); } |