diff options
author | Jan Holesovsky <kendy@suse.cz> | 2012-04-14 21:46:14 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-04-14 22:49:32 +0200 |
commit | 227113bbf16f2feda4d3e41bb9aff7dc100ede17 (patch) | |
tree | 903d91aa7160a2aedd75d8b2562ab30441e9c600 /sd/source/ui/slidesorter/controller/SlsClipboard.cxx | |
parent | cecde99da64ff3de1cc8066aa9612e67f3db60e0 (diff) |
Slidesorter: Kill more useless cruft.
Diffstat (limited to 'sd/source/ui/slidesorter/controller/SlsClipboard.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsClipboard.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx index afdf1339107e..ec3ea1d2e435 100644 --- a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx +++ b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx @@ -35,6 +35,7 @@ #include "model/SlsPageDescriptor.hxx" #include "model/SlsPageEnumerationProvider.hxx" #include "view/SlideSorterView.hxx" +#include "view/SlsResource.hrc" #include "view/SlsTheme.hxx" #include "controller/SlideSorterController.hxx" #include "controller/SlsInsertionIndicatorHandler.hxx" @@ -120,17 +121,16 @@ class Clipboard::UndoContext public: UndoContext ( SdDrawDocument* pDocument, - const ::boost::shared_ptr<ViewShell>& rpMainViewShell, - const ::boost::shared_ptr<view::Theme>& rpTheme) + const ::boost::shared_ptr<ViewShell>& rpMainViewShell) : mpDocument(pDocument), mpMainViewShell(rpMainViewShell) { if (mpDocument!=NULL && mpDocument->IsUndoEnabled()) { if (mpMainViewShell && mpMainViewShell->GetShellType() == ViewShell::ST_DRAW) - mpDocument->BegUndo(rpTheme->GetString(view::Theme::String_DragAndDropPages)); + mpDocument->BegUndo(String(SdResId(STRING_DRAG_AND_DROP_PAGES))); else - mpDocument->BegUndo(rpTheme->GetString(view::Theme::String_DragAndDropSlides)); + mpDocument->BegUndo(String(SdResId(STRING_DRAG_AND_DROP_SLIDES))); } } @@ -714,8 +714,7 @@ sal_Int8 Clipboard::ExecuteDrop ( // Handle a general drop operation. mpUndoContext.reset(new UndoContext ( mrSlideSorter.GetModel().GetDocument(), - mrSlideSorter.GetViewShell()->GetViewShellBase().GetMainViewShell(), - mrSlideSorter.GetTheme())); + mrSlideSorter.GetViewShell()->GetViewShellBase().GetMainViewShell())); mpSelectionObserverContext.reset(new SelectionObserver::Context(mrSlideSorter)); HandlePageDrop(*pDragTransferable); |