diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-10-20 14:54:59 +0200 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-10-20 14:54:59 +0200 |
commit | 6702f4e83f29060a3a6b832920ab6dbdc33b937a (patch) | |
tree | 907608aabca43021dc8f699b31930b18704c4069 /sd/source/ui/view/ViewShellManager.cxx | |
parent | bb7333e024b5db1bb1338f5c65eefb29323366a7 (diff) |
undoapi: made SfxUndoManager an implementation of the new, abstract ::svl::IUndoManager interface.
Change the SfxShell's UndoManager attribute to be an IUndoManager. Did all the resulting changes
up the source tree.
This way, we'll hopefully be able to provide an IUndoManager implementation in Writer, which
is not based on the SfxUndoManager, but on Writer's own Undo implementation.
Diffstat (limited to 'sd/source/ui/view/ViewShellManager.cxx')
-rwxr-xr-x | sd/source/ui/view/ViewShellManager.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/ViewShellManager.cxx b/sd/source/ui/view/ViewShellManager.cxx index c25c0f11270a..c0480aed6e70 100755 --- a/sd/source/ui/view/ViewShellManager.cxx +++ b/sd/source/ui/view/ViewShellManager.cxx @@ -913,7 +913,7 @@ void ViewShellManager::Implementation::UpdateShellStack (void) // Remember the undo manager from the top-most shell on the stack. SfxShell* pTopMostShell = mrBase.GetSubShell(0); - SfxUndoManager* pUndoManager = (pTopMostShell!=NULL) + ::svl::IUndoManager* pUndoManager = (pTopMostShell!=NULL) ? pTopMostShell->GetUndoManager() : NULL; @@ -1013,7 +1013,7 @@ void ViewShellManager::Implementation::TakeShellsFromStack (const SfxShell* pShe // Remember the undo manager from the top-most shell on the stack. SfxShell* pTopMostShell = mrBase.GetSubShell(0); - SfxUndoManager* pUndoManager = (pTopMostShell!=NULL) + ::svl::IUndoManager* pUndoManager = (pTopMostShell!=NULL) ? pTopMostShell->GetUndoManager() : NULL; |