diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-02 09:34:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-02 14:53:49 +0100 |
commit | cf98d30de84e8ca8b45a83ac2319a09f9e70a2f7 (patch) | |
tree | 373172bfb55fba3e7c3695479b0649b13c5f7a3d /sw/source/ui/uiview | |
parent | 2560e6bc6df31e97de50f857b6fd2a30f3e68bae (diff) |
refactor the Rewriter rules using enums
Diffstat (limited to 'sw/source/ui/uiview')
-rw-r--r-- | sw/source/ui/uiview/view2.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/uiview/viewsrch.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/uiview/view2.cxx b/sw/source/ui/uiview/view2.cxx index 08e5cb876770..64dccd6d31d8 100644 --- a/sw/source/ui/uiview/view2.cxx +++ b/sw/source/ui/uiview/view2.cxx @@ -410,7 +410,7 @@ sal_Bool SwView::InsertGraphicDlg( SfxRequest& rReq ) rSh.StartAction(); SwRewriter aRewriter; - aRewriter.AddRule(UNDO_ARG1, String(SW_RES(STR_GRAPHIC_DEFNAME))); + aRewriter.AddRule(UndoArg1, SW_RESSTR(STR_GRAPHIC_DEFNAME)); rSh.StartUndo(UNDO_INSERT, &aRewriter); diff --git a/sw/source/ui/uiview/viewsrch.cxx b/sw/source/ui/uiview/viewsrch.cxx index 29d33c178ba1..d0f6079f917a 100644 --- a/sw/source/ui/uiview/viewsrch.cxx +++ b/sw/source/ui/uiview/viewsrch.cxx @@ -586,9 +586,9 @@ void SwView::Replace() if( pSrchItem->GetPattern() ) // Vorlagen? { SwRewriter aRewriter; - aRewriter.AddRule(UNDO_ARG1, pSrchItem->GetSearchString()); - aRewriter.AddRule(UNDO_ARG2, SW_RES(STR_YIELDS)); - aRewriter.AddRule(UNDO_ARG3, pSrchItem->GetReplaceString()); + aRewriter.AddRule(UndoArg1, pSrchItem->GetSearchString()); + aRewriter.AddRule(UndoArg2, SW_RESSTR(STR_YIELDS)); + aRewriter.AddRule(UndoArg3, pSrchItem->GetReplaceString()); pWrtShell->StartUndo(UNDO_UI_REPLACE_STYLE, &aRewriter); |