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: XExtendedCalendar.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_XExtendedCalendar_idl__
32 #define __com_sun_star_i18n_XExtendedCalendar_idl__
34 #include
<com
/sun
/star
/i18n
/XCalendar.idl
>
36 //=============================================================================
38 module com
{ module sun
{ module star
{ module i18n
{
40 //=============================================================================
44 This interface provides access to locale specific calendar
47 <p> It is derived from
48 <type scope="::com::sun::star::i18n">XCalendar</type> and provides
49 additional functionality to display parts of the date currently
50 set at the calendar. </p>
54 published
interface XExtendedCalendar
: ::com
::sun
::star
::i18n
::XCalendar
56 //-------------------------------------------------------------------------
58 Returns a string (number or name to display) matching the
61 <p> Note that the string returned depends completely on the
62 locale's calendar. It is not predictable if the string will be
63 numeric or a name, or if in case it retuns a numeric string
64 how many digits that will have. For example, a short year
65 display string will normally be two digits with a Gregorian
66 calendar, but with a Jewish calendar it will have three
69 @param nCalendarDisplayCode
70 One of <type>CalendarDisplayCode</type>
72 @param nNativeNumberMode
73 One of <type>NativeNumberMode</type>. <br/>
74 This argument designates the basic transliteration mode as
75 if specified for the year representation. However, depending
76 on the locale, different conversions for year and month, for
77 example, may be chosen internally. This is beyond the user's
78 control and depends on locale specific conventions of how a
81 string getDisplayString
( [in] long nCalendarDisplayCode
, [in] short nNativeNumberMode
);
85 //=============================================================================