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/wrtsh/wrtsh2.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/wrtsh/wrtsh2.cxx')
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh2.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx index 1486b83a22c7..1ff5866f5dd2 100644 --- a/sw/source/uibase/wrtsh/wrtsh2.cxx +++ b/sw/source/uibase/wrtsh/wrtsh2.cxx @@ -77,7 +77,7 @@ void SwWrtShell::Insert(SwField &rField) SwRewriter aRewriter; aRewriter.AddRule(UndoArg1, rField.GetDescription()); - StartUndo(UNDO_INSERT, &aRewriter); + StartUndo(SwUndoId::INSERT, &aRewriter); bool bDeleted = false; std::unique_ptr<SwPaM> pAnnotationTextRange; @@ -348,12 +348,12 @@ void SwWrtShell::ClickToField( const SwField& rField ) if( nSlotId ) { - StartUndo( UNDO_START ); + StartUndo( SwUndoId::START ); //#97295# immediately select the right shell GetView().StopShellTimer(); GetView().GetViewFrame()->GetDispatcher()->Execute( nSlotId, SfxCallMode::SYNCHRON|SfxCallMode::RECORD ); - EndUndo( UNDO_END ); + EndUndo( SwUndoId::END ); } } break; @@ -571,10 +571,10 @@ void SwWrtShell::NavigatorPaste( const NaviContentBookmark& rBkmk, // the undostack. Then the change of the section don't create // any undoobject. - BUG 69145 bool bDoesUndo = DoesUndo(); - SwUndoId nLastUndoId(UNDO_EMPTY); + SwUndoId nLastUndoId(SwUndoId::EMPTY); if (GetLastUndoInfo(nullptr, & nLastUndoId)) { - if (UNDO_INSSECTION != nLastUndoId) + if (SwUndoId::INSSECTION != nLastUndoId) { DoUndo(false); } |