diff options
author | Wang Lei <leiw@apache.org> | 2012-09-27 05:56:02 +0000 |
---|---|---|
committer | Wang Lei <leiw@apache.org> | 2012-09-27 05:56:02 +0000 |
commit | 51bac3e464cdd4fb0afb9b7d1c2a2d7f85ec92ed (patch) | |
tree | 7bf43b5f9a7c1406d3e4188bc0341306ef910415 /svl | |
parent | ad1186563ea12ce63dfdf738c332bf712084f633 (diff) |
#i121126 User-definded format code is lost with a cell which value is TRUE or FALSE when importing xls file
Patch by: Zhang Lu
Review by: Wang Lei
Notes
reject: wrong solution ignoring locale from number format
Diffstat (limited to 'svl')
-rw-r--r-- | svl/inc/svl/zforlist.hxx | 3 | ||||
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/svl/inc/svl/zforlist.hxx b/svl/inc/svl/zforlist.hxx index 2264665a7292..273ff62c649e 100644 --- a/svl/inc/svl/zforlist.hxx +++ b/svl/inc/svl/zforlist.hxx @@ -796,6 +796,9 @@ public: /// Skip a NumberFormatter in stream, Chart needs this static void SkipNumberFormatterInStream( SvStream& ); + const String& GetTrueString(); + const String& GetFalseString(); + private: ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceManager; diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 2e4e9e7ef9d9..683add241749 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -3043,6 +3043,8 @@ sal_uInt16 SvNumberFormatter::GetYear2000Default() return (sal_uInt16) ::utl::MiscCfg().GetYear2000(); } +const String& SvNumberFormatter::GetTrueString(){return pFormatScanner->GetTrueString();} +const String& SvNumberFormatter::GetFalseString(){return pFormatScanner->GetFalseString();} // static const NfCurrencyTable& SvNumberFormatter::GetTheCurrencyTable() |