Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / util / MeasureUnit.idl
blob231a98defe0c105babceb39668955d8e9ca23f29
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: MeasureUnit.idl,v $
10 * $Revision: 1.7 $
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_util_MeasureUnit_idl__
31 #define __com_sun_star_util_MeasureUnit_idl__
34 //=============================================================================
36 module com { module sun { module star { module util {
38 //=============================================================================
40 /** These constants are used to specify a measure.<p>
41 A component using these constants may not support all units.
43 published constants MeasureUnit
45 /** all measures for this component are in 100th millimeter */
46 const short MM_100TH = 0;
48 /** all measures for this component are in 10th millimeter */
49 const short MM_10TH = 1;
51 /** all measures for this component are in millimeter */
52 const short MM = 2;
54 /** all measures for this component are in centimeters */
55 const short CM = 3;
57 /** all measures for this component are in 1000th inch */
58 const short INCH_1000TH = 4;
60 /** all measures for this component are in 100th inch */
61 const short INCH_100TH = 5;
63 /** all measures for this component are in 10th inch */
64 const short INCH_10TH = 6;
66 /** all measures for this component are in inch */
67 const short INCH = 7;
69 /** all measures for this component are in points */
70 const short POINT = 8;
72 /** all measures for this component are in twips */
73 const short TWIP = 9;
75 /** all measures for this component are in meters */
76 const short M = 10;
78 /** all measures for this component are in kilometers */
79 const short KM = 11;
81 /** all measures for this component are in pica */
82 const short PICA = 12;
84 /** all measures for this component are in foot */
85 const short FOOT = 13;
87 /** all measures for this component are in miles */
88 const short MILE = 14;
90 /** all measures for this component are in percentage */
91 const short PERCENT = 15;
93 /** all measures for this component are in pixel */
94 const short PIXEL = 16;
96 /** all measures for this component are in APPFONT */
97 const short APPFONT = 17;
99 /** all measures for this component are in SYSFONT */
100 const short SYSFONT = 18;
104 //=============================================================================
106 }; }; }; };
108 #endif