1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef com_sun_star_chart2_RelativePosition_idl
24cdf0e10cSrcweir#define com_sun_star_chart2_RelativePosition_idl
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_drawing_Alignment_idl__
27cdf0e10cSrcweir#include <com/sun/star/drawing/Alignment.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweirmodule com
31cdf0e10cSrcweir{
32cdf0e10cSrcweirmodule sun
33cdf0e10cSrcweir{
34cdf0e10cSrcweirmodule star
35cdf0e10cSrcweir{
36cdf0e10cSrcweirmodule chart2
37cdf0e10cSrcweir{
38cdf0e10cSrcweir
39cdf0e10cSrcweir/** Determines a position of an object relative to a size defined by other means.
40cdf0e10cSrcweir    Values from 0 to 1 cover the entire reference rectangle. Values
41cdf0e10cSrcweir    may also be outside this range, especially negative.
42cdf0e10cSrcweir */
43cdf0e10cSrcweirstruct RelativePosition
44cdf0e10cSrcweir{
45cdf0e10cSrcweir    /** The position in the primary direction.
46cdf0e10cSrcweir        The direction is defined by the object using this point.
47cdf0e10cSrcweir
48cdf0e10cSrcweir        <p>For example for western languages the primary direction may be
49cdf0e10cSrcweir        the horizontal distance measured from left to right.</p>
50cdf0e10cSrcweir
51cdf0e10cSrcweir        <p>The values are relative to a reference size (for example the page size).
52cdf0e10cSrcweir        Values between 0 and 1 span the complete bounding rectangle.</p>
53cdf0e10cSrcweir     */
54cdf0e10cSrcweir    double       Primary;
55cdf0e10cSrcweir
56cdf0e10cSrcweir    /** The position in the secondary direction.
57cdf0e10cSrcweir        The direction is defined by the object using this point.
58cdf0e10cSrcweir
59cdf0e10cSrcweir        <p>For example for western languages the secondary direction may be
60cdf0e10cSrcweir        the vertical distance measured from top to bottom.</p>
61cdf0e10cSrcweir
62cdf0e10cSrcweir        <p>The values are relative to a reference size (for example the page size).
63cdf0e10cSrcweir        Values between 0 and 1 span the complete bounding rectangle.</p>
64cdf0e10cSrcweir     */
65cdf0e10cSrcweir    double       Secondary;
66cdf0e10cSrcweir
67cdf0e10cSrcweir    /** This indicates how the object is placed at the relative position.
68cdf0e10cSrcweir
69cdf0e10cSrcweir        <p>The Anchor indicates which point of the placed object
70cdf0e10cSrcweir        will be placed at the coordinates given within Primary and Secondary.</p>
71cdf0e10cSrcweir
72cdf0e10cSrcweir        <p>For example if Anchor is TOP_LEFT the top left corner of an object will
73cdf0e10cSrcweir        be placed at the given coorediantes. If Anchor is RIGHT the right middle corner of the object will
74cdf0e10cSrcweir        be placed at the given coorediantes.</p>
75cdf0e10cSrcweir     */
76cdf0e10cSrcweir    ::com::sun::star::drawing::Alignment Anchor;
77cdf0e10cSrcweir};
78cdf0e10cSrcweir
79cdf0e10cSrcweir} ; // chart2
80cdf0e10cSrcweir} ; // com
81cdf0e10cSrcweir} ; // sun
82cdf0e10cSrcweir} ; // star
83cdf0e10cSrcweir
84cdf0e10cSrcweir#endif
85