LibreOffice Module svx (master)  1
svx3ditems.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_SVX_SVX3DITEMS_HXX
20 #define INCLUDED_SVX_SVX3DITEMS_HXX
21 
22 #include <svl/intitem.hxx>
23 #include <svl/eitem.hxx>
24 
25 
26 #include <editeng/colritem.hxx>
27 #include <svx/e3ditem.hxx>
28 #include <svx/viewpt3d.hxx>
29 #include <svx/svddef.hxx>
30 #include <svx/svxdllapi.h>
31 
32 // Svx3D _3DOBJ_ Items
35 }
36 
37 inline SfxUInt16Item makeSvx3DBackscaleItem(sal_uInt16 nVal) {
39 }
40 
41 inline SfxUInt32Item makeSvx3DDepthItem(sal_uInt32 nVal) {
42  return SfxUInt32Item(SDRATTR_3DOBJ_DEPTH, nVal);
43 }
44 
47 }
48 
51 }
52 
53 inline SfxUInt32Item makeSvx3DEndAngleItem(sal_uInt32 nVal) {
55 }
56 
59 }
60 
61 // #i28528#
62 // Added extra Item (Bool) for chart2 to be able to show reduced line geometry
64 public:
65  Svx3DReducedLineGeometryItem(bool bVal = false);
66  SfxPoolItem * Clone(SfxItemPool * = nullptr) const override;
67 };
68 
70 public:
71  Svx3DNormalsKindItem(sal_uInt16 nVal = 0);
72 
73  // use drawing::NormalsKind
74  SVX_DLLPRIVATE virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
75  SVX_DLLPRIVATE virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
76  SVX_DLLPRIVATE virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
77 };
78 
81 }
82 
84 public:
85  Svx3DTextureProjectionXItem(sal_uInt16 nVal = 0);
86 
87  // use drawing::TextureProjectionMode
88  SVX_DLLPRIVATE virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
89  SVX_DLLPRIVATE virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
90  SVX_DLLPRIVATE virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
91 };
92 
94 public:
95  Svx3DTextureProjectionYItem(sal_uInt16 nVal = 0);
96 
97  // use drawing::TextureProjectionMode
98  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
99  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
100  virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
101 };
102 
104  return SfxBoolItem(SDRATTR_3DOBJ_SHADOW_3D, bVal);
105 }
106 
109 }
110 
113 }
114 
117 }
118 
120 public:
121  Svx3DTextureKindItem(sal_uInt16 nVal = 3);
122 
123  // use drawing::TextureKind
124  SVX_DLLPRIVATE virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
125  SVX_DLLPRIVATE virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
126  SVX_DLLPRIVATE virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
127 };
128 
130 public:
131  Svx3DTextureModeItem(sal_uInt16 nVal = 2);
132 
133  // use drawing:TextureMode
134  SVX_DLLPRIVATE virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
135  SVX_DLLPRIVATE virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
136  SVX_DLLPRIVATE virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
137 };
138 
141 }
142 
143 // Svx3D _3DSCENE_ Items
145 public:
147 
148  // use drawing::ProjectionMode
149  SVX_DLLPRIVATE virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
150  SVX_DLLPRIVATE virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
151  SVX_DLLPRIVATE virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
152 };
153 
154 inline SfxUInt32Item makeSvx3DDistanceItem(sal_uInt32 nVal) {
156 }
157 
158 inline SfxUInt32Item makeSvx3DFocalLengthItem(sal_uInt32 nVal) {
160 }
161 
164 }
165 
168 }
169 
172 }
173 
176 }
177 
180 }
181 
184 }
185 
188 }
189 
192 }
193 
196 }
197 
200 }
201 
204 }
205 
208 }
209 
212 }
213 
216 }
217 
220 }
221 
224 }
225 
228 }
229 
232 }
233 
236 }
237 
240 }
241 
244 }
245 
248 }
249 
252 }
253 
256 }
257 
260 }
261 
264 }
265 
266 inline SfxUInt16Item makeSvx3DShadowSlantItem(sal_uInt16 nVal) {
268 }
269 
271 public:
272  Svx3DShadeModeItem(sal_uInt16 nVal = 2);
273 
274  // use drawing::ShadeMode
275  SVX_DLLPRIVATE virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
276  SVX_DLLPRIVATE virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
277  SVX_DLLPRIVATE virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
278 };
279 
280 
281 // #107245# Item to replace bExtrudeSmoothed and bLatheSmoothed
283 public:
284  Svx3DSmoothNormalsItem(bool bVal = true);
285  SfxPoolItem * Clone(SfxItemPool * = nullptr) const override;
286 };
287 
288 // #107245# Item to replace bExtrudeSmoothFrontBack and bLatheSmoothFrontBack
290 public:
291  Svx3DSmoothLidsItem(bool bVal = false);
292  SfxPoolItem * Clone(SfxItemPool * = nullptr) const override;
293 };
294 
295 // #107245# Item to replace bExtrudeCharacterMode and bLatheCharacterMode
297 public:
298  Svx3DCharacterModeItem(bool bVal = false);
299  SfxPoolItem * Clone(SfxItemPool * = nullptr) const override;
300 };
301 
302 // #107245# Item to replace bExtrudeCloseFront and bLatheCloseFront
304 public:
305  Svx3DCloseFrontItem(bool bVal = true);
306  SfxPoolItem * Clone(SfxItemPool * = nullptr) const override;
307 };
308 
309 // #107245# Item to replace bExtrudeCloseBack and bLatheCloseBack
311 public:
312  Svx3DCloseBackItem(bool bVal = true);
313  SfxPoolItem * Clone(SfxItemPool * = nullptr) const override;
314 };
315 
316 #endif // INCLUDED_SVX_SVX3DITEMS_HXX
317 
318 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Svx3DReducedLineGeometryItem(bool bVal=false)
Definition: svx3ditems.cxx:34
SvxColorItem makeSvx3DLightcolor7Item(const Color &rCol)
Definition: svx3ditems.hxx:190
SfxBoolItem makeSvx3DLightOnOff2Item(bool bVal)
Definition: svx3ditems.hxx:206
SfxBoolItem makeSvx3DDoubleSidedItem(bool bVal)
Definition: svx3ditems.hxx:57
#define SDRATTR_3DSCENE_TWO_SIDED_LIGHTING
Definition: svddef.hxx:361
#define SDRATTR_3DOBJ_PERCENT_DIAGONAL
Definition: svddef.hxx:323
#define SDRATTR_3DOBJ_VERT_SEGS
Definition: svddef.hxx:327
#define SDRATTR_3DSCENE_LIGHTON_4
Definition: svddef.hxx:374
Svx3DCharacterModeItem(bool bVal=false)
Definition: svx3ditems.cxx:92
ProjectionType
Definition: viewpt3d.hxx:38
#define SDRATTR_3DOBJ_MAT_EMISSION
Definition: svddef.hxx:336
#define SDRATTR_3DSCENE_LIGHTON_2
Definition: svddef.hxx:372
#define SDRATTR_3DOBJ_DOUBLE_SIDED
Definition: svddef.hxx:329
SvxColorItem makeSvx3DLightcolor2Item(const Color &rCol)
Definition: svx3ditems.hxx:170
SfxUInt32Item makeSvx3DVerticalSegmentsItem(sal_uInt32 nVal)
Definition: svx3ditems.hxx:49
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
SfxUInt16Item makeSvx3DMaterialSpecularIntensityItem(sal_uInt16 nVal)
Definition: svx3ditems.hxx:115
#define SDRATTR_3DSCENE_LIGHTON_8
Definition: svddef.hxx:378
#define SDRATTR_3DOBJ_MAT_SPECULAR_INTENSITY
Definition: svddef.hxx:338
SfxBoolItem makeSvx3DLightOnOff7Item(bool bVal)
Definition: svx3ditems.hxx:226
SfxUInt16Item makeSvx3DPercentDiagonalItem(sal_uInt16 nVal)
Definition: svx3ditems.hxx:33
#define SDRATTR_3DSCENE_LIGHTCOLOR_3
Definition: svddef.hxx:364
SfxBoolItem makeSvx3DLightOnOff1Item(bool bVal)
Definition: svx3ditems.hxx:202
SvxB3DVectorItem makeSvx3DLightDirection4Item(const basegfx::B3DVector &rVec)
Definition: svx3ditems.hxx:246
#define SDRATTR_3DOBJ_NORMALS_INVERT
Definition: svddef.hxx:331
#define SDRATTR_3DSCENE_LIGHTCOLOR_6
Definition: svddef.hxx:367
SfxPoolItem * Clone(SfxItemPool *=nullptr) const override
Definition: svx3ditems.cxx:86
#define SDRATTR_3DSCENE_FOCAL_LENGTH
Definition: svddef.hxx:360
#define SDRATTR_3DSCENE_LIGHTON_5
Definition: svddef.hxx:375
#define SDRATTR_3DOBJ_END_ANGLE
Definition: svddef.hxx:328
SvxColorItem makeSvx3DMaterialSpecularItem(const Color &rCol)
Definition: svx3ditems.hxx:111
#define SDRATTR_3DSCENE_LIGHTON_3
Definition: svddef.hxx:373
#define SDRATTR_3DSCENE_LIGHTDIRECTION_5
Definition: svddef.hxx:383
SvxB3DVectorItem makeSvx3DLightDirection6Item(const basegfx::B3DVector &rVec)
Definition: svx3ditems.hxx:254
SfxBoolItem makeSvx3DNormalsInvertItem(bool bVal)
Definition: svx3ditems.hxx:79
#define SDRATTR_3DSCENE_LIGHTCOLOR_1
Definition: svddef.hxx:362
SfxUInt32Item makeSvx3DFocalLengthItem(sal_uInt32 nVal)
Definition: svx3ditems.hxx:158
#define SDRATTR_3DSCENE_LIGHTCOLOR_2
Definition: svddef.hxx:363
#define SDRATTR_3DSCENE_LIGHTDIRECTION_6
Definition: svddef.hxx:384
#define SDRATTR_3DSCENE_LIGHTDIRECTION_4
Definition: svddef.hxx:382
#define SDRATTR_3DSCENE_LIGHTDIRECTION_8
Definition: svddef.hxx:386
#define SDRATTR_3DOBJ_HORZ_SEGS
Definition: svddef.hxx:326
#define SDRATTR_3DOBJ_BACKSCALE
Definition: svddef.hxx:324
#define SDRATTR_3DSCENE_LIGHTON_1
Definition: svddef.hxx:371
virtual SfxPoolItem * Clone(SfxItemPool *=nullptr) const override
SfxUInt32Item makeSvx3DDistanceItem(sal_uInt32 nVal)
Definition: svx3ditems.hxx:154
SfxUInt16Item makeSvx3DBackscaleItem(sal_uInt16 nVal)
Definition: svx3ditems.hxx:37
#define SDRATTR_3DOBJ_DEPTH
Definition: svddef.hxx:325
SfxUInt32Item makeSvx3DHorizontalSegmentsItem(sal_uInt32 nVal)
Definition: svx3ditems.hxx:45
SvxB3DVectorItem makeSvx3DLightDirection5Item(const basegfx::B3DVector &rVec)
Definition: svx3ditems.hxx:250
#define SDRATTR_3DSCENE_DISTANCE
Definition: svddef.hxx:359
SvxColorItem makeSvx3DLightcolor1Item(const Color &rCol)
Definition: svx3ditems.hxx:166
#define SDRATTR_3DSCENE_LIGHTDIRECTION_7
Definition: svddef.hxx:385
#define SDRATTR_3DSCENE_LIGHTCOLOR_4
Definition: svddef.hxx:365
SfxUInt32Item makeSvx3DDepthItem(sal_uInt32 nVal)
Definition: svx3ditems.hxx:41
SfxBoolItem makeSvx3DShadow3DItem(bool bVal)
Definition: svx3ditems.hxx:103
SvxColorItem makeSvx3DLightcolor4Item(const Color &rCol)
Definition: svx3ditems.hxx:178
SfxPoolItem * Clone(SfxItemPool *=nullptr) const override
Definition: svx3ditems.cxx:38
SvxColorItem makeSvx3DLightcolor8Item(const Color &rCol)
Definition: svx3ditems.hxx:194
SvxColorItem makeSvx3DMaterialEmissionItem(const Color &rCol)
Definition: svx3ditems.hxx:107
SfxPoolItem * Clone(SfxItemPool *=nullptr) const override
Definition: svx3ditems.cxx:96
SvxColorItem makeSvx3DAmbientcolorItem(const Color &rCol)
Definition: svx3ditems.hxx:198
SfxPoolItem * Clone(SfxItemPool *=nullptr) const override
Definition: svx3ditems.cxx:76
#define SDRATTR_3DSCENE_LIGHTCOLOR_8
Definition: svddef.hxx:369
Svx3DSmoothNormalsItem(bool bVal=true)
Definition: svx3ditems.cxx:72
#define SDRATTR_3DOBJ_MAT_SPECULAR
Definition: svddef.hxx:337
SfxBoolItem makeSvx3DLightOnOff4Item(bool bVal)
Definition: svx3ditems.hxx:214
SvxB3DVectorItem makeSvx3DLightDirection2Item(const basegfx::B3DVector &rVec)
Definition: svx3ditems.hxx:238
unsigned char sal_uInt8
SfxUInt32Item makeSvx3DEndAngleItem(sal_uInt32 nVal)
Definition: svx3ditems.hxx:53
SvxB3DVectorItem makeSvx3DLightDirection1Item(const basegfx::B3DVector &rVec)
Definition: svx3ditems.hxx:234
SfxBoolItem makeSvx3DLightOnOff8Item(bool bVal)
Definition: svx3ditems.hxx:230
SvxB3DVectorItem makeSvx3DLightDirection3Item(const basegfx::B3DVector &rVec)
Definition: svx3ditems.hxx:242
#define SDRATTR_3DSCENE_LIGHTON_7
Definition: svddef.hxx:377
SfxBoolItem makeSvx3DLightOnOff3Item(bool bVal)
Definition: svx3ditems.hxx:210
#define SDRATTR_3DSCENE_SHADOW_SLANT
Definition: svddef.hxx:387
#define SDRATTR_3DSCENE_AMBIENTCOLOR
Definition: svddef.hxx:370
SfxBoolItem makeSvx3DTwoSidedLightingItem(bool bVal)
Definition: svx3ditems.hxx:162
#define SDRATTR_3DOBJ_TEXTURE_FILTER
Definition: svddef.hxx:341
SvxB3DVectorItem makeSvx3DLightDirection8Item(const basegfx::B3DVector &rVec)
Definition: svx3ditems.hxx:262
SvxColorItem makeSvx3DLightcolor3Item(const Color &rCol)
Definition: svx3ditems.hxx:174
SfxBoolItem makeSvx3DLightOnOff5Item(bool bVal)
Definition: svx3ditems.hxx:218
#define SDRATTR_3DOBJ_SHADOW_3D
Definition: svddef.hxx:334
#define SDRATTR_3DSCENE_LIGHTDIRECTION_3
Definition: svddef.hxx:381
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
#define SDRATTR_3DSCENE_LIGHTCOLOR_7
Definition: svddef.hxx:368
#define SDRATTR_3DSCENE_LIGHTON_6
Definition: svddef.hxx:376
SfxUInt16Item makeSvx3DShadowSlantItem(sal_uInt16 nVal)
Definition: svx3ditems.hxx:266
#define SDRATTR_3DSCENE_LIGHTDIRECTION_1
Definition: svddef.hxx:379
SvxColorItem makeSvx3DLightcolor6Item(const Color &rCol)
Definition: svx3ditems.hxx:186
#define SDRATTR_3DSCENE_LIGHTDIRECTION_2
Definition: svddef.hxx:380
Svx3DSmoothLidsItem(bool bVal=false)
Definition: svx3ditems.cxx:82
#define SVX_DLLPRIVATE
Definition: svxdllapi.h:30
SfxBoolItem makeSvx3DTextureFilterItem(bool bVal)
Definition: svx3ditems.hxx:139
virtual SfxPoolItem * Clone(SfxItemPool *=nullptr) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
#define SDRATTR_3DSCENE_LIGHTCOLOR_5
Definition: svddef.hxx:366
SvxColorItem makeSvx3DLightcolor5Item(const Color &rCol)
Definition: svx3ditems.hxx:182
SfxBoolItem makeSvx3DLightOnOff6Item(bool bVal)
Definition: svx3ditems.hxx:222
SvxB3DVectorItem makeSvx3DLightDirection7Item(const basegfx::B3DVector &rVec)
Definition: svx3ditems.hxx:258