From 84f9c52880d0503d8465fd0ff5ba6433ffc7c4b9 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Tue, 10 Jan 2006 13:39:15 +0000 Subject: INTEGRATION: CWS impresspresobjs (1.7.56); FILE MERGED 2005/11/24 12:42:36 cl 1.7.56.1: #123595# reworked presobj list and undo --- sd/source/ui/view/unmodpg.cxx | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'sd/source/ui/view/unmodpg.cxx') diff --git a/sd/source/ui/view/unmodpg.cxx b/sd/source/ui/view/unmodpg.cxx index 3ddceabef0ef..d8dc6d6ea089 100644 --- a/sd/source/ui/view/unmodpg.cxx +++ b/sd/source/ui/view/unmodpg.cxx @@ -4,9 +4,9 @@ * * $RCSfile: unmodpg.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: rt $ $Date: 2005-09-09 07:19:33 $ + * last change: $Author: rt $ $Date: 2006-01-10 14:39:15 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -126,7 +126,7 @@ void ModifyPageUndoAction::Undo() pView = aIter.NextView(); } - pPage->SetAutoLayout(eOldAutoLayout, TRUE); + pPage->SetAutoLayout( eOldAutoLayout ); if (!pPage->IsMasterPage()) { @@ -153,14 +153,6 @@ void ModifyPageUndoAction::Undo() // Redisplay SfxViewFrame::Current()->GetDispatcher()->Execute( SID_SWITCHPAGE, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD ); - - // #67720# clear undo manager - if(mpManager) - { - // BEWARE: Do this as LAST action here since this will delete - // all actions which are added, inclusive to this one (!) - mpManager->Clear(); - } } /************************************************************************* @@ -183,7 +175,8 @@ void ModifyPageUndoAction::Redo() pView = aIter.NextView(); } - pPage->SetAutoLayout(eNewAutoLayout, TRUE); + // pPage->SetAutoLayout(eNewAutoLayout, TRUE); + pPage->eAutoLayout = eNewAutoLayout; if (!pPage->IsMasterPage()) { @@ -210,14 +203,6 @@ void ModifyPageUndoAction::Redo() // Redisplay SfxViewFrame::Current()->GetDispatcher()->Execute( SID_SWITCHPAGE, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD ); - - // #67720# clear undo manager - if(mpManager) - { - // BEWARE: Do this as LAST action here since this will delete - // all actions which are added, inclusive to this one (!) - mpManager->Clear(); - } } /************************************************************************* -- cgit