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_drawing_MeasureProperties_idl__
24#define __com_sun_star_drawing_MeasureProperties_idl__
25
26#ifndef __com_sun_star_drawing_MeasureKind_idl__
27#include <com/sun/star/drawing/MeasureKind.idl>
28#endif
29
30#ifndef __com_sun_star_drawing_MeasureTextHorzPos_idl__
31#include <com/sun/star/drawing/MeasureTextHorzPos.idl>
32#endif
33
34#ifndef __com_sun_star_drawing_MeasureTextVertPos_idl__
35#include <com/sun/star/drawing/MeasureTextVertPos.idl>
36#endif
37
38
39//=============================================================================
40
41 module com {  module sun {  module star {  module drawing {
42
43//=============================================================================
44
45/** This service describes a <type>MeasureShape</type>.
46 */
47published service MeasureProperties
48{
49	//-------------------------------------------------------------------------
50	/** If this property is <TRUE/>, the measure is drawn below the
51		reference edge instead of above it.
52	 */
53	[property] boolean MeasureBelowReferenceEdge;
54
55	//-------------------------------------------------------------------------
56	/** This is the length of the first help line.
57	 */
58	[property] long MeasureHelpLine1Length;
59
60	//-------------------------------------------------------------------------
61	/** This is the length of the second help line.
62	 */
63	[property] long MeasureHelpLine2Length;
64
65	//-------------------------------------------------------------------------
66	/** This is the distance from the measure line to the start of the
67		help lines.
68	 */
69	[property] long MeasureHelpLineDistance;
70
71	//-------------------------------------------------------------------------
72	/** This is the overhang of the two help lines.
73	 */
74	[property] long MeasureHelpLineOverhang;
75
76	//-------------------------------------------------------------------------
77	/** This enumeration specifies the <type>MeasureKind</type>.
78	 */
79	[property] com::sun::star::drawing::MeasureKind MeasureKind;
80
81	//-------------------------------------------------------------------------
82	/** This is the distance from the reference edge to the measure line.
83	 */
84	[property] long MeasureLineDistance;
85
86	//-------------------------------------------------------------------------
87	/** This is the overhang of the reference line over the help lines.
88	 */
89	[property] long MeasureOverhang;
90
91	//-------------------------------------------------------------------------
92	/** If this is <TRUE/>, the unit of measure is shown in the measure text.
93	 */
94	[property] boolean MeasureShowUnit;
95
96	//-------------------------------------------------------------------------
97	/** If this is <TRUE/>, the angle of the measure is set automatically.
98	 */
99	[property] boolean MeasureTextAutoAngle;
100
101	//-------------------------------------------------------------------------
102	/** This is the automatic angle.
103	 */
104	[property] long MeasureTextAutoAngleView;
105
106	//-------------------------------------------------------------------------
107	/** This is the fixed angle.
108	 */
109	[property] long MeasureTextFixedAngle;
110
111	//-------------------------------------------------------------------------
112	/** This is the horizontal position of the measure text.
113	 */
114	[property] com::sun::star::drawing::MeasureTextHorzPos MeasureTextHorizontalPosition;
115
116	//-------------------------------------------------------------------------
117	/** This is the vertical position of the text.
118	 */
119	[property] com::sun::star::drawing::MeasureTextVertPos MeasureTextVerticalPosition;
120
121	//-------------------------------------------------------------------------
122	/** If this value is <TRUE/>, the measure has a fixed angle.
123	 */
124	[property] boolean MeasureTextIsFixedAngle;
125
126	//-------------------------------------------------------------------------
127	/** If this value is <TRUE/>, the text is rotated 90 degrees.
128	 */
129	[property] boolean MeasureTextRotate90;
130
131	//-------------------------------------------------------------------------
132	/** If this value is <TRUE/>, the text is printed upside down.
133	 */
134	[property] boolean MeasureTextUpsideDown;
135
136	//-------------------------------------------------------------------------
137	/** This value is the number of decimal places that is used to format the
138		measure value.
139
140		@since OOo 1.1.2
141	 */
142	[optional, property] short MeasureDecimalPlaces;
143 };
144
145//=============================================================================
146
147}; }; }; };
148
149#endif
150
151