merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / geometry / EllipticalArc.idl
blobd6e4e8edd95476bc13855ba7c9aafe0af771720d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: EllipticalArc.idl,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_geometry_EllipticalArc_idl__
31 #define __com_sun_star_geometry_EllipticalArc_idl__
33 #ifndef __com_sun_star_geometry_RealPoint2D_idl__
34 #include <com/sun/star/geometry/RealPoint2D.idl>
35 #endif
37 module com { module sun { module star { module geometry {
39 /** This structure specifies an arbitrary elliptical arc.<p>
41 This structure contains all parameters necessary to specify
42 arbitrary elliptical arcs. The parameters are modelled closely
43 after the <a href="www.w3c.org">SVG</a> specification.<p>
45 As with the parameters below, there are mostly four different
46 ellipses arcs (two different ellipses, on which four different
47 arcs connect start and end point) which satisfy the given set of
48 constrains. Thus, there are two flags indicating which one of those
49 ellipses should be taken.<p>
51 @since OOo 2.0.0
53 struct EllipticalArc
55 /// Start point of the arc.
56 RealPoint2D StartPosition;
58 //-------------------------------------------------------------------------
60 /// End point of the arc.
61 RealPoint2D EndPosition;
63 //-------------------------------------------------------------------------
65 /// Main radius in x direction of the ellipse this arc is part of.
66 double RadiusX;
68 //-------------------------------------------------------------------------
70 /// Main radius in y direction of the ellipse this arc is part of.
71 double RadiusY;
73 //-------------------------------------------------------------------------
75 /** Rotation angle of the x axis of the ellipse relative to the x
76 axis of the reference coordinate system.
78 double XAxisRotation;
80 //-------------------------------------------------------------------------
82 /** If <TRUE/>, and there's a choice, take the longer one of two arcs
83 connecting start and end point.
85 boolean IsLargeArc;
87 //-------------------------------------------------------------------------
89 /** If <TRUE/>, and there's a choice, take the arc that goes
90 clock-wise from start to end point.
92 boolean IsClockwiseSweep;
95 }; }; }; };
97 #endif