summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2011-11-22 14:29:35 +0100
committerEike Rathke <erack@redhat.com>2011-11-22 14:52:41 +0100
commit3b5ee26d2c27b9fb8d3836c470832fc81cda721f (patch)
treefae2e2fce03aaf000a18ae253493d50b68f377de /offapi
parent734bfe16bdfe7c80fa8c0c71d680746353686961 (diff)
added partitive case month names
* Locale data: * nominative (nouns) month names always given in <MonthsOfYear> element * optional genitive case month names in <GenitiveMonths> element, following the <MonthsOfYear> element; if not given take nominative names * optional partitive case month names in <PartitiveMonths> element, following the <GenitiveMonths> element, or following the <MonthsOfYear> element if the <GenitiveMonths> element is not present; if not given take genitive case names, or nominative if genitive names aren't defined * currently known partitive case matters in Finnish locales * Rules for use of nominative / genitive / partitive case month names in number formatter: * no day of month (D or DD) present in format code => MMM or MMMM display nominative month name (noun) * day of month (D or DD) after MMM or MMMM => genitive name * no genitive names defined => nominative names * day of month (D or DD) before MMM or MMMM => partitive name * no partitive names defined => genitive names * no genitive names defined => nominative names
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/i18n/Calendar2.idl17
-rw-r--r--offapi/com/sun/star/i18n/CalendarDisplayCode.idl95
-rw-r--r--offapi/com/sun/star/i18n/CalendarDisplayIndex.idl25
-rw-r--r--offapi/com/sun/star/i18n/XCalendar3.idl6
4 files changed, 88 insertions, 55 deletions
diff --git a/offapi/com/sun/star/i18n/Calendar2.idl b/offapi/com/sun/star/i18n/Calendar2.idl
index c06667883574..0e1d9cc6640c 100644
--- a/offapi/com/sun/star/i18n/Calendar2.idl
+++ b/offapi/com/sun/star/i18n/Calendar2.idl
@@ -42,11 +42,15 @@ module com { module sun { module star { module i18n {
<member>XLocaleData3::getAllCalendars2()</member>.
<p> Similar to
- <type scope="::com::sun::star::i18n">Calendar</type> this provides
- an additional member with a sequence of possessive (genitive case)
- month names for locales that use them, for example Slavic locales.
- If a locale does not provide the possessive form, the names are
- identical to the nouns in <member>Calendar::Months</member> </p>
+ <type scope="::com::sun::star::i18n">Calendar</type> this provides
+ additional members with a sequence of possessive (genitive case) and
+ partitive case month names for locales that use them, for example
+ Slavic locales. If a locale does not provide the possessive form in
+ <member>GenitiveMonths</member>, the names are identical to the
+ nominative case nouns in <member>Calendar::Months</member>. If a
+ locale does not provide the partitive case in
+ <member>PartitiveMonths</member>, the names are identical to
+ <member>GenititiveMonths</member>. </p>
<p> The sequences are of type
<type scope="com::sun::star::i18n">CalendarItem2</type> instead of
@@ -70,6 +74,9 @@ published struct Calendar2
/// The months of the year in possessive genitive case.
sequence< CalendarItem2 > GenitiveMonths;
+ /// The months of the year in partitive case.
+ sequence< CalendarItem2 > PartitiveMonths;
+
/// The possible eras.
sequence< CalendarItem2 > Eras;
diff --git a/offapi/com/sun/star/i18n/CalendarDisplayCode.idl b/offapi/com/sun/star/i18n/CalendarDisplayCode.idl
index e7ce30c798f1..258408096a86 100644
--- a/offapi/com/sun/star/i18n/CalendarDisplayCode.idl
+++ b/offapi/com/sun/star/i18n/CalendarDisplayCode.idl
@@ -47,66 +47,81 @@ module com { module sun { module star { module i18n {
*/
published constants CalendarDisplayCode
{
- /// Day of month, one or two digits, no leading zero.
- const long SHORT_DAY = 1;
- /// Day of month, two digits, with leading zero.
- const long LONG_DAY = 2;
- /// Day of week, abbreviated name.
- const long SHORT_DAY_NAME = 3;
- /// Day of week, full name.
- const long LONG_DAY_NAME = 4;
-
- /// Month of year, one or two digits, no leading zero.
- const long SHORT_MONTH = 5;
- /// Month of year, with leading zero.
- const long LONG_MONTH = 6;
- /// Full month name.
- const long SHORT_MONTH_NAME = 7;
- /// Abbreviated month name.
- const long LONG_MONTH_NAME = 8;
-
- /// Year, two digits.
- const long SHORT_YEAR = 9;
- /// Year, four digits.
- const long LONG_YEAR = 10;
- /// Full era name, for example, "Before Christ" or "Anno Dominus".
- const long SHORT_ERA = 11;
- /// Abbreviated era name, for example, BC or AD.
- const long LONG_ERA = 12;
- /// Combined short year and era, order depends on locale/calendar.
- const long SHORT_YEAR_AND_ERA = 13;
- /// Combined full year and era, order depends on locale/calendar.
- const long LONG_YEAR_AND_ERA = 14;
-
- /// Short quarter, for example, "Q1"
- const long SHORT_QUARTER = 15;
- /// Long quarter, for example, "1st quarter"
- const long LONG_QUARTER = 16;
+ /// Day of month, one or two digits, no leading zero.
+ const long SHORT_DAY = 1;
+ /// Day of month, two digits, with leading zero.
+ const long LONG_DAY = 2;
+ /// Day of week, abbreviated name.
+ const long SHORT_DAY_NAME = 3;
+ /// Day of week, full name.
+ const long LONG_DAY_NAME = 4;
+
+ /// Month of year, one or two digits, no leading zero.
+ const long SHORT_MONTH = 5;
+ /// Month of year, with leading zero.
+ const long LONG_MONTH = 6;
+ /// Abbreviated month name.
+ const long SHORT_MONTH_NAME = 7;
+ /// Full month name.
+ const long LONG_MONTH_NAME = 8;
+
+ /// Year, two digits.
+ const long SHORT_YEAR = 9;
+ /// Year, four digits.
+ const long LONG_YEAR = 10;
+ /// Abbreviated era name, for example, BC or AD.
+ const long SHORT_ERA = 11;
+ /// Full era name, for example, "Before Christ" or "Anno Dominus".
+ const long LONG_ERA = 12;
+ /// Combined short year and era, order depends on locale/calendar.
+ const long SHORT_YEAR_AND_ERA = 13;
+ /// Combined full year and era, order depends on locale/calendar.
+ const long LONG_YEAR_AND_ERA = 14;
+
+ /// Short quarter, for example, "Q1"
+ const long SHORT_QUARTER = 15;
+ /// Long quarter, for example, "1st quarter"
+ const long LONG_QUARTER = 16;
/** Abbreviated possessive genitive case month name.
@since LibreOffice 3.5
*/
- const long SHORT_GENITIVE_MONTH_NAME = 17;
+ const long SHORT_GENITIVE_MONTH_NAME = 17;
/** Full possessive genitive case month name.
@since LibreOffice 3.5
*/
- const long LONG_GENITIVE_MONTH_NAME = 18;
+ const long LONG_GENITIVE_MONTH_NAME = 18;
/** Narrow possessive genitive case month name.
@since LibreOffice 3.5
*/
- const long NARROW_GENITIVE_MONTH_NAME = 19;
+ const long NARROW_GENITIVE_MONTH_NAME = 19;
+
+ /** Abbreviated partitive case month name.
+ @since LibreOffice 3.5
+ */
+ const long SHORT_PARTITIVE_MONTH_NAME = 20;
+
+ /** Full partitive case month name.
+ @since LibreOffice 3.5
+ */
+ const long LONG_PARTITIVE_MONTH_NAME = 21;
+
+ /** Narrow partitive case month name.
+ @since LibreOffice 3.5
+ */
+ const long NARROW_PARTITIVE_MONTH_NAME = 22;
/** Day of week, narrow name.
@since LibreOffice 3.5
*/
- const long NARROW_DAY_NAME = 20;
+ const long NARROW_DAY_NAME = 23;
/** Narrow month name.
@since LibreOffice 3.5
*/
- const long NARROW_MONTH_NAME = 21;
+ const long NARROW_MONTH_NAME = 24;
};
diff --git a/offapi/com/sun/star/i18n/CalendarDisplayIndex.idl b/offapi/com/sun/star/i18n/CalendarDisplayIndex.idl
index 777f9fa36144..b419b12ecfec 100644
--- a/offapi/com/sun/star/i18n/CalendarDisplayIndex.idl
+++ b/offapi/com/sun/star/i18n/CalendarDisplayIndex.idl
@@ -41,20 +41,25 @@ module com { module sun { module star { module i18n {
published constants CalendarDisplayIndex
{
/// name of an AM/PM value
- const short AM_PM = 0;
- /// name of a day of week
- const short DAY = 1;
- /// name of a month
- const short MONTH = 2;
- /// name of a year (if used for a specific calendar)
- const short YEAR = 3;
- /// name of an era, like BC/AD
- const short ERA = 4;
+ const short AM_PM = 0;
+ /// name of a day of week
+ const short DAY = 1;
+ /// name of a month
+ const short MONTH = 2;
+ /// name of a year (if used for a specific calendar)
+ const short YEAR = 3;
+ /// name of an era, like BC/AD
+ const short ERA = 4;
/** name of a possessive genitive case month
@since LibreOffice 3.5
*/
- const short GENITIVE_MONTH = 5;
+ const short GENITIVE_MONTH = 5;
+
+ /** name of a partitive case month
+ @since LibreOffice 3.5
+ */
+ const short PARTITIVE_MONTH = 6;
};
//=============================================================================
diff --git a/offapi/com/sun/star/i18n/XCalendar3.idl b/offapi/com/sun/star/i18n/XCalendar3.idl
index 2ffe25b627a1..6bd7ef96992b 100644
--- a/offapi/com/sun/star/i18n/XCalendar3.idl
+++ b/offapi/com/sun/star/i18n/XCalendar3.idl
@@ -75,6 +75,12 @@ published interface XCalendar3 : com::sun::star::i18n::XExtendedCalendar
*/
sequence< CalendarItem2 > getGenitiveMonths2();
+ //------------------------------------------------------------------------
+ /** returns a sequence of <type>CalendarItem2</type> describing the
+ partitive case month names.
+ */
+ sequence< CalendarItem2 > getPartitiveMonths2();
+
};
//=============================================================================