merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / chart2 / RelativeSize.idl
blob669bf0f0df244d3b226a7462504f6d8b89042d4d
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_RelativeSize_idl
28 #define com_sun_star_chart2_RelativeSize_idl
30 module com
32 module sun
34 module star
36 module chart2
39 /** Gives a position relative to some size defined by other means.
40 Values from 0 to 1 cover the entire reference rectangle. Values
41 may also be greater than one, meaning a bigger size than the
42 reference size. Negative values are not allowed.
44 struct RelativeSize
46 /** The extension in the primary direction. The direction is
47 defined by the object using this point.
49 <p>Typically, the direction is determined by an
50 <type>Orientation</type>. Another typical use would be the
51 direction of a given orientation-angle.</p>
53 <p>The values are relative to the page or an object. Values
54 between 0 and 1 span the complete bounding rectangle of the
55 page/object.</p>
57 <p>For a western <type>Orientation</type> this is the
58 width.</p>
60 double Primary;
62 /** The extension in the secondary direction. The direction is
63 defined by the object using this point.
65 <p>Typically, the direction is determined by an
66 <type>Orientation</type>. Another typical use would be the
67 direction perpendicular to a given orientation-angle.</p>
69 <p>The values are relative to the page or an object. Values
70 between 0 and 1 span the complete bounding rectangle of the
71 page/object.</p>
73 <p>For a western <type>Orientation</type> this is the
74 height.</p>
76 double Secondary;
79 } ; // chart2
80 } ; // com
81 } ; // sun
82 } ; // star
84 #endif