1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef __com_sun_star_i18n_LocaleItem_idl__
30 #define __com_sun_star_i18n_LocaleItem_idl__
32 //=============================================================================
34 module com
{ module sun
{ module star
{ module i18n
{
36 //=============================================================================
40 Constant values identifying specific locale data items.
42 <p> These are not used with the API but with an OOo internal wrapper class
43 that caches the contents of an instance of <type>LocaleDataItem</type> and
44 uses these values to access it's members for faster access. </p>
46 <p> Whenever locale data items were added these values and the wrapper
47 class would have to be adjusted to give the application an easier access.
51 published constants LocaleItem
53 /// @see ::com::sun::star::i18n::LocaleDataItem::dateSeparator
54 const short DATE_SEPARATOR
= 0;
55 /// @see com::sun::star::i18n::LocaleDataItem::thousandSeparator
56 const short THOUSAND_SEPARATOR
= 1;
57 /// @see com::sun::star::i18n::LocaleDataItem::decimalSeparator
58 const short DECIMAL_SEPARATOR
= 2;
59 /// @see com::sun::star::i18n::LocaleDataItem::timeSeparator
60 const short TIME_SEPARATOR
= 3;
61 /// @see com::sun::star::i18n::LocaleDataItem::time100SecSeparator
62 const short TIME_100SEC_SEPARATOR
= 4;
63 /// @see com::sun::star::i18n::LocaleDataItem::listSeparator
64 const short LIST_SEPARATOR
= 5;
65 /// @see com::sun::star::i18n::LocaleDataItem::quotationStart
66 const short SINGLE_QUOTATION_START
= 6;
67 /// @see com::sun::star::i18n::LocaleDataItem::quotationEnd
68 const short SINGLE_QUOTATION_END
= 7;
69 /// @see com::sun::star::i18n::LocaleDataItem::doubleQuotationStart
70 const short DOUBLE_QUOTATION_START
= 8;
71 /// @see com::sun::star::i18n::LocaleDataItem::doubleQuotationEnd
72 const short DOUBLE_QUOTATION_END
= 9;
73 /// @see com::sun::star::i18n::LocaleDataItem::timeAM
74 const short MEASUREMENT_SYSTEM
= 10;
75 /// @see com::sun::star::i18n::LocaleDataItem::timePM
76 const short TIME_AM
= 11;
77 /// @see com::sun::star::i18n::LocaleDataItem::measurementSystem
78 const short TIME_PM
= 12;
79 /// @see com::sun::star::i18n::LocaleDataItem::LongDateDayOfWeekSeparator
80 const short LONG_DATE_DAY_OF_WEEK_SEPARATOR
= 13;
81 /// @see com::sun::star::i18n::LocaleDataItem::LongDateDaySeparator
82 const short LONG_DATE_DAY_SEPARATOR
= 14;
83 /// @see com::sun::star::i18n::LocaleDataItem::LongDateMonthSeparator
84 const short LONG_DATE_MONTH_SEPARATOR
= 15;
85 /// @see com::sun::star::i18n::LocaleDataItem::LongDateYearSeparator
86 const short LONG_DATE_YEAR_SEPARATOR
= 16;
88 //! New values may be inserted here if locale data provides them.
89 //! Do not forget to adjust the COUNT value.
91 /// count of items available
92 const short COUNT
= 17;
96 //=============================================================================
100 //=============================================================================
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */