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 .
20 #ifndef __com_sun_star_i18n_CalendarDisplayCode_idl__
21 #define __com_sun_star_i18n_CalendarDisplayCode_idl__
24 module com
{ module sun
{ module star
{ module i18n
{
29 Constants to use with XExtendedCalendar::getDisplayString().
31 <p> The examples given are for an English Gregorian calendar, note
32 that other calendars or locales may return completely different
33 strings, for example not a four digit year but a CJK name instead.
38 published constants CalendarDisplayCode
40 /// Day of month, one or two digits, no leading zero.
41 const long SHORT_DAY
= 1;
42 /// Day of month, two digits, with leading zero.
43 const long LONG_DAY
= 2;
44 /// Day of week, abbreviated name.
45 const long SHORT_DAY_NAME
= 3;
46 /// Day of week, full name.
47 const long LONG_DAY_NAME
= 4;
49 /// Month of year, one or two digits, no leading zero.
50 const long SHORT_MONTH
= 5;
51 /// Month of year, with leading zero.
52 const long LONG_MONTH
= 6;
53 /// Abbreviated month name.
54 const long SHORT_MONTH_NAME
= 7;
56 const long LONG_MONTH_NAME
= 8;
59 const long SHORT_YEAR
= 9;
60 /// Year, four digits.
61 const long LONG_YEAR
= 10;
62 /// Abbreviated era name, for example, BC or AD.
63 const long SHORT_ERA
= 11;
64 /// Full era name, for example, "Before Christ" or "Anno Dominus".
65 const long LONG_ERA
= 12;
66 /// Combined short year and era, order depends on locale/calendar.
67 const long SHORT_YEAR_AND_ERA
= 13;
68 /// Combined full year and era, order depends on locale/calendar.
69 const long LONG_YEAR_AND_ERA
= 14;
71 /// Short quarter, for example, "Q1"
72 const long SHORT_QUARTER
= 15;
73 /// Long quarter, for example, "1st quarter"
74 const long LONG_QUARTER
= 16;
76 /** Abbreviated possessive genitive case month name.
77 @since LibreOffice 3.5
79 const long SHORT_GENITIVE_MONTH_NAME
= 17;
81 /** Full possessive genitive case month name.
82 @since LibreOffice 3.5
84 const long LONG_GENITIVE_MONTH_NAME
= 18;
86 /** Narrow possessive genitive case month name.
87 @since LibreOffice 3.5
89 const long NARROW_GENITIVE_MONTH_NAME
= 19;
91 /** Abbreviated partitive case month name.
92 @since LibreOffice 3.5
94 const long SHORT_PARTITIVE_MONTH_NAME
= 20;
96 /** Full partitive case month name.
97 @since LibreOffice 3.5
99 const long LONG_PARTITIVE_MONTH_NAME
= 21;
101 /** Narrow partitive case month name.
102 @since LibreOffice 3.5
104 const long NARROW_PARTITIVE_MONTH_NAME
= 22;
106 /** Day of week, narrow name.
107 @since LibreOffice 3.5
109 const long NARROW_DAY_NAME
= 23;
111 /** Narrow month name.
112 @since LibreOffice 3.5
114 const long NARROW_MONTH_NAME
= 24;
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */