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_EnhancedCustomShapeGeometry_idl__
28#define __com_sun_star_drawing_EnhancedCustomShapeGeometry_idl__
29
30#ifndef __com_sun_star_awt_Rectangle_idl__
31#include <com/sun/star/awt/Rectangle.idl>
32#endif
33#ifndef __com_sun_star_beans_PropertyValue_idl__
34#include <com/sun/star/beans/PropertyValue.idl>
35#endif
36#ifndef __com_sun_star_beans_PropertyValues_idl__
37#include <com/sun/star/beans/PropertyValues.idl>
38#endif
39#ifndef __com_sun_star_drawing_EnhancedCustomShapeHandle_idl__
40#include <com/sun/star/drawing/EnhancedCustomShapeHandle.idl>
41#endif
42#ifndef __com_sun_star_drawing_EnhancedCustomShapeAdjustmentValue_idl__
43#include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.idl>
44#endif
45
46//=============================================================================
47
48module com { module sun { module star { module drawing {
49
50//=============================================================================
51/**
52  This service may be represented by a ::com::sun::star::beans::PropertyValue [].
53*/
54
55service EnhancedCustomShapeGeometry
56{
57	/**
58		The Type attribute contains the name of a shape type. This name can be
59		used to offer specialized user interfaces for certain classes of shapes, like
60		for arrows, smileys, etc. The shape type is rendering engine dependent and does
61		not influence the geometry of the shape. If the value of the draw:type
62		attribute is non-primitive, then no shape type is available.
63	*/
64	[property] string Type;
65
66	/** This property describes the user space of the shape in its canonical form
67	*/
68	[optional, property] ::com::sun::star::awt::Rectangle ViewBox;
69
70	/** This property specifies if the orientation of the shape is horizontal mirrored.
71	*/
72	[optional, property] boolean MirroredX;
73
74	/** This property specifies if the orientation of the shape is vertical mirrored.
75	*/
76	[optional, property] boolean MirroredY;
77
78	/** This property specifies the text rotation angle in degrees. The text rotation is added
79	    to the shape geometry rotation.
80	*/
81	[optional, property] double TextRotateAngle;
82
83	/** This property specifies a sequence of Adjustment values.
84	*/
85	[optional, property] sequence<::com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue> AdjustmentValues;
86
87	/** This property sequence is including the extrusion description, the properties
88	    are as same as specified in the service com::sun::star:drawing::EnhancedCustomShapeExtrusion
89	*/
90	[optional, property] sequence<::com::sun::star::beans::PropertyValue> Extrusion;
91
92	/** This property sequence is including the path description, the properties
93	    are as same as specified in the service com::sun::star:drawing::EnhancedCustomShapePath
94	*/
95	[optional, property] sequence<::com::sun::star::beans::PropertyValue> Path;
96
97	/** This property sequence is including the textpath description, the properties
98	    are as same as specified in the service com::sun::star:drawing::EnhancedCustomShapeTextPath
99	*/
100	[optional, property] sequence<::com::sun::star::beans::PropertyValue> TextPath;
101
102	/** This property is describing the equations that are used, each equation can be referenced
103		by com::sun::star::drawing::EnhancedCustomShapeParameter which are often used in Path, Extrusion
104		and or Handle descriptions.
105	*/
106	[optional, property] sequence<string> Equations;
107
108	/** This property is describing the interaction handles that are used, each inner property sequence
109	    is having the same properties as they are specified in the service com::sun::star:drawing::EnhancedCustomShapeHandle
110	*/
111	[optional, property] sequence<::com::sun::star::beans::PropertyValues> Handles;
112};
113
114//=============================================================================
115
116}; }; }; };
117
118#endif
119
120