summaryrefslogtreecommitdiff
path: root/svx/source/engine3d/e3dundo.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-10-17 08:40:10 +0000
committerOliver Bolte <obo@openoffice.org>2008-10-17 08:40:10 +0000
commita8ac4bc4145e7e558153b58c87b2def339aebe36 (patch)
treed1f5da0a1b702f12725b2b82117b7ff49872bb21 /svx/source/engine3d/e3dundo.cxx
parentae562e931a98e708a75e8d140cf1ff24854acfc7 (diff)
CWS-TOOLING: integrate CWS aw057
Diffstat (limited to 'svx/source/engine3d/e3dundo.cxx')
-rw-r--r--svx/source/engine3d/e3dundo.cxx25
1 files changed, 6 insertions, 19 deletions
diff --git a/svx/source/engine3d/e3dundo.cxx b/svx/source/engine3d/e3dundo.cxx
index 0f2c7b8c8ecb..825ee89926ba 100644
--- a/svx/source/engine3d/e3dundo.cxx
+++ b/svx/source/engine3d/e3dundo.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: e3dundo.cxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.226.1 $
*
* This file is part of OpenOffice.org.
*
@@ -35,6 +35,7 @@
#include <svx/outlobj.hxx>
#include <svx/view3d.hxx>
#include <svx/scene3d.hxx>
+#include <svx/e3dsceneupdater.hxx>
/************************************************************************/
@@ -85,8 +86,8 @@ E3dRotateUndoAction::~E3dRotateUndoAction ()
\************************************************************************/
void E3dRotateUndoAction::Undo ()
{
+ E3DModifySceneSnapRectUpdater aUpdater(pMy3DObj);
pMy3DObj->SetTransform(aMyOldRotation);
- pMy3DObj->GetScene()->CorrectSceneDimensions();
}
/************************************************************************\
@@ -96,8 +97,8 @@ void E3dRotateUndoAction::Undo ()
\************************************************************************/
void E3dRotateUndoAction::Redo ()
{
+ E3DModifySceneSnapRectUpdater aUpdater(pMy3DObj);
pMy3DObj->SetTransform(aMyNewRotation);
- pMy3DObj->GetScene()->CorrectSceneDimensions();
}
/*************************************************************************
@@ -146,15 +147,8 @@ E3dAttributesUndoAction::~E3dAttributesUndoAction()
\************************************************************************/
void E3dAttributesUndoAction::Undo()
{
- //pObject->SetItemSetAndBroadcast(aOldSet);
+ E3DModifySceneSnapRectUpdater aUpdater(pObject);
pObject->SetMergedItemSetAndBroadcast(aOldSet);
-
- if(pObject->ISA(E3dObject))
- {
- E3dScene* pScene = ((E3dObject*)pObject)->GetScene();
- if(pScene)
- pScene->CorrectSceneDimensions();
- }
}
/*************************************************************************
@@ -164,15 +158,8 @@ void E3dAttributesUndoAction::Undo()
\************************************************************************/
void E3dAttributesUndoAction::Redo()
{
- //pObject->SetItemSetAndBroadcast(aNewSet);
+ E3DModifySceneSnapRectUpdater aUpdater(pObject);
pObject->SetMergedItemSetAndBroadcast(aNewSet);
-
- if(pObject->ISA(E3dObject))
- {
- E3dScene* pScene = ((E3dObject*)pObject)->GetScene();
- if(pScene)
- pScene->CorrectSceneDimensions();
- }
}
/*************************************************************************