summaryrefslogtreecommitdiff
path: root/svx/source/toolbars
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-01-10 13:52:15 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-01-10 13:52:15 +0000
commit2a79e046adf2e30f3834eaa26deec19ed5c2df6e (patch)
treeb7090d3d5e99fa7b965f87da0c27c1a0edbf80e4 /svx/source/toolbars
parenta0c656d14cf8bfc0b8545cc16d8d2ef82f310d33 (diff)
INTEGRATION: CWS impresspresobjs (1.12.138); FILE MERGED
2005/11/24 11:34:21 cl 1.12.138.1: #123595# use SdrUndoFactory for creating undo actions
Diffstat (limited to 'svx/source/toolbars')
-rw-r--r--svx/source/toolbars/fontworkbar.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/toolbars/fontworkbar.cxx b/svx/source/toolbars/fontworkbar.cxx
index be1d7d8ffd..512c48504c 100644
--- a/svx/source/toolbars/fontworkbar.cxx
+++ b/svx/source/toolbars/fontworkbar.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: fontworkbar.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 00:54:23 $
+ * last change: $Author: rt $ $Date: 2006-01-10 14:52:15 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -522,7 +522,7 @@ void FontworkBar::execute( SdrView* pSdrView, SfxRequest& rReq, SfxBindings& rBi
{
String aStr( SVX_RES( RID_SVXSTR_UNDO_APPLY_FONTWORK_SHAPE ) );
pSdrView->BegUndo( aStr );
- pSdrView->AddUndo( new SdrUndoAttrObj( *pObj ) );
+ pSdrView->AddUndo( pSdrView->GetModel()->GetSdrUndoFactory().CreateUndoAttrObject( *pObj ) );
SdrCustomShapeGeometryItem aGeometryItem( (SdrCustomShapeGeometryItem&)pObj->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ) );
GetGeometryForCustomShape( aGeometryItem, aCustomShape );
pObj->SetMergedItem( aGeometryItem );
@@ -583,7 +583,7 @@ void FontworkBar::execute( SdrView* pSdrView, SfxRequest& rReq, SfxBindings& rBi
{
String aStr( SVX_RES( nStrResId ) );
pSdrView->BegUndo( aStr );
- pSdrView->AddUndo( new SdrUndoAttrObj( *pObj ) );
+ pSdrView->AddUndo( pSdrView->GetModel()->GetSdrUndoFactory().CreateUndoAttrObject( *pObj ) );
SdrCustomShapeGeometryItem aGeometryItem( (SdrCustomShapeGeometryItem&)pObj->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ) );
impl_execute( pSdrView, rReq, aGeometryItem, pObj );
pObj->SetMergedItem( aGeometryItem );