diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-26 13:45:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-27 14:41:41 +0100 |
commit | b6449c65daa2854b8241e14c0966721412f16515 (patch) | |
tree | 62ee8134dca3ec5884c3008c263806a6deca71ab /editeng | |
parent | 7290ce233de89319549cf47899905170a65593c7 (diff) |
remove unused EEControlBits enum value
Change-Id: Ic363903bb6e32c029f5aac6810f69d590df1bf79
Reviewed-on: https://gerrit.libreoffice.org/64091
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editstt2.hxx | 3 | ||||
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 10 | ||||
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 5 |
3 files changed, 0 insertions, 18 deletions
diff --git a/editeng/source/editeng/editstt2.hxx b/editeng/source/editeng/editstt2.hxx index 15726ef24032..48d5f1e81da6 100644 --- a/editeng/source/editeng/editstt2.hxx +++ b/editeng/source/editeng/editstt2.hxx @@ -35,9 +35,6 @@ public: bool UseCharAttribs() const { return bool( nControlBits & EEControlBits::USECHARATTRIBS ); } - bool NotifyCursorMovements() const - { return bool( nControlBits & EEControlBits::CRSRLEFTPARA ); } - bool UseIdleFormatter() const { return bool( nControlBits & EEControlBits::DOIDLEFORMAT); } diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index b17c8c9c5386..390f524ddab4 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1302,14 +1302,6 @@ bool ImpEditView::PostKeyEvent( const KeyEvent& rKeyEvent, vcl::Window const * p bool ImpEditView::MouseButtonUp( const MouseEvent& rMouseEvent ) { - if ( pEditEngine->GetInternalEditStatus().NotifyCursorMovements() ) - { - if ( pEditEngine->GetInternalEditStatus().GetPrevParagraph() != pEditEngine->GetEditDoc().GetPos( GetEditSelection().Max().GetNode() ) ) - { - pEditEngine->GetInternalEditStatus().GetStatusWord() = pEditEngine->GetInternalEditStatus().GetStatusWord() | EditStatusFlags::CRSRLEFTPARA; - pEditEngine->pImpEditEngine->CallStatusHdl(); - } - } nTravelXPos = TRAVEL_X_DONTKNOW; nCursorBidiLevel = CURSOR_BIDILEVEL_DONTKNOW; nExtraCursorFlags = GetCursorFlags::NONE; @@ -1338,8 +1330,6 @@ void ImpEditView::ReleaseMouse() bool ImpEditView::MouseButtonDown( const MouseEvent& rMouseEvent ) { pEditEngine->CheckIdleFormatter(); // If fast typing and mouse button downs - if ( pEditEngine->GetInternalEditStatus().NotifyCursorMovements() ) - pEditEngine->GetInternalEditStatus().GetPrevParagraph() = pEditEngine->GetEditDoc().GetPos( GetEditSelection().Max().GetNode() ); nTravelXPos = TRAVEL_X_DONTKNOW; nExtraCursorFlags = GetCursorFlags::NONE; nCursorBidiLevel = CURSOR_BIDILEVEL_DONTKNOW; diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index d892953fb062..8dcf586d3a54 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -902,11 +902,6 @@ EditSelection const & ImpEditEngine::MoveCursor( const KeyEvent& rKeyEvent, Edit if ( aOldPaM != aPaM ) { CursorMoved( aOldPaM.GetNode() ); - if ( aStatus.NotifyCursorMovements() && ( aOldPaM.GetNode() != aPaM.GetNode() ) ) - { - aStatus.GetStatusWord() = aStatus.GetStatusWord() | EditStatusFlags::CRSRLEFTPARA; - aStatus.GetPrevParagraph() = aEditDoc.GetPos( aOldPaM.GetNode() ); - } } else aStatus.GetStatusWord() = aStatus.GetStatusWord() | EditStatusFlags::CRSRMOVEFAIL; |