merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / chart2 / RelativeSize.idl
blob6e9aa1d796e648a2c714945e2f34287715bcdbcf
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: RelativeSize.idl,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef com_sun_star_chart2_RelativeSize_idl
31 #define com_sun_star_chart2_RelativeSize_idl
33 module com
35 module sun
37 module star
39 module chart2
42 /** Gives a position relative to some size defined by other means.
43 Values from 0 to 1 cover the entire reference rectangle. Values
44 may also be greater than one, meaning a bigger size than the
45 reference size. Negative values are not allowed.
47 struct RelativeSize
49 /** The extension in the primary direction. The direction is
50 defined by the object using this point.
52 <p>Typically, the direction is determined by an
53 <type>Orientation</type>. Another typical use would be the
54 direction of a given orientation-angle.</p>
56 <p>The values are relative to the page or an object. Values
57 between 0 and 1 span the complete bounding rectangle of the
58 page/object.</p>
60 <p>For a western <type>Orientation</type> this is the
61 width.</p>
63 double Primary;
65 /** The extension in the secondary direction. The direction is
66 defined by the object using this point.
68 <p>Typically, the direction is determined by an
69 <type>Orientation</type>. Another typical use would be the
70 direction perpendicular to a given orientation-angle.</p>
72 <p>The values are relative to the page or an object. Values
73 between 0 and 1 span the complete bounding rectangle of the
74 page/object.</p>
76 <p>For a western <type>Orientation</type> this is the
77 height.</p>
79 double Secondary;
82 } ; // chart2
83 } ; // com
84 } ; // sun
85 } ; // star
87 #endif