summaryrefslogtreecommitdiff
path: root/svl/inc/svl
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-02-25 13:07:15 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-02-28 10:39:31 -0500
commitc03562112ffb0978cd6658ead1058616eac12b65 (patch)
tree38b9e1430ef319edad71de7d4aaa1d6703a73f78 /svl/inc/svl
parent6aad3e48b43a637efc372b448298102866e6dc8b (diff)
Store locale type instead of language type.
Diffstat (limited to 'svl/inc/svl')
-rw-r--r--svl/inc/svl/zformat.hxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/svl/inc/svl/zformat.hxx b/svl/inc/svl/zformat.hxx
index fe59468ad67d..b04768e64783 100644
--- a/svl/inc/svl/zformat.hxx
+++ b/svl/inc/svl/zformat.hxx
@@ -175,6 +175,18 @@ private:
class SVL_DLLPUBLIC SvNumberformat
{
+ struct LocaleType
+ {
+ sal_uInt8 mnNumeralShape;
+ sal_uInt8 mnCalendarType;
+ LanguageType meLanguage;
+
+ ::rtl::OUString generateCode() const;
+
+ LocaleType();
+ LocaleType(sal_uInt32 nRawCode);
+ };
+
public:
// Ctor for Load
SvNumberformat( ImpSvNumberformatScan& rSc, LanguageType eLge );
@@ -215,7 +227,7 @@ public:
BOOL IsAdditionalStandardDefined() const
{ return nNewStandardDefined == SV_NUMBERFORMATTER_VERSION_ADDITIONAL_I18N_FORMATS; }
- LanguageType GetLanguage() const { return eLnge;}
+ LanguageType GetLanguage() const { return maLocale.meLanguage;}
const String& GetFormatstring() const { return sFormatstring; }
@@ -456,7 +468,7 @@ private:
double fLimit1; // Value for first condition
double fLimit2; // Value for second condition
ImpSvNumberformatScan& rScan; // Format code scanner
- LanguageType eLnge; // Language/country of the format
+ LocaleType maLocale; // Language/country of the format, numeral shape and calendar type from Excel.
SvNumberformatLimitOps eOp1; // Operator for first condition
SvNumberformatLimitOps eOp2; // Operator for second condition
USHORT nNewStandardDefined; // new builtin formats as of version 6
@@ -489,18 +501,6 @@ private:
xub_StrLen& nPos,
String& sSymbol );
- struct LocaleType
- {
- sal_uInt8 mnNumeralShape;
- sal_uInt8 mnCalendarType;
- LanguageType meLanguage;
-
- ::rtl::OUString generateCode() const;
-
- LocaleType();
- LocaleType(sal_uInt32 nRawCode);
- };
-
/**
* Parse the content of '[$-xxx] or '[$-xxxxxxxx]' and extract the locale
* type from it. Given the string, start parsing at position specified by