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: LocaleItem.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 ************************************************************************/
31 #ifndef __com_sun_star_i18n_LocaleItem_idl__
32 #define __com_sun_star_i18n_LocaleItem_idl__
34 //=============================================================================
36 module com
{ module sun
{ module star
{ module i18n
{
38 //=============================================================================
42 Constant values identifying specific locale data items.
44 <p> These are not used with the API but with an OOo internal wrapper class
45 that caches the contents of an instance of <type>LocaleDataItem</type> and
46 uses these values to access it's members for faster access. </p>
48 <p> Whenever locale data items were added these values and the wrapper
49 class would have to be adjusted to give the application an easier access.
53 published constants LocaleItem
55 /// @see ::com::sun::star::i18n::LocaleDataItem::dateSeparator
56 const short DATE_SEPARATOR
= 0;
57 /// @see com::sun::star::i18n::LocaleDataItem::thousandSeparator
58 const short THOUSAND_SEPARATOR
= 1;
59 /// @see com::sun::star::i18n::LocaleDataItem::decimalSeparator
60 const short DECIMAL_SEPARATOR
= 2;
61 /// @see com::sun::star::i18n::LocaleDataItem::timeSeparator
62 const short TIME_SEPARATOR
= 3;
63 /// @see com::sun::star::i18n::LocaleDataItem::time100SecSeparator
64 const short TIME_100SEC_SEPARATOR
= 4;
65 /// @see com::sun::star::i18n::LocaleDataItem::listSeparator
66 const short LIST_SEPARATOR
= 5;
67 /// @see com::sun::star::i18n::LocaleDataItem::quotationStart
68 const short SINGLE_QUOTATION_START
= 6;
69 /// @see com::sun::star::i18n::LocaleDataItem::quotationEnd
70 const short SINGLE_QUOTATION_END
= 7;
71 /// @see com::sun::star::i18n::LocaleDataItem::doubleQuotationStart
72 const short DOUBLE_QUOTATION_START
= 8;
73 /// @see com::sun::star::i18n::LocaleDataItem::doubleQuotationEnd
74 const short DOUBLE_QUOTATION_END
= 9;
75 /// @see com::sun::star::i18n::LocaleDataItem::timeAM
76 const short MEASUREMENT_SYSTEM
= 10;
77 /// @see com::sun::star::i18n::LocaleDataItem::timePM
78 const short TIME_AM
= 11;
79 /// @see com::sun::star::i18n::LocaleDataItem::measurementSystem
80 const short TIME_PM
= 12;
81 /// @see com::sun::star::i18n::LocaleDataItem::LongDateDayOfWeekSeparator
82 const short LONG_DATE_DAY_OF_WEEK_SEPARATOR
= 13;
83 /// @see com::sun::star::i18n::LocaleDataItem::LongDateDaySeparator
84 const short LONG_DATE_DAY_SEPARATOR
= 14;
85 /// @see com::sun::star::i18n::LocaleDataItem::LongDateMonthSeparator
86 const short LONG_DATE_MONTH_SEPARATOR
= 15;
87 /// @see com::sun::star::i18n::LocaleDataItem::LongDateYearSeparator
88 const short LONG_DATE_YEAR_SEPARATOR
= 16;
90 //! New values may be inserted here if locale data provides them.
91 //! Do not forget to adjust the COUNT value.
93 /// count of items available
94 const short COUNT
= 17;
98 //=============================================================================
102 //=============================================================================