xref: /aoo41x/main/svx/source/engine3d/svx3ditems.cxx (revision f6e50924)
1*f6e50924SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*f6e50924SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*f6e50924SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*f6e50924SAndrew Rist  * distributed with this work for additional information
6*f6e50924SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*f6e50924SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*f6e50924SAndrew Rist  * "License"); you may not use this file except in compliance
9*f6e50924SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*f6e50924SAndrew Rist  *
11*f6e50924SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*f6e50924SAndrew Rist  *
13*f6e50924SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*f6e50924SAndrew Rist  * software distributed under the License is distributed on an
15*f6e50924SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*f6e50924SAndrew Rist  * KIND, either express or implied.  See the License for the
17*f6e50924SAndrew Rist  * specific language governing permissions and limitations
18*f6e50924SAndrew Rist  * under the License.
19*f6e50924SAndrew Rist  *
20*f6e50924SAndrew Rist  *************************************************************/
21*f6e50924SAndrew Rist 
22*f6e50924SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_svx.hxx"
26cdf0e10cSrcweir #include <svx/svx3ditems.hxx>
27cdf0e10cSrcweir #include <com/sun/star/drawing/NormalsKind.hpp>
28cdf0e10cSrcweir #include <com/sun/star/drawing/TextureProjectionMode.hpp>
29cdf0e10cSrcweir #include <com/sun/star/drawing/TextureKind.hpp>
30cdf0e10cSrcweir #include <com/sun/star/drawing/TextureMode.hpp>
31cdf0e10cSrcweir #include <com/sun/star/drawing/ProjectionMode.hpp>
32cdf0e10cSrcweir #include <com/sun/star/drawing/ShadeMode.hpp>
33cdf0e10cSrcweir 
34cdf0e10cSrcweir 
35cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
36cdf0e10cSrcweir 
37cdf0e10cSrcweir using namespace ::rtl;
38cdf0e10cSrcweir using namespace ::com::sun::star;
39cdf0e10cSrcweir 
40cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
Svx3DPercentDiagonalItem(sal_uInt16 nVal)41cdf0e10cSrcweir Svx3DPercentDiagonalItem::Svx3DPercentDiagonalItem(sal_uInt16 nVal)
42cdf0e10cSrcweir :	SfxUInt16Item(SDRATTR_3DOBJ_PERCENT_DIAGONAL, nVal)
43cdf0e10cSrcweir {}
44cdf0e10cSrcweir 
Svx3DBackscaleItem(sal_uInt16 nVal)45cdf0e10cSrcweir Svx3DBackscaleItem::Svx3DBackscaleItem(sal_uInt16 nVal)
46cdf0e10cSrcweir :	SfxUInt16Item(SDRATTR_3DOBJ_BACKSCALE, nVal)
47cdf0e10cSrcweir {}
48cdf0e10cSrcweir 
Svx3DDepthItem(sal_uInt32 nVal)49cdf0e10cSrcweir Svx3DDepthItem::Svx3DDepthItem(sal_uInt32 nVal)
50cdf0e10cSrcweir :	SfxUInt32Item(SDRATTR_3DOBJ_DEPTH, nVal)
51cdf0e10cSrcweir {}
52cdf0e10cSrcweir 
Svx3DHorizontalSegmentsItem(sal_uInt32 nVal)53cdf0e10cSrcweir Svx3DHorizontalSegmentsItem::Svx3DHorizontalSegmentsItem(sal_uInt32 nVal)
54cdf0e10cSrcweir :	SfxUInt32Item(SDRATTR_3DOBJ_HORZ_SEGS, nVal)
55cdf0e10cSrcweir {}
56cdf0e10cSrcweir 
Svx3DVerticalSegmentsItem(sal_uInt32 nVal)57cdf0e10cSrcweir Svx3DVerticalSegmentsItem::Svx3DVerticalSegmentsItem(sal_uInt32 nVal)
58cdf0e10cSrcweir :	SfxUInt32Item(SDRATTR_3DOBJ_VERT_SEGS, nVal)
59cdf0e10cSrcweir {}
60cdf0e10cSrcweir 
Svx3DEndAngleItem(sal_uInt32 nVal)61cdf0e10cSrcweir Svx3DEndAngleItem::Svx3DEndAngleItem(sal_uInt32 nVal)
62cdf0e10cSrcweir :	SfxUInt32Item(SDRATTR_3DOBJ_END_ANGLE, nVal)
63cdf0e10cSrcweir {}
64cdf0e10cSrcweir 
Svx3DDoubleSidedItem(sal_Bool bVal)65cdf0e10cSrcweir Svx3DDoubleSidedItem::Svx3DDoubleSidedItem(sal_Bool bVal)
66cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DOBJ_DOUBLE_SIDED, bVal)
67cdf0e10cSrcweir {}
68cdf0e10cSrcweir 
69cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
70cdf0e10cSrcweir // #i28528#
71cdf0e10cSrcweir // Added extra Item (Bool) for chart2 to be able to show reduced line geometry
72cdf0e10cSrcweir 
Svx3DReducedLineGeometryItem(sal_Bool bVal)73cdf0e10cSrcweir Svx3DReducedLineGeometryItem::Svx3DReducedLineGeometryItem(sal_Bool bVal)
74cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DOBJ_REDUCED_LINE_GEOMETRY, bVal)
75cdf0e10cSrcweir {}
76cdf0e10cSrcweir 
GetVersion(sal_uInt16) const77cdf0e10cSrcweir sal_uInt16 Svx3DReducedLineGeometryItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
78cdf0e10cSrcweir {
79cdf0e10cSrcweir 	return 1;
80cdf0e10cSrcweir }
81cdf0e10cSrcweir 
Create(SvStream & rIn,sal_uInt16 nItemVersion) const82cdf0e10cSrcweir SfxPoolItem* Svx3DReducedLineGeometryItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
83cdf0e10cSrcweir {
84cdf0e10cSrcweir 	SfxBoolItem* pRetval = new Svx3DReducedLineGeometryItem();
85cdf0e10cSrcweir 
86cdf0e10cSrcweir 	if(nItemVersion > 0)
87cdf0e10cSrcweir 	{
88cdf0e10cSrcweir 		SfxBoolItem aBoolItem(Which(), rIn);
89cdf0e10cSrcweir 		pRetval->SetValue(aBoolItem.GetValue());
90cdf0e10cSrcweir 	}
91cdf0e10cSrcweir 
92cdf0e10cSrcweir 	return pRetval;
93cdf0e10cSrcweir }
94cdf0e10cSrcweir 
95cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
96cdf0e10cSrcweir 
Svx3DNormalsKindItem(sal_uInt16 nVal)97cdf0e10cSrcweir Svx3DNormalsKindItem::Svx3DNormalsKindItem(sal_uInt16 nVal)
98cdf0e10cSrcweir :	SfxUInt16Item(SDRATTR_3DOBJ_NORMALS_KIND, nVal)
99cdf0e10cSrcweir {}
100cdf0e10cSrcweir 
Svx3DNormalsInvertItem(sal_Bool bVal)101cdf0e10cSrcweir Svx3DNormalsInvertItem::Svx3DNormalsInvertItem(sal_Bool bVal)
102cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DOBJ_NORMALS_INVERT, bVal)
103cdf0e10cSrcweir {}
104cdf0e10cSrcweir 
Svx3DTextureProjectionXItem(sal_uInt16 nVal)105cdf0e10cSrcweir Svx3DTextureProjectionXItem::Svx3DTextureProjectionXItem(sal_uInt16 nVal)
106cdf0e10cSrcweir :	SfxUInt16Item(SDRATTR_3DOBJ_TEXTURE_PROJ_X, nVal)
107cdf0e10cSrcweir {}
108cdf0e10cSrcweir 
Svx3DTextureProjectionYItem(sal_uInt16 nVal)109cdf0e10cSrcweir Svx3DTextureProjectionYItem::Svx3DTextureProjectionYItem(sal_uInt16 nVal)
110cdf0e10cSrcweir :	SfxUInt16Item(SDRATTR_3DOBJ_TEXTURE_PROJ_Y, nVal)
111cdf0e10cSrcweir {}
112cdf0e10cSrcweir 
Svx3DShadow3DItem(sal_Bool bVal)113cdf0e10cSrcweir Svx3DShadow3DItem::Svx3DShadow3DItem(sal_Bool bVal)
114cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DOBJ_SHADOW_3D, bVal)
115cdf0e10cSrcweir {}
116cdf0e10cSrcweir 
Svx3DMaterialColorItem(const Color & rCol)117cdf0e10cSrcweir Svx3DMaterialColorItem::Svx3DMaterialColorItem(const Color& rCol)
118cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DOBJ_MAT_COLOR)
119cdf0e10cSrcweir {}
120cdf0e10cSrcweir 
Svx3DMaterialEmissionItem(const Color & rCol)121cdf0e10cSrcweir Svx3DMaterialEmissionItem::Svx3DMaterialEmissionItem(const Color& rCol)
122cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DOBJ_MAT_EMISSION)
123cdf0e10cSrcweir {}
124cdf0e10cSrcweir 
Svx3DMaterialSpecularItem(const Color & rCol)125cdf0e10cSrcweir Svx3DMaterialSpecularItem::Svx3DMaterialSpecularItem(const Color& rCol)
126cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DOBJ_MAT_SPECULAR)
127cdf0e10cSrcweir {}
128cdf0e10cSrcweir 
Svx3DMaterialSpecularIntensityItem(sal_uInt16 nVal)129cdf0e10cSrcweir Svx3DMaterialSpecularIntensityItem::Svx3DMaterialSpecularIntensityItem(sal_uInt16 nVal)
130cdf0e10cSrcweir :	SfxUInt16Item(SDRATTR_3DOBJ_MAT_SPECULAR_INTENSITY, nVal)
131cdf0e10cSrcweir {}
132cdf0e10cSrcweir 
Svx3DTextureKindItem(sal_uInt16 nVal)133cdf0e10cSrcweir Svx3DTextureKindItem::Svx3DTextureKindItem(sal_uInt16 nVal)
134cdf0e10cSrcweir :	SfxUInt16Item(SDRATTR_3DOBJ_TEXTURE_KIND, nVal)
135cdf0e10cSrcweir {}
136cdf0e10cSrcweir 
Svx3DTextureModeItem(sal_uInt16 nVal)137cdf0e10cSrcweir Svx3DTextureModeItem::Svx3DTextureModeItem(sal_uInt16 nVal)
138cdf0e10cSrcweir :	SfxUInt16Item(SDRATTR_3DOBJ_TEXTURE_MODE, nVal)
139cdf0e10cSrcweir {}
140cdf0e10cSrcweir 
Svx3DTextureFilterItem(sal_Bool bVal)141cdf0e10cSrcweir Svx3DTextureFilterItem::Svx3DTextureFilterItem(sal_Bool bVal)
142cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DOBJ_TEXTURE_FILTER, bVal)
143cdf0e10cSrcweir {}
144cdf0e10cSrcweir 
Svx3DPerspectiveItem(sal_uInt16 nVal)145cdf0e10cSrcweir Svx3DPerspectiveItem::Svx3DPerspectiveItem(sal_uInt16 nVal)
146cdf0e10cSrcweir :	SfxUInt16Item(SDRATTR_3DSCENE_PERSPECTIVE, nVal)
147cdf0e10cSrcweir {}
148cdf0e10cSrcweir 
Svx3DDistanceItem(sal_uInt32 nVal)149cdf0e10cSrcweir Svx3DDistanceItem::Svx3DDistanceItem(sal_uInt32 nVal)
150cdf0e10cSrcweir :	SfxUInt32Item(SDRATTR_3DSCENE_DISTANCE, nVal)
151cdf0e10cSrcweir {}
152cdf0e10cSrcweir 
Svx3DFocalLengthItem(sal_uInt32 nVal)153cdf0e10cSrcweir Svx3DFocalLengthItem::Svx3DFocalLengthItem(sal_uInt32 nVal)
154cdf0e10cSrcweir :	SfxUInt32Item(SDRATTR_3DSCENE_FOCAL_LENGTH, nVal)
155cdf0e10cSrcweir {}
156cdf0e10cSrcweir 
Svx3DTwoSidedLightingItem(sal_Bool bVal)157cdf0e10cSrcweir Svx3DTwoSidedLightingItem::Svx3DTwoSidedLightingItem(sal_Bool bVal)
158cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DSCENE_TWO_SIDED_LIGHTING, bVal)
159cdf0e10cSrcweir {}
160cdf0e10cSrcweir 
Svx3DLightcolor1Item(const Color & rCol)161cdf0e10cSrcweir Svx3DLightcolor1Item::Svx3DLightcolor1Item(const Color& rCol)
162cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_1)
163cdf0e10cSrcweir {}
164cdf0e10cSrcweir 
Svx3DLightcolor2Item(const Color & rCol)165cdf0e10cSrcweir Svx3DLightcolor2Item::Svx3DLightcolor2Item(const Color& rCol)
166cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_2)
167cdf0e10cSrcweir {}
168cdf0e10cSrcweir 
Svx3DLightcolor3Item(const Color & rCol)169cdf0e10cSrcweir Svx3DLightcolor3Item::Svx3DLightcolor3Item(const Color& rCol)
170cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_3)
171cdf0e10cSrcweir {}
172cdf0e10cSrcweir 
Svx3DLightcolor4Item(const Color & rCol)173cdf0e10cSrcweir Svx3DLightcolor4Item::Svx3DLightcolor4Item(const Color& rCol)
174cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_4)
175cdf0e10cSrcweir {}
176cdf0e10cSrcweir 
Svx3DLightcolor5Item(const Color & rCol)177cdf0e10cSrcweir Svx3DLightcolor5Item::Svx3DLightcolor5Item(const Color& rCol)
178cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_5)
179cdf0e10cSrcweir {}
180cdf0e10cSrcweir 
Svx3DLightcolor6Item(const Color & rCol)181cdf0e10cSrcweir Svx3DLightcolor6Item::Svx3DLightcolor6Item(const Color& rCol)
182cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_6)
183cdf0e10cSrcweir {}
184cdf0e10cSrcweir 
Svx3DLightcolor7Item(const Color & rCol)185cdf0e10cSrcweir Svx3DLightcolor7Item::Svx3DLightcolor7Item(const Color& rCol)
186cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_7)
187cdf0e10cSrcweir {}
188cdf0e10cSrcweir 
Svx3DLightcolor8Item(const Color & rCol)189cdf0e10cSrcweir Svx3DLightcolor8Item::Svx3DLightcolor8Item(const Color& rCol)
190cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_8)
191cdf0e10cSrcweir {}
192cdf0e10cSrcweir 
Svx3DAmbientcolorItem(const Color & rCol)193cdf0e10cSrcweir Svx3DAmbientcolorItem::Svx3DAmbientcolorItem(const Color& rCol)
194cdf0e10cSrcweir :	SvxColorItem(rCol, SDRATTR_3DSCENE_AMBIENTCOLOR)
195cdf0e10cSrcweir {}
196cdf0e10cSrcweir 
Svx3DLightOnOff1Item(sal_Bool bVal)197cdf0e10cSrcweir Svx3DLightOnOff1Item::Svx3DLightOnOff1Item(sal_Bool bVal)
198cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_1, bVal)
199cdf0e10cSrcweir {}
200cdf0e10cSrcweir 
Svx3DLightOnOff2Item(sal_Bool bVal)201cdf0e10cSrcweir Svx3DLightOnOff2Item::Svx3DLightOnOff2Item(sal_Bool bVal)
202cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_2, bVal)
203cdf0e10cSrcweir {}
204cdf0e10cSrcweir 
Svx3DLightOnOff3Item(sal_Bool bVal)205cdf0e10cSrcweir Svx3DLightOnOff3Item::Svx3DLightOnOff3Item(sal_Bool bVal)
206cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_3, bVal)
207cdf0e10cSrcweir {}
208cdf0e10cSrcweir 
Svx3DLightOnOff4Item(sal_Bool bVal)209cdf0e10cSrcweir Svx3DLightOnOff4Item::Svx3DLightOnOff4Item(sal_Bool bVal)
210cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_4, bVal)
211cdf0e10cSrcweir {}
212cdf0e10cSrcweir 
Svx3DLightOnOff5Item(sal_Bool bVal)213cdf0e10cSrcweir Svx3DLightOnOff5Item::Svx3DLightOnOff5Item(sal_Bool bVal)
214cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_5, bVal)
215cdf0e10cSrcweir {}
216cdf0e10cSrcweir 
Svx3DLightOnOff6Item(sal_Bool bVal)217cdf0e10cSrcweir Svx3DLightOnOff6Item::Svx3DLightOnOff6Item(sal_Bool bVal)
218cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_6, bVal)
219cdf0e10cSrcweir {}
220cdf0e10cSrcweir 
Svx3DLightOnOff7Item(sal_Bool bVal)221cdf0e10cSrcweir Svx3DLightOnOff7Item::Svx3DLightOnOff7Item(sal_Bool bVal)
222cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_7, bVal)
223cdf0e10cSrcweir {}
224cdf0e10cSrcweir 
Svx3DLightOnOff8Item(sal_Bool bVal)225cdf0e10cSrcweir Svx3DLightOnOff8Item::Svx3DLightOnOff8Item(sal_Bool bVal)
226cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_8, bVal)
227cdf0e10cSrcweir {}
228cdf0e10cSrcweir 
Svx3DLightDirection1Item(const basegfx::B3DVector & rVec)229cdf0e10cSrcweir Svx3DLightDirection1Item::Svx3DLightDirection1Item(const basegfx::B3DVector& rVec)
230cdf0e10cSrcweir :	SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_1, rVec)
231cdf0e10cSrcweir {}
232cdf0e10cSrcweir 
Svx3DLightDirection2Item(const basegfx::B3DVector & rVec)233cdf0e10cSrcweir Svx3DLightDirection2Item::Svx3DLightDirection2Item(const basegfx::B3DVector& rVec)
234cdf0e10cSrcweir :	SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_2, rVec)
235cdf0e10cSrcweir {}
236cdf0e10cSrcweir 
Svx3DLightDirection3Item(const basegfx::B3DVector & rVec)237cdf0e10cSrcweir Svx3DLightDirection3Item::Svx3DLightDirection3Item(const basegfx::B3DVector& rVec)
238cdf0e10cSrcweir :	SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_3, rVec)
239cdf0e10cSrcweir {}
240cdf0e10cSrcweir 
Svx3DLightDirection4Item(const basegfx::B3DVector & rVec)241cdf0e10cSrcweir Svx3DLightDirection4Item::Svx3DLightDirection4Item(const basegfx::B3DVector& rVec)
242cdf0e10cSrcweir :	SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_4, rVec)
243cdf0e10cSrcweir {}
244cdf0e10cSrcweir 
Svx3DLightDirection5Item(const basegfx::B3DVector & rVec)245cdf0e10cSrcweir Svx3DLightDirection5Item::Svx3DLightDirection5Item(const basegfx::B3DVector& rVec)
246cdf0e10cSrcweir :	SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_5, rVec)
247cdf0e10cSrcweir {}
248cdf0e10cSrcweir 
Svx3DLightDirection6Item(const basegfx::B3DVector & rVec)249cdf0e10cSrcweir Svx3DLightDirection6Item::Svx3DLightDirection6Item(const basegfx::B3DVector& rVec)
250cdf0e10cSrcweir :	SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_6, rVec)
251cdf0e10cSrcweir {}
252cdf0e10cSrcweir 
Svx3DLightDirection7Item(const basegfx::B3DVector & rVec)253cdf0e10cSrcweir Svx3DLightDirection7Item::Svx3DLightDirection7Item(const basegfx::B3DVector& rVec)
254cdf0e10cSrcweir :	SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_7, rVec)
255cdf0e10cSrcweir {}
256cdf0e10cSrcweir 
Svx3DLightDirection8Item(const basegfx::B3DVector & rVec)257cdf0e10cSrcweir Svx3DLightDirection8Item::Svx3DLightDirection8Item(const basegfx::B3DVector& rVec)
258cdf0e10cSrcweir :	SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_8, rVec)
259cdf0e10cSrcweir {}
260cdf0e10cSrcweir 
Svx3DShadowSlantItem(sal_uInt16 nVal)261cdf0e10cSrcweir Svx3DShadowSlantItem::Svx3DShadowSlantItem(sal_uInt16 nVal)
262cdf0e10cSrcweir :	SfxUInt16Item(SDRATTR_3DSCENE_SHADOW_SLANT, nVal)
263cdf0e10cSrcweir {}
264cdf0e10cSrcweir 
Svx3DShadeModeItem(sal_uInt16 nVal)265cdf0e10cSrcweir Svx3DShadeModeItem::Svx3DShadeModeItem(sal_uInt16 nVal)
266cdf0e10cSrcweir :	SfxUInt16Item(SDRATTR_3DSCENE_SHADE_MODE, nVal)
267cdf0e10cSrcweir {}
268cdf0e10cSrcweir 
269cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
270cdf0e10cSrcweir // #107245#
271cdf0e10cSrcweir 
Svx3DSmoothNormalsItem(sal_Bool bVal)272cdf0e10cSrcweir Svx3DSmoothNormalsItem::Svx3DSmoothNormalsItem(sal_Bool bVal)
273cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DOBJ_SMOOTH_NORMALS, bVal)
274cdf0e10cSrcweir {}
275cdf0e10cSrcweir 
GetVersion(sal_uInt16) const276cdf0e10cSrcweir sal_uInt16 Svx3DSmoothNormalsItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
277cdf0e10cSrcweir {
278cdf0e10cSrcweir 	return 1;
279cdf0e10cSrcweir }
280cdf0e10cSrcweir 
Create(SvStream & rIn,sal_uInt16 nItemVersion) const281cdf0e10cSrcweir SfxPoolItem* Svx3DSmoothNormalsItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
282cdf0e10cSrcweir {
283cdf0e10cSrcweir 	SfxBoolItem* pRetval = new Svx3DSmoothNormalsItem();
284cdf0e10cSrcweir 
285cdf0e10cSrcweir 	if(nItemVersion > 0)
286cdf0e10cSrcweir 	{
287cdf0e10cSrcweir 		SfxBoolItem aBoolItem(Which(), rIn);
288cdf0e10cSrcweir 		pRetval->SetValue(aBoolItem.GetValue());
289cdf0e10cSrcweir 	}
290cdf0e10cSrcweir 
291cdf0e10cSrcweir 	return pRetval;
292cdf0e10cSrcweir }
293cdf0e10cSrcweir 
294cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
295cdf0e10cSrcweir // #107245#
296cdf0e10cSrcweir 
Svx3DSmoothLidsItem(sal_Bool bVal)297cdf0e10cSrcweir Svx3DSmoothLidsItem::Svx3DSmoothLidsItem(sal_Bool bVal)
298cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DOBJ_SMOOTH_LIDS, bVal)
299cdf0e10cSrcweir {}
300cdf0e10cSrcweir 
GetVersion(sal_uInt16) const301cdf0e10cSrcweir sal_uInt16 Svx3DSmoothLidsItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
302cdf0e10cSrcweir {
303cdf0e10cSrcweir 	return 1;
304cdf0e10cSrcweir }
305cdf0e10cSrcweir 
Create(SvStream & rIn,sal_uInt16 nItemVersion) const306cdf0e10cSrcweir SfxPoolItem* Svx3DSmoothLidsItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
307cdf0e10cSrcweir {
308cdf0e10cSrcweir 	SfxBoolItem* pRetval = new Svx3DSmoothLidsItem();
309cdf0e10cSrcweir 
310cdf0e10cSrcweir 	if(nItemVersion > 0)
311cdf0e10cSrcweir 	{
312cdf0e10cSrcweir 		SfxBoolItem aBoolItem(Which(), rIn);
313cdf0e10cSrcweir 		pRetval->SetValue(aBoolItem.GetValue());
314cdf0e10cSrcweir 	}
315cdf0e10cSrcweir 
316cdf0e10cSrcweir 	return pRetval;
317cdf0e10cSrcweir }
318cdf0e10cSrcweir 
319cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
320cdf0e10cSrcweir // #107245#
321cdf0e10cSrcweir 
Svx3DCharacterModeItem(sal_Bool bVal)322cdf0e10cSrcweir Svx3DCharacterModeItem::Svx3DCharacterModeItem(sal_Bool bVal)
323cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DOBJ_CHARACTER_MODE, bVal)
324cdf0e10cSrcweir {}
325cdf0e10cSrcweir 
GetVersion(sal_uInt16) const326cdf0e10cSrcweir sal_uInt16 Svx3DCharacterModeItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
327cdf0e10cSrcweir {
328cdf0e10cSrcweir 	return 1;
329cdf0e10cSrcweir }
330cdf0e10cSrcweir 
Create(SvStream & rIn,sal_uInt16 nItemVersion) const331cdf0e10cSrcweir SfxPoolItem* Svx3DCharacterModeItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
332cdf0e10cSrcweir {
333cdf0e10cSrcweir 	SfxBoolItem* pRetval = new Svx3DCharacterModeItem();
334cdf0e10cSrcweir 
335cdf0e10cSrcweir 	if(nItemVersion > 0)
336cdf0e10cSrcweir 	{
337cdf0e10cSrcweir 		SfxBoolItem aBoolItem(Which(), rIn);
338cdf0e10cSrcweir 		pRetval->SetValue(aBoolItem.GetValue());
339cdf0e10cSrcweir 	}
340cdf0e10cSrcweir 
341cdf0e10cSrcweir 	return pRetval;
342cdf0e10cSrcweir }
343cdf0e10cSrcweir 
344cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
345cdf0e10cSrcweir // #107245#
346cdf0e10cSrcweir 
Svx3DCloseFrontItem(sal_Bool bVal)347cdf0e10cSrcweir Svx3DCloseFrontItem::Svx3DCloseFrontItem(sal_Bool bVal)
348cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DOBJ_CLOSE_FRONT, bVal)
349cdf0e10cSrcweir {}
350cdf0e10cSrcweir 
GetVersion(sal_uInt16) const351cdf0e10cSrcweir sal_uInt16 Svx3DCloseFrontItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
352cdf0e10cSrcweir {
353cdf0e10cSrcweir 	return 1;
354cdf0e10cSrcweir }
355cdf0e10cSrcweir 
Create(SvStream & rIn,sal_uInt16 nItemVersion) const356cdf0e10cSrcweir SfxPoolItem* Svx3DCloseFrontItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
357cdf0e10cSrcweir {
358cdf0e10cSrcweir 	SfxBoolItem* pRetval = new Svx3DCloseFrontItem();
359cdf0e10cSrcweir 
360cdf0e10cSrcweir 	if(nItemVersion > 0)
361cdf0e10cSrcweir 	{
362cdf0e10cSrcweir 		SfxBoolItem aBoolItem(Which(), rIn);
363cdf0e10cSrcweir 		pRetval->SetValue(aBoolItem.GetValue());
364cdf0e10cSrcweir 	}
365cdf0e10cSrcweir 
366cdf0e10cSrcweir 	return pRetval;
367cdf0e10cSrcweir }
368cdf0e10cSrcweir 
369cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
370cdf0e10cSrcweir // #107245#
371cdf0e10cSrcweir 
Svx3DCloseBackItem(sal_Bool bVal)372cdf0e10cSrcweir Svx3DCloseBackItem::Svx3DCloseBackItem(sal_Bool bVal)
373cdf0e10cSrcweir :	SfxBoolItem(SDRATTR_3DOBJ_CLOSE_BACK, bVal)
374cdf0e10cSrcweir {}
375cdf0e10cSrcweir 
GetVersion(sal_uInt16) const376cdf0e10cSrcweir sal_uInt16 Svx3DCloseBackItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
377cdf0e10cSrcweir {
378cdf0e10cSrcweir 	return 1;
379cdf0e10cSrcweir }
380cdf0e10cSrcweir 
Create(SvStream & rIn,sal_uInt16 nItemVersion) const381cdf0e10cSrcweir SfxPoolItem* Svx3DCloseBackItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
382cdf0e10cSrcweir {
383cdf0e10cSrcweir 	SfxBoolItem* pRetval = new Svx3DCloseBackItem();
384cdf0e10cSrcweir 
385cdf0e10cSrcweir 	if(nItemVersion > 0)
386cdf0e10cSrcweir 	{
387cdf0e10cSrcweir 		SfxBoolItem aBoolItem(Which(), rIn);
388cdf0e10cSrcweir 		pRetval->SetValue(aBoolItem.GetValue());
389cdf0e10cSrcweir 	}
390cdf0e10cSrcweir 
391cdf0e10cSrcweir 	return pRetval;
392cdf0e10cSrcweir }
393cdf0e10cSrcweir 
394cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
395cdf0e10cSrcweir 
396cdf0e10cSrcweir // Svx3DNormalsKindItem: use drawing::NormalsKind
QueryValue(uno::Any & rVal,sal_uInt8) const397cdf0e10cSrcweir sal_Bool Svx3DNormalsKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
398cdf0e10cSrcweir {
399cdf0e10cSrcweir 	rVal <<= (drawing::NormalsKind)GetValue();
400cdf0e10cSrcweir 	return sal_True;
401cdf0e10cSrcweir }
402cdf0e10cSrcweir 
PutValue(const uno::Any & rVal,sal_uInt8)403cdf0e10cSrcweir sal_Bool Svx3DNormalsKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
404cdf0e10cSrcweir {
405cdf0e10cSrcweir 	drawing::NormalsKind eVar;
406cdf0e10cSrcweir 	if(!(rVal >>= eVar))
407cdf0e10cSrcweir 		return sal_False;
408cdf0e10cSrcweir 	SetValue((sal_Int16)eVar);
409cdf0e10cSrcweir 	return sal_True;
410cdf0e10cSrcweir }
411cdf0e10cSrcweir 
Clone(SfxItemPool *) const412cdf0e10cSrcweir SfxPoolItem* Svx3DNormalsKindItem::Clone(SfxItemPool* /*pPool*/) const
413cdf0e10cSrcweir {
414cdf0e10cSrcweir 	return new Svx3DNormalsKindItem(*this);
415cdf0e10cSrcweir }
416cdf0e10cSrcweir 
417cdf0e10cSrcweir // Svx3DTextureProjectionXItem: use drawing::TextureProjectionMode
QueryValue(uno::Any & rVal,sal_uInt8) const418cdf0e10cSrcweir sal_Bool Svx3DTextureProjectionXItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
419cdf0e10cSrcweir {
420cdf0e10cSrcweir 	rVal <<= (drawing::TextureProjectionMode)GetValue();
421cdf0e10cSrcweir 	return sal_True;
422cdf0e10cSrcweir }
423cdf0e10cSrcweir 
PutValue(const uno::Any & rVal,sal_uInt8)424cdf0e10cSrcweir sal_Bool Svx3DTextureProjectionXItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
425cdf0e10cSrcweir {
426cdf0e10cSrcweir 	drawing::TextureProjectionMode eVar;
427cdf0e10cSrcweir 	if(!(rVal >>= eVar))
428cdf0e10cSrcweir 		return sal_False;
429cdf0e10cSrcweir 	SetValue((sal_Int16)eVar);
430cdf0e10cSrcweir 	return sal_True;
431cdf0e10cSrcweir }
432cdf0e10cSrcweir 
Clone(SfxItemPool *) const433cdf0e10cSrcweir SfxPoolItem* Svx3DTextureProjectionXItem::Clone(SfxItemPool* /*pPool*/) const
434cdf0e10cSrcweir {
435cdf0e10cSrcweir 	return new Svx3DTextureProjectionXItem(*this);
436cdf0e10cSrcweir }
437cdf0e10cSrcweir 
438cdf0e10cSrcweir // Svx3DTextureProjectionYItem: use drawing::TextureProjectionMode
QueryValue(uno::Any & rVal,sal_uInt8) const439cdf0e10cSrcweir sal_Bool Svx3DTextureProjectionYItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
440cdf0e10cSrcweir {
441cdf0e10cSrcweir 	rVal <<= (drawing::TextureProjectionMode)GetValue();
442cdf0e10cSrcweir 	return sal_True;
443cdf0e10cSrcweir }
444cdf0e10cSrcweir 
PutValue(const uno::Any & rVal,sal_uInt8)445cdf0e10cSrcweir sal_Bool Svx3DTextureProjectionYItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
446cdf0e10cSrcweir {
447cdf0e10cSrcweir 	drawing::TextureProjectionMode eVar;
448cdf0e10cSrcweir 	if(!(rVal >>= eVar))
449cdf0e10cSrcweir 		return sal_False;
450cdf0e10cSrcweir 	SetValue((sal_Int16)eVar);
451cdf0e10cSrcweir 	return sal_True;
452cdf0e10cSrcweir }
453cdf0e10cSrcweir 
Clone(SfxItemPool *) const454cdf0e10cSrcweir SfxPoolItem* Svx3DTextureProjectionYItem::Clone(SfxItemPool* /*pPool*/) const
455cdf0e10cSrcweir {
456cdf0e10cSrcweir 	return new Svx3DTextureProjectionYItem(*this);
457cdf0e10cSrcweir }
458cdf0e10cSrcweir 
459cdf0e10cSrcweir // Svx3DTextureKindItem: use drawing::TextureKind
QueryValue(uno::Any & rVal,sal_uInt8) const460cdf0e10cSrcweir sal_Bool Svx3DTextureKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
461cdf0e10cSrcweir {
462cdf0e10cSrcweir 	rVal <<= (drawing::TextureKind)GetValue();
463cdf0e10cSrcweir 	return sal_True;
464cdf0e10cSrcweir }
465cdf0e10cSrcweir 
PutValue(const uno::Any & rVal,sal_uInt8)466cdf0e10cSrcweir sal_Bool Svx3DTextureKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
467cdf0e10cSrcweir {
468cdf0e10cSrcweir 	drawing::TextureKind eVar;
469cdf0e10cSrcweir 	if(!(rVal >>= eVar))
470cdf0e10cSrcweir 		return sal_False;
471cdf0e10cSrcweir 	SetValue((sal_Int16)eVar);
472cdf0e10cSrcweir 	return sal_True;
473cdf0e10cSrcweir }
474cdf0e10cSrcweir 
Clone(SfxItemPool *) const475cdf0e10cSrcweir SfxPoolItem* Svx3DTextureKindItem::Clone(SfxItemPool* /*pPool*/) const
476cdf0e10cSrcweir {
477cdf0e10cSrcweir 	return new Svx3DTextureKindItem(*this);
478cdf0e10cSrcweir }
479cdf0e10cSrcweir 
480cdf0e10cSrcweir // Svx3DTextureModeItem: use drawing:TextureMode
QueryValue(uno::Any & rVal,sal_uInt8) const481cdf0e10cSrcweir sal_Bool Svx3DTextureModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
482cdf0e10cSrcweir {
483cdf0e10cSrcweir 	rVal <<= (drawing::TextureMode)GetValue();
484cdf0e10cSrcweir 	return sal_True;
485cdf0e10cSrcweir }
486cdf0e10cSrcweir 
PutValue(const uno::Any & rVal,sal_uInt8)487cdf0e10cSrcweir sal_Bool Svx3DTextureModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
488cdf0e10cSrcweir {
489cdf0e10cSrcweir 	drawing::TextureMode eVar;
490cdf0e10cSrcweir 	if(!(rVal >>= eVar))
491cdf0e10cSrcweir 		return sal_False;
492cdf0e10cSrcweir 	SetValue((sal_Int16)eVar);
493cdf0e10cSrcweir 	return sal_True;
494cdf0e10cSrcweir }
495cdf0e10cSrcweir 
Clone(SfxItemPool *) const496cdf0e10cSrcweir SfxPoolItem* Svx3DTextureModeItem::Clone(SfxItemPool* /*pPool*/) const
497cdf0e10cSrcweir {
498cdf0e10cSrcweir 	return new Svx3DTextureModeItem(*this);
499cdf0e10cSrcweir }
500cdf0e10cSrcweir 
501cdf0e10cSrcweir // Svx3DPerspectiveItem: use drawing::ProjectionMode
QueryValue(uno::Any & rVal,sal_uInt8) const502cdf0e10cSrcweir sal_Bool Svx3DPerspectiveItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
503cdf0e10cSrcweir {
504cdf0e10cSrcweir 	rVal <<= (drawing::ProjectionMode)GetValue();
505cdf0e10cSrcweir 	return sal_True;
506cdf0e10cSrcweir }
507cdf0e10cSrcweir 
PutValue(const uno::Any & rVal,sal_uInt8)508cdf0e10cSrcweir sal_Bool Svx3DPerspectiveItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
509cdf0e10cSrcweir {
510cdf0e10cSrcweir 	drawing::ProjectionMode eVar;
511cdf0e10cSrcweir 	if(!(rVal >>= eVar))
512cdf0e10cSrcweir 		return sal_False;
513cdf0e10cSrcweir 	SetValue((sal_Int16)eVar);
514cdf0e10cSrcweir 	return sal_True;
515cdf0e10cSrcweir }
516cdf0e10cSrcweir 
Clone(SfxItemPool *) const517cdf0e10cSrcweir SfxPoolItem* Svx3DPerspectiveItem::Clone(SfxItemPool* /*pPool*/) const
518cdf0e10cSrcweir {
519cdf0e10cSrcweir 	return new Svx3DPerspectiveItem(*this);
520cdf0e10cSrcweir }
521cdf0e10cSrcweir 
522cdf0e10cSrcweir // Svx3DShadeModeItem: use drawing::ShadeMode
QueryValue(uno::Any & rVal,sal_uInt8) const523cdf0e10cSrcweir sal_Bool Svx3DShadeModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
524cdf0e10cSrcweir {
525cdf0e10cSrcweir 	rVal <<= (drawing::ShadeMode)GetValue();
526cdf0e10cSrcweir 	return sal_True;
527cdf0e10cSrcweir }
528cdf0e10cSrcweir 
PutValue(const uno::Any & rVal,sal_uInt8)529cdf0e10cSrcweir sal_Bool Svx3DShadeModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
530cdf0e10cSrcweir {
531cdf0e10cSrcweir 	drawing::ShadeMode eVar;
532cdf0e10cSrcweir 	if(!(rVal >>= eVar))
533cdf0e10cSrcweir 		return sal_False;
534cdf0e10cSrcweir 	SetValue((sal_Int16)eVar);
535cdf0e10cSrcweir 	return sal_True;
536cdf0e10cSrcweir }
537cdf0e10cSrcweir 
Clone(SfxItemPool *) const538cdf0e10cSrcweir SfxPoolItem* Svx3DShadeModeItem::Clone(SfxItemPool* /*pPool*/) const
539cdf0e10cSrcweir {
540cdf0e10cSrcweir 	return new Svx3DShadeModeItem(*this);
541cdf0e10cSrcweir }
542cdf0e10cSrcweir 
543cdf0e10cSrcweir // EOF
544