1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_drawing_EnhancedCustomShapeExtrusion_idl__
24#define __com_sun_star_drawing_EnhancedCustomShapeExtrusion_idl__
25
26#ifndef __com_sun_star_awt_Size_idl__
27#include <com/sun/star/awt/Size.idl>
28#endif
29#ifndef __com_sun_star_awt_Point_idl__
30#include <com/sun/star/awt/Point.idl>
31#endif
32#ifndef __com_sun_star_beans_PropertyValue_idl__
33#include <com/sun/star/beans/PropertyValue.idl>
34#endif
35#ifndef __com_sun_star_drawing_Position3D_idl__
36#include <com/sun/star/drawing/Position3D.idl>
37#endif
38#ifndef __com_sun_star_drawing_Direction3D_idl__
39#include <com/sun/star/drawing/Direction3D.idl>
40#endif
41#ifndef __com_sun_star_drawing_ProjectionMode_idl__
42#include <com/sun/star/drawing/ProjectionMode.idl>
43#endif
44#ifndef __com_sun_star_drawing_ShadeMode_idl__
45#include <com/sun/star/drawing/ShadeMode.idl>
46#endif
47#ifndef __com_sun_star_drawing_EnhancedCustomShapeParameterPair_idl__
48#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.idl>
49#endif
50
51//=============================================================================
52
53module com { module sun { module star { module drawing {
54
55//=============================================================================
56/**
57  This service may be represented by a ::com::sun::star::beans::PropertyValue [].
58*/
59
60service EnhancedCustomShapeExtrusion
61{
62	/** This property specifies if extrusion is displayed. The default for this property
63		is "false"
64	*/
65	[optional, property] boolean Extrusion;
66
67	/** This attribute specifies the brightness of a scene in percent.
68	*/
69	[optional, property] double Brightness;
70
71	/** The first value of EnhancedCustomShapeParameterPair specifies the depth of the
72		extrusion in 1/100 mm. The second value (0.0 to 1.0) specifies the fraction of
73		the extrusion that lies before the shape, a value of 0 is default.
74	*/
75	[optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair Depth;
76
77	/** This attribute specifies the amount of diffusion reflected by the shape
78        in percent
79	*/
80	[optional, property] double Diffusion;
81
82	/** Specifies the number of line segments that should be used to display curved surfaces.
83		The higher the number the more line segments are used.
84	*/
85	[optional, property] long NumberOfLineSegments;
86
87	/** Specifies if the front face of the extrusion responds to lightning changes.
88	*/
89	[optional, property] boolean LightFace;
90
91	/** Specifies if the primary light is harsh.
92	*/
93	[optional, property] boolean FirstLightHarsh;
94
95	/** Specifies if the secondary light is harsh.
96	*/
97	[optional, property] boolean SecondLightHarsh;
98
99	/** Specifies the intensity for the first light in percent.
100	*/
101	[optional, property] double FirstLightLevel;
102
103	/** Specifies the intensity for the second light in percent.
104	*/
105	[optional, property] double SecondLightLevel;
106
107	/** Specifies the direction of the first light.
108	*/
109	[optional, property] ::com::sun::star::drawing::Direction3D FirstLightDirection;
110
111	/** Specifies the direction of the second light.
112	*/
113	[optional, property] ::com::sun::star::drawing::Direction3D SecondLightDirection;
114
115	/** Specifies if the surface of the extrusion object looks like metal.
116	*/
117	[optional, property] boolean Metal;
118
119	/** This property defines the shade mode.
120	*/
121	[optional, property] ::com::sun::star::drawing::ShadeMode ShadeMode;
122
123	/**	This attributes specifies the rotation angle about the x-axis in grad.
124	    The order of rotation is: z-axis, y-axis and then x-axis. The z-axis is
125		specified by the draw:rotate-angle.
126	*/
127	[optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair RotateAngle;
128
129	/** This attribute specifies the position of the rotate center
130	    in terms of shape size fractions, if the property is omitted, then
131		the geometrical center of the shape is used (this is the default).
132	*/
133	[optional, property] ::com::sun::star::drawing::Direction3D RotationCenter;
134
135	/** The draw:extrusion-shininess specifies the shininess of a mirror in percent.
136	*/
137	[optional, property] double Shininess;
138
139	/** The first value of the draw:extrusion-skew attribute specifies the skew amount of
140		an extrusion in	percent. The second parameter specifies the skew-angle. Skew settings
141		are only applied if the attribute ProjectionMode is ProjectionMode_PARALLEL.
142	*/
143	[optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair Skew;
144
145	/** This attribute specifies the specularity of an extrusion object in percent.
146	*/
147	[optional, property] double Specularity;
148
149	/** This property defines the projection mode.
150	*/
151	[optional, property] com::sun::star::drawing::ProjectionMode ProjectionMode;
152
153	/** This attribute specifies the viewpoint of the observer.
154	*/
155	[optional, property] ::com::sun::star::drawing::Position3D ViewPoint;
156
157	/** This attribute specifies the origin within the bounding box of the
158	    shape in terms of the shape size fractions.
159	*/
160	[optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair Origin;
161
162	/** This attribute specifies if the "SecondFillColor" is used as extrusion color
163	*/
164	[optional, property] boolean ExtrusionColor;
165};
166
167//=============================================================================
168
169}; }; }; };
170
171#endif
172
173