diff options
Diffstat (limited to 'svx/source/engine3d/svx3ditems.cxx')
-rw-r--r-- | svx/source/engine3d/svx3ditems.cxx | 129 |
1 files changed, 127 insertions, 2 deletions
diff --git a/svx/source/engine3d/svx3ditems.cxx b/svx/source/engine3d/svx3ditems.cxx index 8d1b2de7e95f..ddfbbee0d289 100644 --- a/svx/source/engine3d/svx3ditems.cxx +++ b/svx/source/engine3d/svx3ditems.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svx3ditems.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: aw $ $Date: 2000-12-06 16:46:01 $ + * last change: $Author: hr $ $Date: 2003-03-27 15:02:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -295,6 +295,131 @@ Svx3DShadeModeItem::Svx3DShadeModeItem(sal_uInt16 nVal) {} ////////////////////////////////////////////////////////////////////////////// +// #107245# + +Svx3DSmoothNormalsItem::Svx3DSmoothNormalsItem(BOOL bVal) +: SfxBoolItem(SDRATTR_3DOBJ_SMOOTH_NORMALS, bVal) +{} + +sal_uInt16 Svx3DSmoothNormalsItem::GetVersion(sal_uInt16 nFileFormatVersion) const +{ + return 1; +} + +SfxPoolItem* Svx3DSmoothNormalsItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const +{ + SfxBoolItem* pRetval = new Svx3DSmoothNormalsItem(); + + if(nItemVersion > 0) + { + SfxBoolItem aBoolItem(Which(), rIn); + pRetval->SetValue(aBoolItem.GetValue()); + } + + return pRetval; +} + +////////////////////////////////////////////////////////////////////////////// +// #107245# + +Svx3DSmoothLidsItem::Svx3DSmoothLidsItem(BOOL bVal) +: SfxBoolItem(SDRATTR_3DOBJ_SMOOTH_LIDS, bVal) +{} + +sal_uInt16 Svx3DSmoothLidsItem::GetVersion(sal_uInt16 nFileFormatVersion) const +{ + return 1; +} + +SfxPoolItem* Svx3DSmoothLidsItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const +{ + SfxBoolItem* pRetval = new Svx3DSmoothLidsItem(); + + if(nItemVersion > 0) + { + SfxBoolItem aBoolItem(Which(), rIn); + pRetval->SetValue(aBoolItem.GetValue()); + } + + return pRetval; +} + +////////////////////////////////////////////////////////////////////////////// +// #107245# + +Svx3DCharacterModeItem::Svx3DCharacterModeItem(BOOL bVal) +: SfxBoolItem(SDRATTR_3DOBJ_CHARACTER_MODE, bVal) +{} + +sal_uInt16 Svx3DCharacterModeItem::GetVersion(sal_uInt16 nFileFormatVersion) const +{ + return 1; +} + +SfxPoolItem* Svx3DCharacterModeItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const +{ + SfxBoolItem* pRetval = new Svx3DCharacterModeItem(); + + if(nItemVersion > 0) + { + SfxBoolItem aBoolItem(Which(), rIn); + pRetval->SetValue(aBoolItem.GetValue()); + } + + return pRetval; +} + +////////////////////////////////////////////////////////////////////////////// +// #107245# + +Svx3DCloseFrontItem::Svx3DCloseFrontItem(BOOL bVal) +: SfxBoolItem(SDRATTR_3DOBJ_CLOSE_FRONT, bVal) +{} + +sal_uInt16 Svx3DCloseFrontItem::GetVersion(sal_uInt16 nFileFormatVersion) const +{ + return 1; +} + +SfxPoolItem* Svx3DCloseFrontItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const +{ + SfxBoolItem* pRetval = new Svx3DCloseFrontItem(); + + if(nItemVersion > 0) + { + SfxBoolItem aBoolItem(Which(), rIn); + pRetval->SetValue(aBoolItem.GetValue()); + } + + return pRetval; +} + +////////////////////////////////////////////////////////////////////////////// +// #107245# + +Svx3DCloseBackItem::Svx3DCloseBackItem(BOOL bVal) +: SfxBoolItem(SDRATTR_3DOBJ_CLOSE_BACK, bVal) +{} + +sal_uInt16 Svx3DCloseBackItem::GetVersion(sal_uInt16 nFileFormatVersion) const +{ + return 1; +} + +SfxPoolItem* Svx3DCloseBackItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const +{ + SfxBoolItem* pRetval = new Svx3DCloseBackItem(); + + if(nItemVersion > 0) + { + SfxBoolItem aBoolItem(Which(), rIn); + pRetval->SetValue(aBoolItem.GetValue()); + } + + return pRetval; +} + +////////////////////////////////////////////////////////////////////////////// // Svx3DNormalsKindItem: use drawing::NormalsKind sal_Bool Svx3DNormalsKindItem::QueryValue( uno::Any& rVal, BYTE nMemberId) const |