diff options
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r-- | sw/source/uibase/app/appenv.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/app/docst.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/app/docstyle.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/app/appenv.cxx b/sw/source/uibase/app/appenv.cxx index 286ddc49ed42..7296f06c69d1 100644 --- a/sw/source/uibase/app/appenv.cxx +++ b/sw/source/uibase/app/appenv.cxx @@ -267,7 +267,7 @@ void SwModule::InsertEnv( SfxRequest& rReq ) //not be deleted on inserting envelopes pSh->EnterStdMode(); // Here it goes (insert) - pSh->StartUndo(UNDO_UI_INSERT_ENVELOPE); + pSh->StartUndo(SwUndoId::UI_INSERT_ENVELOPE); pSh->StartAllAction(); pSh->SttEndDoc(true); @@ -467,7 +467,7 @@ void SwModule::InsertEnv( SfxRequest& rReq ) if (nMode == ENV_NEWDOC) pSh->DoUndo(); else - pSh->EndUndo(UNDO_UI_INSERT_ENVELOPE); + pSh->EndUndo(SwUndoId::UI_INSERT_ENVELOPE); if (nMode == ENV_NEWDOC) { diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx index 7ae5a2fbb700..32cc62f7eafb 100644 --- a/sw/source/uibase/app/docst.cxx +++ b/sw/source/uibase/app/docst.cxx @@ -654,7 +654,7 @@ sal_uInt16 SwDocShell::Edit( sal_uInt16 nRet = nMask; bool bModified = m_pDoc->getIDocumentState().IsModified(); - SwUndoId nNewStyleUndoId(UNDO_EMPTY); + SwUndoId nNewStyleUndoId(SwUndoId::EMPTY); if( bNew ) { @@ -1072,7 +1072,7 @@ SfxStyleFamily SwDocShell::UpdateStyle(const OUString &rName, SfxStyleFamily nFa SwRewriter aRewriter; aRewriter.AddRule(UndoArg1, pColl->GetName()); - GetWrtShell()->StartUndo(UNDO_INSFMTATTR, &aRewriter); + GetWrtShell()->StartUndo(SwUndoId::INSFMTATTR, &aRewriter); GetWrtShell()->FillByEx(pColl); // also apply template to remove hard set attributes GetWrtShell()->SetTextFormatColl( pColl ); diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx index ff9a10de82c3..d384b34f882d 100644 --- a/sw/source/uibase/app/docstyle.cxx +++ b/sw/source/uibase/app/docstyle.cxx @@ -1458,7 +1458,7 @@ void SwDocStyleSheet::SetItemSet( const SfxItemSet& rSet, { SwRewriter aRewriter; aRewriter.AddRule( UndoArg1, GetName() ); - rDoc.GetIDocumentUndoRedo().StartUndo( UNDO_INSFMTATTR, &aRewriter ); + rDoc.GetIDocumentUndoRedo().StartUndo( SwUndoId::INSFMTATTR, &aRewriter ); } SwFormat* pFormat = nullptr; @@ -1720,7 +1720,7 @@ void SwDocStyleSheet::SetItemSet( const SfxItemSet& rSet, if (rDoc.GetIDocumentUndoRedo().DoesUndo()) { - rDoc.GetIDocumentUndoRedo().EndUndo(UNDO_END, nullptr); + rDoc.GetIDocumentUndoRedo().EndUndo(SwUndoId::END, nullptr); } } |