diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-29 12:45:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-30 08:40:03 +0200 |
commit | 2c86c131f77cfb70033ea83700dae7064c5127dd (patch) | |
tree | c34d01a90fc20be0f10356cbba547e923b9019b6 /svx | |
parent | 110528e6a2a5b7d46eadb1fb29a56728180657da (diff) |
convert ActionDescriptionProvider::ActionType to scoped enum
and remove an unused constant
Change-Id: I8d46d16d3f575aa416bfc5a965986ee5dfb1f93c
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/ActionDescriptionProvider.cxx | 24 | ||||
-rw-r--r-- | svx/source/svdraw/svdstr.src | 4 |
2 files changed, 9 insertions, 19 deletions
diff --git a/svx/source/svdraw/ActionDescriptionProvider.cxx b/svx/source/svdraw/ActionDescriptionProvider.cxx index 0195289c6adf..c04c02de8a10 100644 --- a/svx/source/svdraw/ActionDescriptionProvider.cxx +++ b/svx/source/svdraw/ActionDescriptionProvider.cxx @@ -28,37 +28,31 @@ OUString ActionDescriptionProvider::createDescription( ActionType eActionType sal_uInt16 nResID=0; switch( eActionType ) { - case INSERT: + case ActionType::Insert: nResID=STR_UndoInsertObj; break; - case DELETE: + case ActionType::Delete: nResID= STR_EditDelete; break; - case CUT: - nResID= STR_ExchangeClpCut; - break; - case MOVE: + case ActionType::Move: nResID= STR_EditMove; break; - case RESIZE: + case ActionType::Resize: nResID= STR_EditResize; break; - case ROTATE: + case ActionType::Rotate: nResID= STR_EditRotate; break; - case TRANSFORM: - nResID= STR_EditTransform; - break; - case FORMAT: + case ActionType::Format: nResID= STR_EditSetAttributes; break; - case MOVE_TOTOP: + case ActionType::MoveToTop: nResID= STR_EditMovToTop; break; - case MOVE_TOBOTTOM: + case ActionType::MoveToBottom: nResID= STR_EditMovToBtm; break; - case POS_SIZE: + case ActionType::PosSize: nResID = STR_EditPosSize; break; } diff --git a/svx/source/svdraw/svdstr.src b/svx/source/svdraw/svdstr.src index df28a4e7b612..871690393a4c 100644 --- a/svx/source/svdraw/svdstr.src +++ b/svx/source/svdraw/svdstr.src @@ -847,10 +847,6 @@ String STR_ExchangePaste { Text [ en-US ] = "Insert object(s)" ; }; -String STR_ExchangeClpCut -{ - Text [ en-US ] = "Cut %1" ; -}; String STR_DragInsertPoint { Text [ en-US ] = "Insert point to %1" ; |