update dev300-m58
[ooovba.git] / offapi / com / sun / star / chart2 / RelativePosition.idl
blob8880a6023af164126df7eb2b2b622b814b802efe
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: RelativePosition.idl,v $
10 * $Revision: 1.3 $
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_chart2_RelativePosition_idl
31 #define com_sun_star_chart2_RelativePosition_idl
33 #ifndef __com_sun_star_drawing_Alignment_idl__
34 #include <com/sun/star/drawing/Alignment.idl>
35 #endif
37 module com
39 module sun
41 module star
43 module chart2
46 /** Determines a position of an object relative to a size defined by other means.
47 Values from 0 to 1 cover the entire reference rectangle. Values
48 may also be outside this range, especially negative.
50 struct RelativePosition
52 /** The position in the primary direction.
53 The direction is defined by the object using this point.
55 <p>For example for western languages the primary direction may be
56 the horizontal distance measured from left to right.</p>
58 <p>The values are relative to a reference size (for example the page size).
59 Values between 0 and 1 span the complete bounding rectangle.</p>
61 double Primary;
63 /** The position in the secondary direction.
64 The direction is defined by the object using this point.
66 <p>For example for western languages the secondary direction may be
67 the vertical distance measured from top to bottom.</p>
69 <p>The values are relative to a reference size (for example the page size).
70 Values between 0 and 1 span the complete bounding rectangle.</p>
72 double Secondary;
74 /** This indicates how the object is placed at the relative position.
76 <p>The Anchor indicates which point of the placed object
77 will be placed at the coordinates given within Primary and Secondary.</p>
79 <p>For example if Anchor is TOP_LEFT the top left corner of an object will
80 be placed at the given coorediantes. If Anchor is RIGHT the right middle corner of the object will
81 be placed at the given coorediantes.</p>
83 ::com::sun::star::drawing::Alignment Anchor;
86 } ; // chart2
87 } ; // com
88 } ; // sun
89 } ; // star
91 #endif