diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-16 09:11:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-16 07:56:25 +0000 |
commit | 8ae9dcec653c4ad3eeb8c3e1fa9b1684e2bd64a2 (patch) | |
tree | d72e1a17603bb146cce0d02ffeec46acb57335c6 /sw/source/uibase/docvw/edtwin.cxx | |
parent | 3b7d751ad4f950aae0641a75b2ea993025629c9d (diff) |
convert SwUndoId to scoped enum
Change-Id: I782fdd53641c0d7c629265b6179de70aa54382f9
Reviewed-on: https://gerrit.libreoffice.org/35246
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/docvw/edtwin.cxx')
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 3532441517a8..99c9a9a62f58 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -2591,7 +2591,7 @@ KEYINPUT_CHECKTABLE_INSDEL: case SwKeyState::GlossaryExpand: { // replace the word or abbreviation with the auto text - rSh.StartUndo( UNDO_START ); + rSh.StartUndo( SwUndoId::START ); OUString sFnd( aTmpQHD.m_aHelpStrings[ aTmpQHD.nCurArrPos ] ); if( aTmpQHD.m_bIsAutoText ) @@ -2616,7 +2616,7 @@ KEYINPUT_CHECKTABLE_INSDEL: m_pQuickHlpData->m_bAppendSpace = !pACorr || pACorr->GetSwFlags().bAutoCmpltAppendBlanc; } - rSh.EndUndo( UNDO_END ); + rSh.EndUndo( SwUndoId::END ); } break; @@ -4474,9 +4474,9 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) } if ( aSttPt != aEndPt ) { - rSh.StartUndo( UNDO_UI_DRAG_AND_COPY ); + rSh.StartUndo( SwUndoId::UI_DRAG_AND_COPY ); rSh.Copy(&rSh, aSttPt, aEndPt); - rSh.EndUndo( UNDO_UI_DRAG_AND_COPY ); + rSh.EndUndo( SwUndoId::UI_DRAG_AND_COPY ); } } else { @@ -4730,10 +4730,10 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) !GetConnectMetaFile() && rSh.VisArea().IsInside( aDocPt )) { - SwUndoId nLastUndoId(UNDO_EMPTY); + SwUndoId nLastUndoId(SwUndoId::EMPTY); if (rSh.GetLastUndoInfo(nullptr, & nLastUndoId)) { - if (UNDO_INS_FROM_SHADOWCRSR == nLastUndoId) + if (SwUndoId::INS_FROM_SHADOWCRSR == nLastUndoId) { rSh.Undo(); } |