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_ConnectorShape_idl__
28#define __com_sun_star_drawing_ConnectorShape_idl__
29
30#ifndef __com_sun_star_drawing_XConnectorShape_idl__
31#include <com/sun/star/drawing/XConnectorShape.idl>
32#endif
33
34#ifndef __com_sun_star_drawing_ConnectorProperties_idl__
35#include <com/sun/star/drawing/ConnectorProperties.idl>
36#endif
37
38#ifndef __com_sun_star_drawing_Shape_idl__
39#include <com/sun/star/drawing/Shape.idl>
40#endif
41
42#ifndef __com_sun_star_drawing_LineProperties_idl__
43#include <com/sun/star/drawing/LineProperties.idl>
44#endif
45
46#ifndef __com_sun_star_drawing_Text_idl__
47#include <com/sun/star/drawing/Text.idl>
48#endif
49
50#ifndef __com_sun_star_drawing_ShadowProperties_idl__
51#include <com/sun/star/drawing/ShadowProperties.idl>
52#endif
53
54#ifndef __com_sun_star_drawing_RotationDescriptor_idl__
55#include <com/sun/star/drawing/RotationDescriptor.idl>
56#endif
57
58
59//=============================================================================
60
61 module com {  module sun {  module star {  module drawing {
62
63//=============================================================================
64
65/** This service is for a <type>ConnectorShape</type>, a specialized <type>Shape</type>,
66	which can be connected to other <type>Shape</type>s or <type>GluePoint</type>s.
67 */
68published service ConnectorShape
69{
70	service com::sun::star::drawing::Shape;
71
72	service com::sun::star::drawing::LineProperties;
73
74	service com::sun::star::drawing::ConnectorProperties;
75
76	service com::sun::star::drawing::ShadowProperties;
77
78	service com::sun::star::drawing::Text;
79
80	service com::sun::star::drawing::RotationDescriptor;
81
82	//-------------------------------------------------------------------------
83
84	/** this property either holds the shape that the start point of this
85		connector is connected to, or is empty when the start point of the
86		connector is not connected to a shape.
87	*/
88	[property] com::sun::star::drawing::XShape StartShape;
89
90	//-------------------------------------------------------------------------
91
92	/** this property holds the index of the glue point the start point of
93		this connector is glued on.
94	*/
95	[property] long StartGluePointIndex;
96
97	//-------------------------------------------------------------------------
98
99	/** this is the position of the connectors start point in 100th/mm. For
100		unconnected start points you can get and set the position. For
101		connected start points you can only get the position.
102	*/
103	[property] com::sun::star::awt::Point StartPosition;
104
105	//-------------------------------------------------------------------------
106
107	/** this property either holds the shape that the end point of this
108		connector is connected to, or is empty when the end point of the
109		connector is not connected to a shape.
110	*/
111	[property] com::sun::star::drawing::XShape EndShape;
112
113	//-------------------------------------------------------------------------
114
115	/** this property holds the index of the glue point the end point of
116		this connector is glued on.
117	*/
118	[property] com::sun::star::awt::Point EndPosition;
119
120	//-------------------------------------------------------------------------
121
122	/** this is the position of the connectors end point in 100th/mm. For
123		unconnected end points you can get and set the position. For
124		connected end points you can only get the position.
125	*/
126	[property] long EndGluePointIndex;
127
128	//-------------------------------------------------------------------------
129
130	/** This property contains the distance of line 1.
131	 */
132	[property] long EdgeLine1Delta;
133
134	//-------------------------------------------------------------------------
135
136	/** This property contains the distance of line 2.
137	 */
138	[property] long EdgeLine2Delta;
139
140	//-------------------------------------------------------------------------
141
142	/** This property contains the distance of line 3.
143	 */
144	[property] long EdgeLine3Delta;
145};
146
147//=============================================================================
148
149}; }; }; };
150
151#endif
152
153