summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl/swdtflvr.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/dochdl/swdtflvr.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/dochdl/swdtflvr.cxx')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 3a3063bda6ef..83bfd70f4e43 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -780,11 +780,11 @@ void SwTransferable::DeleteSelection()
return;
// ask for type of selection before action-bracketing
const int nSelection = m_pWrtShell->GetSelectionType();
- m_pWrtShell->StartUndo( UNDO_START );
+ m_pWrtShell->StartUndo( SwUndoId::START );
if( ( nsSelectionType::SEL_TXT | nsSelectionType::SEL_TBL ) & nSelection )
m_pWrtShell->IntelligentCut( nSelection );
m_pWrtShell->DelRight();
- m_pWrtShell->EndUndo( UNDO_END );
+ m_pWrtShell->EndUndo( SwUndoId::END );
}
int SwTransferable::PrepareForCopy( bool bIsCut )
@@ -1250,7 +1250,7 @@ bool SwTransferable::PasteData( TransferableDataHelper& rData,
if( bDelSel )
// #i34830#
- pAction.reset(new SwTrnsfrActionAndUndo( &rSh, UNDO_PASTE_CLIPBOARD, true ));
+ pAction.reset(new SwTrnsfrActionAndUndo( &rSh, SwUndoId::PASTE_CLIPBOARD, true ));
}
SwTransferable *pTrans=nullptr, *pTunneledTrans=GetSwTransferable( rData );
@@ -1295,7 +1295,7 @@ bool SwTransferable::PasteData( TransferableDataHelper& rData,
{
if( !pAction )
{
- pAction.reset(new SwTrnsfrActionAndUndo( &rSh, UNDO_PASTE_CLIPBOARD));
+ pAction.reset(new SwTrnsfrActionAndUndo( &rSh, SwUndoId::PASTE_CLIPBOARD));
}
// in Drag&Drop MessageBoxes must not be showed
@@ -3185,7 +3185,7 @@ void SwTransferable::DragFinished( sal_Int8 nAction )
//delete.
m_pWrtShell->StartAllAction();
- m_pWrtShell->StartUndo( UNDO_UI_DRAG_AND_MOVE );
+ m_pWrtShell->StartUndo( SwUndoId::UI_DRAG_AND_MOVE );
if ( m_pWrtShell->IsTableMode() )
m_pWrtShell->DeleteTableSel();
else
@@ -3195,7 +3195,7 @@ void SwTransferable::DragFinished( sal_Int8 nAction )
m_pWrtShell->IntelligentCut( m_pWrtShell->GetSelectionType() );
m_pWrtShell->DelRight();
}
- m_pWrtShell->EndUndo( UNDO_UI_DRAG_AND_MOVE );
+ m_pWrtShell->EndUndo( SwUndoId::UI_DRAG_AND_MOVE );
m_pWrtShell->EndAllAction();
}
else
@@ -3247,7 +3247,7 @@ bool SwTransferable::PrivatePaste( SwWrtShell& rShell )
const int nSelection = rShell.GetSelectionType();
- SwTrnsfrActionAndUndo aAction( &rShell, UNDO_PASTE_CLIPBOARD);
+ SwTrnsfrActionAndUndo aAction( &rShell, SwUndoId::PASTE_CLIPBOARD);
bool bKillPaMs = false;
@@ -3391,7 +3391,7 @@ bool SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
const int nSel = rSrcSh.GetSelectionType();
- SwUndoId eUndoId = bMove ? UNDO_UI_DRAG_AND_MOVE : UNDO_UI_DRAG_AND_COPY;
+ SwUndoId eUndoId = bMove ? SwUndoId::UI_DRAG_AND_MOVE : SwUndoId::UI_DRAG_AND_COPY;
SwRewriter aRewriter;