xref: /AOO41X/main/offapi/com/sun/star/drawing/GluePoint2.idl (revision d1766043198e81d0bcfc626e12893e7b4d7e31ca)
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_GluePoint2_idl__
24#define __com_sun_star_drawing_GluePoint2_idl__
25
26#ifndef __com_sun_star_drawing_Alignment_idl__
27#include <com/sun/star/drawing/Alignment.idl>
28#endif
29
30#ifndef __com_sun_star_awt_Point_idl__
31#include <com/sun/star/awt/Point.idl>
32#endif
33
34#ifndef __com_sun_star_drawing_EscapeDirection_idl__
35#include <com/sun/star/drawing/EscapeDirection.idl>
36#endif
37
38//=============================================================================
39
40 module com {  module sun {  module star {  module drawing {
41
42//=============================================================================
43
44/** This struct defines the attributes of a glue point.
45    <p>A glue point is a position inside a drawing shape where an edge
46    of a connector shape can be connected.</p>
47 */
48published struct GluePoint2
49{
50    /** This is the position of this glue point. Depending on
51        the flag <code>IsRelative</code>, this is either in 1/100cm
52        or in 1/100%.
53
54    <!-- Dennis: Is the % correct? -->
55     */
56    com::sun::star::awt::Point Position;
57
58    /** if this flag is set to true, the position of this glue point
59        is given in 1/100% values instead of 1/100cm. */
60    boolean IsRelative;
61
62    /** if this glue points position is not relative, this enum
63        specifies the vertical and horizontal alignment of this
64        point. The alignment specifies how the glue point is
65        moved if the shape is resized. */
66    com::sun::star::drawing::Alignment PositionAlignment;
67
68    /** this member specifies the escape direction for a glue
69        point. The escape direction is the direction the connecting
70        line escapes the shape. */
71
72    com::sun::star::drawing::EscapeDirection Escape;
73
74    /** if this flag is set to false, this is a default glue
75        point. Some shapes may have default glue points attached
76        to them which cannot be altered or removed. */
77    boolean IsUserDefined;
78};
79
80//=============================================================================
81
82}; }; }; };
83
84#endif
85
86