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_chart2_RelativePosition_idl
28#define com_sun_star_chart2_RelativePosition_idl
29
30#ifndef __com_sun_star_drawing_Alignment_idl__
31#include <com/sun/star/drawing/Alignment.idl>
32#endif
33
34module com
35{
36module sun
37{
38module star
39{
40module chart2
41{
42
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.
46 */
47struct RelativePosition
48{
49    /** The position in the primary direction.
50        The direction is defined by the object using this point.
51
52        <p>For example for western languages the primary direction may be
53        the horizontal distance measured from left to right.</p>
54
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>
57     */
58    double       Primary;
59
60    /** The position in the secondary direction.
61        The direction is defined by the object using this point.
62
63        <p>For example for western languages the secondary direction may be
64        the vertical distance measured from top to bottom.</p>
65
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>
68     */
69    double       Secondary;
70
71    /** This indicates how the object is placed at the relative position.
72
73        <p>The Anchor indicates which point of the placed object
74        will be placed at the coordinates given within Primary and Secondary.</p>
75
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>
79     */
80    ::com::sun::star::drawing::Alignment Anchor;
81};
82
83} ; // chart2
84} ; // com
85} ; // sun
86} ; // star
87
88#endif
89