summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star/i18n
diff options
context:
space:
mode:
authorMichael Hönnig <mi@openoffice.org>2000-11-06 12:20:09 +0000
committerMichael Hönnig <mi@openoffice.org>2000-11-06 12:20:09 +0000
commit4966d8b4b65f4c2d1340098d476a32b5174dcc7c (patch)
tree2205df299cbb733822e8cc30894ab719c7f6875c /offapi/com/sun/star/i18n
parent3a59e3f482ea506d41f730dfc24856b704afe681 (diff)
moved from api
Diffstat (limited to 'offapi/com/sun/star/i18n')
-rw-r--r--offapi/com/sun/star/i18n/XCharacterClassification.idl4
-rw-r--r--offapi/com/sun/star/i18n/XLocaleData.idl34
-rw-r--r--offapi/com/sun/star/i18n/XNumberFormatCode.idl64
-rw-r--r--offapi/com/sun/star/i18n/makefile.mk13
4 files changed, 63 insertions, 52 deletions
diff --git a/offapi/com/sun/star/i18n/XCharacterClassification.idl b/offapi/com/sun/star/i18n/XCharacterClassification.idl
index 911ce58a3..bec6a5da8 100644
--- a/offapi/com/sun/star/i18n/XCharacterClassification.idl
+++ b/offapi/com/sun/star/i18n/XCharacterClassification.idl
@@ -2,9 +2,9 @@
*
* $RCSfile: XCharacterClassification.idl,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: mi $ $Date: 2000-11-06 09:21:46 $
+ * last change: $Author: mi $ $Date: 2000-11-06 13:15:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
diff --git a/offapi/com/sun/star/i18n/XLocaleData.idl b/offapi/com/sun/star/i18n/XLocaleData.idl
index 68b2f25b5..91979c60f 100644
--- a/offapi/com/sun/star/i18n/XLocaleData.idl
+++ b/offapi/com/sun/star/i18n/XLocaleData.idl
@@ -2,9 +2,9 @@
*
* $RCSfile: XLocaleData.idl,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: mi $ $Date: 2000-11-06 09:21:46 $
+ * last change: $Author: mi $ $Date: 2000-11-06 13:15:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -63,6 +63,9 @@
#include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/lang/Locale.idl>
+#include <com/sun/star/i18n/LanguageCountryInfo.idl>
+#include <com/sun/star/i18n/Currency.idl>
+
//=============================================================================
module com { module sun { module star { module i18n {
@@ -70,24 +73,6 @@ module com { module sun { module star { module i18n {
//=============================================================================
-struct LCInfo {
- string lang;
- string langDefaultName;
- string country;
- string countryDefaultName;
- string variant;
-};
-
-
-struct Currency {
- string currencyID;
- string symbol;
- string currencyName;
- string bankSymbol;
- boolean isDefault;
-};
-
-
struct CalendarItem {
string ID;
string abbrevName;
@@ -144,12 +129,13 @@ struct ForbiddenCharacters {
};
constants reservedWords {
- const short TRUE_WORD =0;
- const short FALSE_WORD =1;
+ const short TRUE_WORD = 0;
+ const short FALSE_WORD = 1;
+ const short QUARTER_WORD = 2;
//! Yes, this must be the count of known reserved words and one more than
//! the maximum number used above!
- const short COUNT =2;
+ const short COUNT = 3;
};
@@ -158,7 +144,7 @@ constants reservedWords {
interface XLocaleData: com::sun::star::uno::XInterface
{
- LCInfo getLCInfo([in] com::sun::star::lang::Locale rLocale);
+ LanguageCountryInfo getLanguageCountryInfo([in] com::sun::star::lang::Locale rLocale);
LocaleDataItem getLocaleItem ([in] com::sun::star::lang::Locale rLocale);
sequence<Calendar> getAllCalendars ([in] com::sun::star::lang::Locale rLocale);
diff --git a/offapi/com/sun/star/i18n/XNumberFormatCode.idl b/offapi/com/sun/star/i18n/XNumberFormatCode.idl
index 42b1f9569..8e227d38e 100644
--- a/offapi/com/sun/star/i18n/XNumberFormatCode.idl
+++ b/offapi/com/sun/star/i18n/XNumberFormatCode.idl
@@ -2,9 +2,9 @@
*
* $RCSfile: XNumberFormatCode.idl,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: mi $ $Date: 2000-11-06 09:21:46 $
+ * last change: $Author: mi $ $Date: 2000-11-06 13:15:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -76,9 +76,11 @@ module com { module sun { module star { module i18n {
-/*
- Attribute of Number format. LeastSignificantBit is used to distinguish between
- positive or negagive and second LSB is used for Long or Short format.
+/**
+ Attribute of number format. LeastSignificantBit is used to distinguish between
+ positive or negative and second LSB is used for Long or Short format.
+
+ //! ER 02.11.00 ? description does not seem to match reality ?
*/
constants KNumberFormatType
{
@@ -103,9 +105,9 @@ constants KNumberFormatUsage
struct NumberFormatCode {
- /// One of KNumberFormatType values
+ /// One of <type>KNumberFormatType</type> values
short Type;
- /// One of KNumberFormatUsage values
+ /// One of <type>KNumberFormatUsage</type> values
short Usage;
/// Format code like DD/MM/YY
string Code;
@@ -113,28 +115,48 @@ struct NumberFormatCode {
string DefaultName;
/// Message identifier to be used if the name of the format is localized
string NameID;
- /// Index of the NumberformatCode as defined in enum NfIndexTableOffset in the file svtools/zforlist.hxx
+ /// Index of the code as defined in <type>NumberFormatIndex</type>
short Index;
- /// Whether this format is the default format of the Usage group
+ /// Whether this format is the default format of the usage group
boolean Default;
};
+
+/**
+ This interface provides access to specific number format codes.
+ */
[ uik(a0474bfe-5db2-4bb3-90381a9a-1e4d49a0), ident( "XNumberFormatCode", 1.0 ) ]
interface XNumberFormatCode : com::sun::star::uno::XInterface
-
{
-
-
-// Returns default formatcode for the locale. formatType can be one of the constants
-// listed in KNumberFormatType, formatUsage is one of KNumberFormatUsage values
- NumberFormatCode getDefault ([in] short formatType, [in] short formatUsage, [in] com::sun::star::lang::Locale rLocale);
-
-// Returns the numberformat pointed by formatIndex.
- NumberFormatCode getFormatCode ([in] long formatIndex , [in] com::sun::star::lang::Locale rLocale);
-
-// Returns all format codes for a given formatUsage. formatUsage is one of KNumberFormatUsage values
- sequence<NumberFormatCode> getAllFormatCode ([in] short formatUsage, [in] com::sun::star::lang::Locale rLocale);
+ /**
+ returns the default number format code of a specific category
+ (usage group) for a given locale and format length type.
+
+ @param nFormatType
+ one of the constants listed in <type>KNumberFormatType</type>
+
+ @param nFormatUsage
+ one of <type>KNumberFormatUsage</type> values
+ */
+ NumberFormatCode getDefault( [in] short nFormatType, [in] short nFormatUsage, [in] com::sun::star::lang::Locale rLocale );
+
+ /**
+ returns the number format pointed to by <code>nFormatIndex</code> for
+ a given locale.
+
+ @param nFormatIndex
+ one of <type>NumberFormatIndex</type> values
+ */
+ NumberFormatCode getFormatCode( [in] short nFormatIndex, [in] com::sun::star::lang::Locale rLocale );
+
+ /**
+ returns all format codes for a given <code>nFormatUsage</code> and locale.
+
+ @param nFormatUsage
+ one of <type>KNumberFormatUsage</type> values
+ */
+ sequence< NumberFormatCode > getAllFormatCode( [in] short nFormatUsage, [in] com::sun::star::lang::Locale rLocale );
};
diff --git a/offapi/com/sun/star/i18n/makefile.mk b/offapi/com/sun/star/i18n/makefile.mk
index 37cce5dde..a367e4918 100644
--- a/offapi/com/sun/star/i18n/makefile.mk
+++ b/offapi/com/sun/star/i18n/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.1 $
+# $Revision: 1.2 $
#
-# last change: $Author: mi $ $Date: 2000-11-06 09:21:46 $
+# last change: $Author: mi $ $Date: 2000-11-06 13:15:53 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -73,9 +73,12 @@ PACKAGE=com$/sun$/star$/i18n
# ------------------------------------------------------------------------
IDLFILES=\
- XCharacterClassification.idl\
- XLocale.idl\
- XLocaleData.idl\
+ Currency.idl \
+ LanguageCountryInfo.idl \
+ LocaleItem.idl \
+ NumberFormatIndex.idl \
+ XCharacterClassification.idl \
+ XLocaleData.idl \
XNumberFormatCode.idl
# ------------------------------------------------------------------