1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24#ifndef __com_sun_star_i18n_CalendarDisplayCode_idl__ 25#define __com_sun_star_i18n_CalendarDisplayCode_idl__ 26 27//============================================================================= 28 29module com { module sun { module star { module i18n { 30 31//============================================================================= 32 33 34/** 35 Constants to use with <member>XExtendedCalendar::getDisplayString()</member>. 36 37 <p> The examples given are for an English Gregorian calendar, note 38 that other calendars or locales may return completely different 39 strings, for example not a four digit year but a CJK name instead. 40 <p/> 41 42 @since OpenOffice 1.1.2 43 */ 44published constants CalendarDisplayCode 45{ 46 /// Day of month, one or two digits, no leading zero. 47 const long SHORT_DAY = 1; 48 /// Day of month, two digits, with leading zero. 49 const long LONG_DAY = 2; 50 /// Day of week, abbreviated name. 51 const long SHORT_DAY_NAME = 3; 52 /// Day of week, full name. 53 const long LONG_DAY_NAME = 4; 54 55 /// Month of year, one or two digits, no leading zero. 56 const long SHORT_MONTH = 5; 57 /// Month of year, with leading zero. 58 const long LONG_MONTH = 6; 59 /// Full month name. 60 const long SHORT_MONTH_NAME = 7; 61 /// Abbreviated month name. 62 const long LONG_MONTH_NAME = 8; 63 64 /// Year, two digits. 65 const long SHORT_YEAR = 9; 66 /// Year, four digits. 67 const long LONG_YEAR = 10; 68 /// Full era name, for example, "Before Christ" or "Anno Dominus". 69 const long SHORT_ERA = 11; 70 /// Abbreviated era name, for example, BC or AD. 71 const long LONG_ERA = 12; 72 /// Combined short year and era, order depends on locale/calendar. 73 const long SHORT_YEAR_AND_ERA = 13; 74 /// Combined full year and era, order depends on locale/calendar. 75 const long LONG_YEAR_AND_ERA = 14; 76 77 /// Short quarter, for example, "Q1" 78 const long SHORT_QUARTER = 15; 79 /// Long quarter, for example, "1st quarter" 80 const long LONG_QUARTER = 16; 81}; 82 83//============================================================================= 84}; }; }; }; 85 86#endif 87