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_util_MeasureUnit_idl__
24#define __com_sun_star_util_MeasureUnit_idl__
25
26
27//=============================================================================
28
29module com {  module sun {  module star {  module util {
30
31//=============================================================================
32
33/** These constants are used to specify a measure.<p>
34	A component using these constants may not support all units.
35 */
36published constants MeasureUnit
37{
38	/** all measures for this component are in 100th millimeter */
39	const short MM_100TH = 0;
40
41	/** all measures for this component are in 10th millimeter */
42	const short MM_10TH = 1;
43
44	/** all measures for this component are in millimeter */
45	const short MM = 2;
46
47	/** all measures for this component are in centimeters */
48	const short CM = 3;
49
50	/** all measures for this component are in 1000th inch */
51	const short INCH_1000TH = 4;
52
53	/** all measures for this component are in 100th inch */
54	const short INCH_100TH = 5;
55
56	/** all measures for this component are in 10th inch */
57	const short INCH_10TH = 6;
58
59	/** all measures for this component are in inch */
60	const short INCH = 7;
61
62	/** all measures for this component are in points */
63	const short POINT = 8;
64
65	/** all measures for this component are in twips */
66	const short TWIP = 9;
67
68	/** all measures for this component are in meters */
69	const short M = 10;
70
71	/** all measures for this component are in kilometers */
72	const short KM = 11;
73
74	/** all measures for this component are in pica */
75	const short PICA = 12;
76
77	/** all measures for this component are in foot */
78	const short FOOT = 13;
79
80	/** all measures for this component are in miles */
81	const short MILE = 14;
82
83	/** all measures for this component are in percentage */
84	const short PERCENT = 15;
85
86	/** all measures for this component are in pixel */
87	const short PIXEL = 16;
88
89	/** all measures for this component are in APPFONT */
90	const short APPFONT = 17;
91
92	/** all measures for this component are in SYSFONT */
93	const short SYSFONT = 18;
94
95};
96
97//=============================================================================
98
99}; }; }; };
100
101#endif
102
103