1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: NumberFormat.idl,v $
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_NumberFormat_idl__
31 #define __com_sun_star_util_NumberFormat_idl__
34 //=============================================================================
36 module com
{ module sun
{ module star
{ module util
{
38 //=============================================================================
40 /** contains constants that are used to specify the type of a number format.
42 published constants NumberFormat
44 //-------------------------------------------------------------------------
46 /** selects all number formats.
50 //-------------------------------------------------------------------------
52 /** selects only user-defined number formats.
54 const short DEFINED
= 1;
56 //-------------------------------------------------------------------------
58 /** selects date formats.
62 //-------------------------------------------------------------------------
64 /** selects time formats.
68 //-------------------------------------------------------------------------
70 /** selects currency formats.
72 const short CURRENCY
= 8;
74 //-------------------------------------------------------------------------
76 /** selects decimal number formats.
78 const short NUMBER
= 16;
80 //-------------------------------------------------------------------------
82 /** selects scientific number formats.
84 const short SCIENTIFIC
= 32;
86 //-------------------------------------------------------------------------
88 /** selects number formats for fractions.
90 const short FRACTION
= 64;
92 //-------------------------------------------------------------------------
94 /** selects percentage number formats.
96 const short PERCENT
= 128;
98 //-------------------------------------------------------------------------
100 /** selects text number formats.
102 const short TEXT
= 256;
104 //-------------------------------------------------------------------------
106 /** selects number formats which contain date and time.
108 const short DATETIME
= 6;
110 //-------------------------------------------------------------------------
112 /** selects boolean number formats.
114 const short LOGICAL
= 1024;
116 //-------------------------------------------------------------------------
118 /** is used as a return value if no format exists.
120 const short UNDEFINED
= 2048;
124 //=============================================================================