1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef __com_sun_star_drawing_Shape_idl__
20 #define __com_sun_star_drawing_Shape_idl__
22 #include
<com
/sun
/star
/document
/LinkTarget.idl
>
23 #include
<com
/sun
/star
/drawing
/XShape.idl
>
24 #include
<com
/sun
/star
/lang
/XComponent.idl
>
25 #include
<com
/sun
/star
/style
/XStyle.idl
>
26 #include
<com
/sun
/star
/drawing
/HomogenMatrix3.idl
>
27 #include
<com
/sun
/star
/drawing
/XGluePointsSupplier.idl
>
28 #include
<com
/sun
/star
/container
/XNameContainer.idl
>
29 #include
<com
/sun
/star
/beans
/XTolerantMultiPropertySet.idl
>
30 #include
<com
/sun
/star
/beans
/PropertyValue.idl
>
32 module com
{ module sun
{ module star
{ module drawing
{
35 /** This abstract service specifies the general characteristics of all
39 @see com::sun::star::lang::XComponent
40 @see com::sun::star::text::XText
43 published service Shape
46 /** handles all the properties of this instance.
48 interface com
::sun
::star
::beans
::XPropertySet
;
51 /** This gives you the size and position of this Shape
52 and lets you change it. You can use getShapeType()
53 to determine what kind of shape this is.
55 interface com
::sun
::star
::drawing
::XShape
;
58 /** is used for lifetime control of this Shape.
60 interface com
::sun
::star
::lang
::XComponent
;
63 /** The XShapeDescriptor tells you what kind of
64 Shape this instance is.
66 interface com
::sun
::star
::drawing
::XShapeDescriptor
;
69 /** This interfaces gives access to an optional container of glue points.
70 To have unique ids you should query the returned interface for
71 com::sun::star::container::XIdentifierContainer.
73 [optional] interface com
::sun
::star
::drawing
::XGluePointsSupplier
;
76 [optional] interface com
::sun
::star
::beans
::XTolerantMultiPropertySet
;
79 /** is used to query or change the ZOrder of this Shape. */
80 [optional, property
] long ZOrder
;
83 /** This is the ID of the Layer to which this
86 [optional, property
] short LayerID
;
89 /** This is the name of the Layer to which this
92 [optional, property
] string LayerName
;
95 /** If this is `FALSE`, the Shape is not visible
96 on screen outputs. Please note that the Shape may still
97 be visible when printed, see #Printable.
99 [optional, property
] boolean Visible
;
102 /** If this is `FALSE`, the Shape is not visible
105 [optional, property
] boolean Printable
;
108 /** With this set to `TRUE`, this Shape
109 cannot be moved interactively in the user interface.
111 [optional, property
] boolean MoveProtect
;
114 /** This is the name of this Shape.
116 [optional, property
] string Name
;
119 /** With this set to `TRUE`, this Shape may not be
120 sized interactively in the user interface.
122 [optional, property
] boolean SizeProtect
;
125 /** this property lets you get and set a style for this shape.
127 [optional, property
] com
::sun
::star
::style
::XStyle Style
;
130 /** this property lets you get and set the transformation matrix
133 The transformation is a 3x3 homogeneous matrix and can contain
134 translation, rotation, shearing and scaling.
136 [optional, property
] com
::sun
::star
::drawing
::HomogenMatrix3 Transformation
;
139 /** this property stores xml attributes.
140 They will be saved to and restored from automatic styles inside xml files.
142 @see com::sun::star::xml::AttributeContainer
144 [optional, property
] com
::sun
::star
::container
::XNameContainer ShapeUserDefinedAttributes
;
147 /** this property stores the navigation order of this shape. If this value
148 is negative, the navigation order for this shapes page is equal to
151 [optional, property
] long NavigationOrder
;
153 /** this property lets you get and set a hyperlink for this shape.
155 [optional, property
] string Hyperlink
;
157 /** Grab bag of shape properties, used as a string-any map for
158 interim interop purposes.
160 @since LibreOffice 4.2
162 <p>This property is intentionally not handled by the ODF
163 filter. Any member that should be handled there should be
164 first moved out from this grab bag to a separate property.</p>
166 [optional, property
] sequence
<com
::sun
::star
::beans
::PropertyValue
> InteropGrabBag
;
168 /** contains the relative height of the object.
169 <p> It is only valid if it is greater than zero.</p>
171 @since LibreOffice 4.3
173 [optional, property
] short RelativeHeight
;
175 /** contains the relative width of the object.
176 <p> It is only valid if it is greater than zero. </p>
178 @since LibreOffice 4.3
180 [optional, property
] short RelativeWidth
;
182 /** contains the relation of the relative height of the object.
183 <p> It is only valid if RelativeHeight is greater than zero.</p>
185 @see com::sun::star::text::RelOrientation
186 @since LibreOffice 4.3
188 [optional, property
] short RelativeHeightRelation
;
190 /** contains the relation of the relative width of the object.
191 <p> It is only valid if RelativeWidth is greater than zero.</p>
193 @see com::sun::star::text::RelOrientation
194 @since LibreOffice 4.3
196 [optional, property
] short RelativeWidthRelation
;
204 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */