1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef com_sun_star_chart2_RelativeSize_idl
24#define com_sun_star_chart2_RelativeSize_idl
25
26module com
27{
28module sun
29{
30module star
31{
32module chart2
33{
34
35/** Gives a position relative to some size defined by other means.
36    Values from 0 to 1 cover the entire reference rectangle.  Values
37    may also be greater than one, meaning a bigger size than the
38    reference size.  Negative values are not allowed.
39 */
40struct RelativeSize
41{
42    /** The extension in the primary direction.  The direction is
43        defined by the object using this point.
44
45        <p>Typically, the direction is determined by an
46        <type>Orientation</type>.  Another typical use would be the
47        direction of a given orientation-angle.</p>
48
49        <p>The values are relative to the page or an object.  Values
50        between 0 and 1 span the complete bounding rectangle of the
51        page/object.</p>
52
53        <p>For a western <type>Orientation</type> this is the
54        width.</p>
55     */
56    double       Primary;
57
58    /** The extension in the secondary direction.  The direction is
59        defined by the object using this point.
60
61        <p>Typically, the direction is determined by an
62        <type>Orientation</type>.  Another typical use would be the
63        direction perpendicular to a given orientation-angle.</p>
64
65        <p>The values are relative to the page or an object.  Values
66        between 0 and 1 span the complete bounding rectangle of the
67        page/object.</p>
68
69        <p>For a western <type>Orientation</type> this is the
70        height.</p>
71     */
72    double       Secondary;
73};
74
75} ; // chart2
76} ; // com
77} ; // sun
78} ; // star
79
80#endif
81