summaryrefslogtreecommitdiff
path: root/svx/source/engine3d/scene3d.cxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2000-12-04 15:43:42 +0000
committerArmin Weiss <aw@openoffice.org>2000-12-04 15:43:42 +0000
commit6c2311df019640412ee7a48e12376a7fc4d413fa (patch)
treed2d21ccf17f9b15a9e7352af15b22ddfde25b7f6 /svx/source/engine3d/scene3d.cxx
parent20f9273dc01ab40c201330922eee6111ff10bbed (diff)
#81191# SfxItemSet::SetRanges(...) does not do what is expected :-(
Diffstat (limited to 'svx/source/engine3d/scene3d.cxx')
-rw-r--r--svx/source/engine3d/scene3d.cxx24
1 files changed, 17 insertions, 7 deletions
diff --git a/svx/source/engine3d/scene3d.cxx b/svx/source/engine3d/scene3d.cxx
index 35beb5d00b63..47cceaf055a8 100644
--- a/svx/source/engine3d/scene3d.cxx
+++ b/svx/source/engine3d/scene3d.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: scene3d.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: bm $ $Date: 2000-12-02 16:34:45 $
+ * last change: $Author: aw $ $Date: 2000-12-04 16:43:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2087,14 +2087,24 @@ void E3dScene::ImpSetSceneItemsFromCamera()
//-/}
// ItemSet access
-const sal_uInt16 E3dScene::mnSceneRangeData[4] = { SDRATTR_3DSCENE_FIRST, SDRATTR_3DSCENE_LAST, 0, 0 };
-const sal_uInt16 E3dScene::mnAllRangeData[4] = { SDRATTR_START, SDRATTR_END, 0, 0 };
+//const sal_uInt16 E3dScene::mnSceneRangeData[4] = { SDRATTR_3DSCENE_FIRST, SDRATTR_3DSCENE_LAST, 0, 0 };
+////const sal_uInt16 E3dScene::mnSceneRangeData[4] = { SDRATTR_3DSCENE_PERSPECTIVE, SDRATTR_3DSCENE_SHADE_MODE, 0, 0 };
+//const sal_uInt16 E3dScene::mnAllRangeData[4] = { SDRATTR_START, SDRATTR_END, 0, 0 };
void E3dScene::ImpResetToSceneItems()
{
- ImpForceItemSet();
- mpObjectItemSet->SetRanges(mnSceneRangeData);
- mpObjectItemSet->SetRanges(mnAllRangeData);
+ // #81191# SfxItemSet::SetRanges(...) does not do what is expected :-(
+ if(mpObjectItemSet)
+ {
+ SfxItemSet aNew(*mpObjectItemSet->GetPool(), SDRATTR_3DSCENE_FIRST, SDRATTR_3DSCENE_LAST);
+ aNew.Put(*mpObjectItemSet);
+ mpObjectItemSet->ClearItem(0L);
+ mpObjectItemSet->Put(aNew);
+ }
+
+// ImpForceItemSet();
+// mpObjectItemSet->SetRanges(mnSceneRangeData);
+// mpObjectItemSet->SetRanges(mnAllRangeData);
}
const SfxItemSet& E3dScene::GetItemSet() const