Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / drawing / MeasureProperties.idl
blobce1ba550637bbdd968c464ae5f7a7d5fc936fa1e
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: MeasureProperties.idl,v $
10 * $Revision: 1.11 $
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_drawing_MeasureProperties_idl__
31 #define __com_sun_star_drawing_MeasureProperties_idl__
33 #ifndef __com_sun_star_drawing_MeasureKind_idl__
34 #include <com/sun/star/drawing/MeasureKind.idl>
35 #endif
37 #ifndef __com_sun_star_drawing_MeasureTextHorzPos_idl__
38 #include <com/sun/star/drawing/MeasureTextHorzPos.idl>
39 #endif
41 #ifndef __com_sun_star_drawing_MeasureTextVertPos_idl__
42 #include <com/sun/star/drawing/MeasureTextVertPos.idl>
43 #endif
46 //=============================================================================
48 module com { module sun { module star { module drawing {
50 //=============================================================================
52 /** This service describes a <type>MeasureShape</type>.
54 published service MeasureProperties
56 //-------------------------------------------------------------------------
57 /** If this property is <TRUE/>, the measure is drawn below the
58 reference edge instead of above it.
60 [property] boolean MeasureBelowReferenceEdge;
62 //-------------------------------------------------------------------------
63 /** This is the length of the first help line.
65 [property] long MeasureHelpLine1Length;
67 //-------------------------------------------------------------------------
68 /** This is the length of the second help line.
70 [property] long MeasureHelpLine2Length;
72 //-------------------------------------------------------------------------
73 /** This is the distance from the measure line to the start of the
74 help lines.
76 [property] long MeasureHelpLineDistance;
78 //-------------------------------------------------------------------------
79 /** This is the overhang of the two help lines.
81 [property] long MeasureHelpLineOverhang;
83 //-------------------------------------------------------------------------
84 /** This enumeration specifies the <type>MeasureKind</type>.
86 [property] com::sun::star::drawing::MeasureKind MeasureKind;
88 //-------------------------------------------------------------------------
89 /** This is the distance from the reference edge to the measure line.
91 [property] long MeasureLineDistance;
93 //-------------------------------------------------------------------------
94 /** This is the overhang of the reference line over the help lines.
96 [property] long MeasureOverhang;
98 //-------------------------------------------------------------------------
99 /** If this is <TRUE/>, the unit of measure is shown in the measure text.
101 [property] boolean MeasureShowUnit;
103 //-------------------------------------------------------------------------
104 /** If this is <TRUE/>, the angle of the measure is set automatically.
106 [property] boolean MeasureTextAutoAngle;
108 //-------------------------------------------------------------------------
109 /** This is the automatic angle.
111 [property] long MeasureTextAutoAngleView;
113 //-------------------------------------------------------------------------
114 /** This is the fixed angle.
116 [property] long MeasureTextFixedAngle;
118 //-------------------------------------------------------------------------
119 /** This is the horizontal position of the measure text.
121 [property] com::sun::star::drawing::MeasureTextHorzPos MeasureTextHorizontalPosition;
123 //-------------------------------------------------------------------------
124 /** This is the vertical position of the text.
126 [property] com::sun::star::drawing::MeasureTextVertPos MeasureTextVerticalPosition;
128 //-------------------------------------------------------------------------
129 /** If this value is <TRUE/>, the measure has a fixed angle.
131 [property] boolean MeasureTextIsFixedAngle;
133 //-------------------------------------------------------------------------
134 /** If this value is <TRUE/>, the text is rotated 90 degrees.
136 [property] boolean MeasureTextRotate90;
138 //-------------------------------------------------------------------------
139 /** If this value is <TRUE/>, the text is printed upside down.
141 [property] boolean MeasureTextUpsideDown;
143 //-------------------------------------------------------------------------
144 /** This value is the number of decimal places that is used to format the
145 measure value.
147 @since OOo 1.1.2
149 [optional, property] short MeasureDecimalPlaces;
152 //=============================================================================
154 }; }; }; };
156 #endif