merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / chart2 / RelativePosition.idl
blob7363a47f8f5a9fc3f2f89f57865e5da8e7fc8246
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
27 #ifndef com_sun_star_chart2_RelativePosition_idl
28 #define com_sun_star_chart2_RelativePosition_idl
30 #ifndef __com_sun_star_drawing_Alignment_idl__
31 #include <com/sun/star/drawing/Alignment.idl>
32 #endif
34 module com
36 module sun
38 module star
40 module chart2
43 /** Determines a position of an object relative to a size defined by other means.
44 Values from 0 to 1 cover the entire reference rectangle. Values
45 may also be outside this range, especially negative.
47 struct RelativePosition
49 /** The position in the primary direction.
50 The direction is defined by the object using this point.
52 <p>For example for western languages the primary direction may be
53 the horizontal distance measured from left to right.</p>
55 <p>The values are relative to a reference size (for example the page size).
56 Values between 0 and 1 span the complete bounding rectangle.</p>
58 double Primary;
60 /** The position in the secondary direction.
61 The direction is defined by the object using this point.
63 <p>For example for western languages the secondary direction may be
64 the vertical distance measured from top to bottom.</p>
66 <p>The values are relative to a reference size (for example the page size).
67 Values between 0 and 1 span the complete bounding rectangle.</p>
69 double Secondary;
71 /** This indicates how the object is placed at the relative position.
73 <p>The Anchor indicates which point of the placed object
74 will be placed at the coordinates given within Primary and Secondary.</p>
76 <p>For example if Anchor is TOP_LEFT the top left corner of an object will
77 be placed at the given coorediantes. If Anchor is RIGHT the right middle corner of the object will
78 be placed at the given coorediantes.</p>
80 ::com::sun::star::drawing::Alignment Anchor;
83 } ; // chart2
84 } ; // com
85 } ; // sun
86 } ; // star
88 #endif