1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com
{ module sun
{ module star
{ module i18n
{
26 Constants to use with XExtendedCalendar::getDisplayString().
28 <p> The examples given are for an English Gregorian calendar, note
29 that other calendars or locales may return completely different
30 strings, for example not a four digit year but a CJK name instead.
35 published constants CalendarDisplayCode
37 /// Day of month, one or two digits, no leading zero.
38 const long SHORT_DAY
= 1;
39 /// Day of month, two digits, with leading zero.
40 const long LONG_DAY
= 2;
41 /// Day of week, abbreviated name.
42 const long SHORT_DAY_NAME
= 3;
43 /// Day of week, full name.
44 const long LONG_DAY_NAME
= 4;
46 /// Month of year, one or two digits, no leading zero.
47 const long SHORT_MONTH
= 5;
48 /// Month of year, with leading zero.
49 const long LONG_MONTH
= 6;
50 /// Abbreviated month name.
51 const long SHORT_MONTH_NAME
= 7;
53 const long LONG_MONTH_NAME
= 8;
56 const long SHORT_YEAR
= 9;
57 /// Year, four digits.
58 const long LONG_YEAR
= 10;
59 /// Abbreviated era name, for example, BC or AD.
60 const long SHORT_ERA
= 11;
61 /// Full era name, for example, "Before Christ" or "Anno Dominus".
62 const long LONG_ERA
= 12;
63 /// Combined short year and era, order depends on locale/calendar.
64 const long SHORT_YEAR_AND_ERA
= 13;
65 /// Combined full year and era, order depends on locale/calendar.
66 const long LONG_YEAR_AND_ERA
= 14;
68 /// Short quarter, for example, "Q1"
69 const long SHORT_QUARTER
= 15;
70 /// Long quarter, for example, "1st quarter"
71 const long LONG_QUARTER
= 16;
73 /** Abbreviated possessive genitive case month name.
74 @since LibreOffice 3.5
76 const long SHORT_GENITIVE_MONTH_NAME
= 17;
78 /** Full possessive genitive case month name.
79 @since LibreOffice 3.5
81 const long LONG_GENITIVE_MONTH_NAME
= 18;
83 /** Narrow possessive genitive case month name.
84 @since LibreOffice 3.5
86 const long NARROW_GENITIVE_MONTH_NAME
= 19;
88 /** Abbreviated partitive case month name.
89 @since LibreOffice 3.5
91 const long SHORT_PARTITIVE_MONTH_NAME
= 20;
93 /** Full partitive case month name.
94 @since LibreOffice 3.5
96 const long LONG_PARTITIVE_MONTH_NAME
= 21;
98 /** Narrow partitive case month name.
99 @since LibreOffice 3.5
101 const long NARROW_PARTITIVE_MONTH_NAME
= 22;
103 /** Day of week, narrow name.
104 @since LibreOffice 3.5
106 const long NARROW_DAY_NAME
= 23;
108 /** Narrow month name.
109 @since LibreOffice 3.5
111 const long NARROW_MONTH_NAME
= 24;
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */