20 #ifndef __com_sun_star_i18n_XCalendar_idl__
21 #define __com_sun_star_i18n_XCalendar_idl__
28 module
com { module sun { module star { module i18n {
80 void setValue( [in]
short nCalendarFieldIndex, [in]
short nValue );
88 short getValue( [in]
short nCalendarFieldIndex );
107 void addValue( [in]
short nCalendarFieldIndex, [in]
long nAmount );
204 [in]
short nNameType );
Access to locale specific calendar systems.
Definition: XCalendar.idl:36
void loadDefaultCalendar([in] ::com::sun::star::lang::Locale rLocale)
Load the default calendar for the given locale.
sequence< CalendarItem > getDays()
returns a sequence of CalendarItem describing the day names.
short getMinimumNumberOfDaysForFirstWeek()
returns how many days of a week must reside in the first week of a year.
void setValue([in] short nCalendarFieldIndex, [in] short nValue)
Set the value of a field.
double getDateTime()
Get the UTC date/time as an offset to the start of the calendar at 1-Jan-1970 00:00.
boolean isValid()
Verify if the date fields set by a combination of XCalendar::setValue() calls is valid.
string getDisplayName([in] short nCalendarDisplayIndex, [in] short nIdx, [in] short nNameType)
Returns a string (name to display) matching the given parameters.
short getValue([in] short nCalendarFieldIndex)
Get the value of a field.
string getUniqueID()
Returns the ID string of the loaded calendar, for example, "Gregorian"
short getNumberOfMonthsInYear()
returns the number of months in a year, e.g. 12
sequence< CalendarItem > getMonths()
returns a sequence of CalendarItem describing the month names.
void setMinimumNumberOfDaysForFirstWeek([in] short nDays)
Set how many days of a week must reside in the first week of a year.
void addValue([in] short nCalendarFieldIndex, [in] long nAmount)
Add an amount to a field.
short getNumberOfDaysInWeek()
returns the number of days in a week, e.g. 7
short getFirstDayOfWeek()
returns the first day of a week, one of Weekdays values.
void setFirstDayOfWeek([in] short nDay)
Set the first day of a week, one of Weekdays values.
sequence< string > getAllCalendars([in] ::com::sun::star::lang::Locale rLocale)
Returns all available calendars for the given locale.
void setDateTime([in] double nTimeInDays)
Set the UTC date/time as an offset to the start of the calendar at 1-Jan-1970 00:00.
Calendar getLoadedCalendar()
Get the currently loaded Calendar.
void loadCalendar([in] string uniqueID, [in] ::com::sun::star::lang::Locale rLocale)
Load a specific calendar for the given locale.
base interface of all UNO interfaces
Definition: XInterface.idl:48
Definition: Ambiguous.idl:22
A calendar as returned in a sequence by XLocaleData::getAllCalendars().
Definition: Calendar.idl:38
object represents a specific geographical, political, or cultural region.
Definition: Locale.idl:38