1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_drawing_EnhancedCustomShapeExtrusion_idl__
28#define __com_sun_star_drawing_EnhancedCustomShapeExtrusion_idl__
29
30#ifndef __com_sun_star_awt_Size_idl__
31#include <com/sun/star/awt/Size.idl>
32#endif
33#ifndef __com_sun_star_awt_Point_idl__
34#include <com/sun/star/awt/Point.idl>
35#endif
36#ifndef __com_sun_star_beans_PropertyValue_idl__
37#include <com/sun/star/beans/PropertyValue.idl>
38#endif
39#ifndef __com_sun_star_drawing_Position3D_idl__
40#include <com/sun/star/drawing/Position3D.idl>
41#endif
42#ifndef __com_sun_star_drawing_Direction3D_idl__
43#include <com/sun/star/drawing/Direction3D.idl>
44#endif
45#ifndef __com_sun_star_drawing_ProjectionMode_idl__
46#include <com/sun/star/drawing/ProjectionMode.idl>
47#endif
48#ifndef __com_sun_star_drawing_ShadeMode_idl__
49#include <com/sun/star/drawing/ShadeMode.idl>
50#endif
51#ifndef __com_sun_star_drawing_EnhancedCustomShapeParameterPair_idl__
52#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.idl>
53#endif
54
55//=============================================================================
56
57module com { module sun { module star { module drawing {
58
59//=============================================================================
60/**
61  This service may be represented by a ::com::sun::star::beans::PropertyValue [].
62*/
63
64service EnhancedCustomShapeExtrusion
65{
66	/** This property specifies if extrusion is displayed. The default for this property
67		is "false"
68	*/
69	[optional, property] boolean Extrusion;
70
71	/** This attribute specifies the brightness of a scene in percent.
72	*/
73	[optional, property] double Brightness;
74
75	/** The first value of EnhancedCustomShapeParameterPair specifies the depth of the
76		extrusion in 1/100 mm. The second value (0.0 to 1.0) specifies the fraction of
77		the extrusion that lies before the shape, a value of 0 is default.
78	*/
79	[optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair Depth;
80
81	/** This attribute specifies the amount of diffusion reflected by the shape
82        in percent
83	*/
84	[optional, property] double Diffusion;
85
86	/** Specifies the number of line segments that should be used to display curved surfaces.
87		The higher the number the more line segments are used.
88	*/
89	[optional, property] long NumberOfLineSegments;
90
91	/** Specifies if the front face of the extrusion responds to lightning changes.
92	*/
93	[optional, property] boolean LightFace;
94
95	/** Specifies if the primary light is harsh.
96	*/
97	[optional, property] boolean FirstLightHarsh;
98
99	/** Specifies if the secondary light is harsh.
100	*/
101	[optional, property] boolean SecondLightHarsh;
102
103	/** Specifies the intensity for the first light in percent.
104	*/
105	[optional, property] double FirstLightLevel;
106
107	/** Specifies the intensity for the second light in percent.
108	*/
109	[optional, property] double SecondLightLevel;
110
111	/** Specifies the direction of the first light.
112	*/
113	[optional, property] ::com::sun::star::drawing::Direction3D FirstLightDirection;
114
115	/** Specifies the direction of the second light.
116	*/
117	[optional, property] ::com::sun::star::drawing::Direction3D SecondLightDirection;
118
119	/** Specifies if the surface of the extrusion object looks like metal.
120	*/
121	[optional, property] boolean Metal;
122
123	/** This property defines the shade mode.
124	*/
125	[optional, property] ::com::sun::star::drawing::ShadeMode ShadeMode;
126
127	/**	This attributes specifies the rotation angle about the x-axis in grad.
128	    The order of rotation is: z-axis, y-axis and then x-axis. The z-axis is
129		specified by the draw:rotate-angle.
130	*/
131	[optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair RotateAngle;
132
133	/** This attribute specifies the position of the rotate center
134	    in terms of shape size fractions, if the property is omitted, then
135		the geometrical center of the shape is used (this is the default).
136	*/
137	[optional, property] ::com::sun::star::drawing::Direction3D RotationCenter;
138
139	/** The draw:extrusion-shininess specifies the shininess of a mirror in percent.
140	*/
141	[optional, property] double Shininess;
142
143	/** The first value of the draw:extrusion-skew attribute specifies the skew amount of
144		an extrusion in	percent. The second parameter specifies the skew-angle. Skew settings
145		are only applied if the attribute ProjectionMode is ProjectionMode_PARALLEL.
146	*/
147	[optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair Skew;
148
149	/** This attribute specifies the specularity of an extrusion object in percent.
150	*/
151	[optional, property] double Specularity;
152
153	/** This property defines the projection mode.
154	*/
155	[optional, property] com::sun::star::drawing::ProjectionMode ProjectionMode;
156
157	/** This attribute specifies the viewpoint of the observer.
158	*/
159	[optional, property] ::com::sun::star::drawing::Position3D ViewPoint;
160
161	/** This attribute specifies the origin within the bounding box of the
162	    shape in terms of the shape size fractions.
163	*/
164	[optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair Origin;
165
166	/** This attribute specifies if the "SecondFillColor" is used as extrusion color
167	*/
168	[optional, property] boolean ExtrusionColor;
169};
170
171//=============================================================================
172
173}; }; }; };
174
175#endif
176
177