summaryrefslogtreecommitdiff
path: root/svl/inc/svl
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-02-24 15:44:30 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-02-24 15:46:03 -0500
commit44b463c0e1b6d21e8707636387d88470ffce438a (patch)
tree0f8504805479809339e87ac6a1b7ed1d1dc0b3f9 /svl/inc/svl
parent39d15024ebf47104bae179c3351c6af842edd0bd (diff)
Pick up numeral shape and calendar type as well as the language.
So far this change doesn't affect the behavior of the number formatter but only to pick up extra data that Excel provides (that we need to map to our own later on).
Diffstat (limited to 'svl/inc/svl')
-rw-r--r--svl/inc/svl/zformat.hxx21
1 files changed, 17 insertions, 4 deletions
diff --git a/svl/inc/svl/zformat.hxx b/svl/inc/svl/zformat.hxx
index a551fe27cdf1..298c1e4208e2 100644
--- a/svl/inc/svl/zformat.hxx
+++ b/svl/inc/svl/zformat.hxx
@@ -489,6 +489,18 @@ 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
* language type from it. Given the string, start parsing at position
@@ -502,11 +514,12 @@ private:
* @param rString input string
* @param nPos position (see above).
*
- * @return LCID that specifies language type. See i18npool/lang.h for a
- * complete list of language types. These numbers also correspond
- * with the numbers used by Microsoft Office.
+ * @return struct containing numeral shape, calendar type, and LCID that
+ * specifies language type. See i18npool/lang.h for a complete
+ * list of language types. These numbers also correspond with the
+ * numbers used by Microsoft Office.
*/
- SVL_DLLPRIVATE static LanguageType ImpGetLanguageType( const String& rString, xub_StrLen& nPos );
+ SVL_DLLPRIVATE static LocaleType ImpGetLocaleType( const String& rString, xub_StrLen& nPos );
// standard number output
SVL_DLLPRIVATE void ImpGetOutputStandard( double& fNumber, String& OutString );