summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/grfsh.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-16 09:11:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-16 07:56:25 +0000
commit8ae9dcec653c4ad3eeb8c3e1fa9b1684e2bd64a2 (patch)
treed72e1a17603bb146cce0d02ffeec46acb57335c6 /sw/source/uibase/shells/grfsh.cxx
parent3b7d751ad4f950aae0641a75b2ea993025629c9d (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/shells/grfsh.cxx')
-rw-r--r--sw/source/uibase/shells/grfsh.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx
index 1c291f973fe3..4a7e9cfcae5d 100644
--- a/sw/source/uibase/shells/grfsh.cxx
+++ b/sw/source/uibase/shells/grfsh.cxx
@@ -169,7 +169,7 @@ void SwGrfShell::Execute(SfxRequest &rReq)
if( aDialog->Execute() == RET_OK )
{
rSh.StartAllAction();
- rSh.StartUndo(UNDO_START);
+ rSh.StartUndo(SwUndoId::START);
Rectangle aScaledCropedRectangle = aDialog->GetScaledCropRectangle();
aCrop.SetLeft( convertMm100ToTwip( aScaledCropedRectangle.Left() ));
@@ -183,7 +183,7 @@ void SwGrfShell::Execute(SfxRequest &rReq)
rSh.SetAttrItem(aCrop);
rSh.SetAttrItem(aMirror);
- rSh.EndUndo(UNDO_END);
+ rSh.EndUndo(SwUndoId::END);
rSh.EndAllAction();
}
}
@@ -360,7 +360,7 @@ void SwGrfShell::Execute(SfxRequest &rReq)
if (pDlg->Execute() == RET_OK)
{
rSh.StartAllAction();
- rSh.StartUndo(UNDO_START);
+ rSh.StartUndo(SwUndoId::START);
const SfxPoolItem* pItem;
SfxItemSet* pSet = const_cast<SfxItemSet*>(pDlg->GetOutputItemSet());
rReq.Done(*pSet);
@@ -462,7 +462,7 @@ void SwGrfShell::Execute(SfxRequest &rReq)
if( aGrfSet.Count() )
rSh.SetAttrSet( aGrfSet );
- rSh.EndUndo(UNDO_END);
+ rSh.EndUndo(SwUndoId::END);
rSh.EndAllAction();
}
}
@@ -857,7 +857,7 @@ void SwGrfShell::ExecuteRotation(SfxRequest &rReq)
}
rShell.StartAllAction();
- rShell.StartUndo(UNDO_START);
+ rShell.StartUndo(SwUndoId::START);
Graphic aGraphic = *rShell.GetGraphic();
GraphicNativeTransform aTransform(aGraphic);
@@ -902,7 +902,7 @@ void SwGrfShell::ExecuteRotation(SfxRequest &rReq)
rShell.SetAttrItem(aCrop);
- rShell.EndUndo(UNDO_END);
+ rShell.EndUndo(SwUndoId::END);
rShell.EndAllAction();
}