diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2006-01-10 13:27:37 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2006-01-10 13:27:37 +0000 |
commit | d3d930022624785fd246b185c489201f19f3ff61 (patch) | |
tree | 192aab72838830537e47c8f37c8ab04050373a58 /sd/source/core/undo | |
parent | 5ca1905e5d282666989b9cb5eb99ac7b6b0815c0 (diff) |
INTEGRATION: CWS impresspresobjs (1.1.2); FILE ADDED
2005/11/24 12:13:48 cl 1.1.2.1: #123595# added application specific undo actions
Diffstat (limited to 'sd/source/core/undo')
-rw-r--r-- | sd/source/core/undo/undofactory.cxx | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/sd/source/core/undo/undofactory.cxx b/sd/source/core/undo/undofactory.cxx new file mode 100644 index 000000000000..d7d0e42cb2cd --- /dev/null +++ b/sd/source/core/undo/undofactory.cxx @@ -0,0 +1,73 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: undofactory.cxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: rt $ $Date: 2006-01-10 14:27:37 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef _TOOLS_DEBUG_HXX +#include <tools/debug.hxx> +#endif + +#include "undo/undofactory.hxx" +#include "undo/undoobjects.hxx" + +using namespace sd; + +SdrUndoAction* UndoFactory::CreateUndoRemoveObject( SdrObject& rObject, bool bOrdNumDirect ) +{ + return new UndoRemoveObject( rObject, bOrdNumDirect ); +} + +SdrUndoAction* UndoFactory::CreateUndoDeleteObject( SdrObject& rObject, bool bOrdNumDirect ) +{ + return new UndoDeleteObject( rObject, bOrdNumDirect ); +} + +SdrUndoAction* UndoFactory::CreateUndoObjectSetText( SdrObject& rNewObj ) +{ + return new UndoObjectSetText( rNewObj ); +} + +SdrUndoAction* UndoFactory::CreateUndoReplaceObject( SdrObject& rOldObject, SdrObject& rNewObject, bool bOrdNumDirect ) +{ + return new UndoReplaceObject( rOldObject, rNewObject, bOrdNumDirect ); +} + +SdrUndoAction* UndoFactory::CreateUndoGeoObject( SdrObject& rObject ) +{ + return new UndoGeoObject( rObject ); +} + +SdrUndoAction* UndoFactory::CreateUndoAttrObject( SdrObject& rObject, bool bStyleSheet1, bool bSaveText ) +{ + return new UndoAttrObject( rObject, bStyleSheet1, bSaveText ); +} |