diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-10-19 01:52:58 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-10-19 02:10:36 +0200 |
commit | 9706288e95cfdbecdfc2cab3a66a2cce07ac23b4 (patch) | |
tree | c17d9affd8df7315c38514919546d2af62f288f4 /sc | |
parent | 9796ac726e4c194e3cfa35e201815f9f1bb03e6a (diff) |
add output for language settings to log file
some windows builds crash in this test, maybe they get a false language
setting from somewhere
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/document.hxx | 2 | ||||
-rw-r--r-- | sc/qa/unit/filters-test.cxx | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 5648a54a4786..a7ae1c3bb576 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -447,7 +447,7 @@ public: ScExtDocOptions* GetExtDocOptions() { return pExtDocOptions; } SC_DLLPUBLIC void SetExtDocOptions( ScExtDocOptions* pNewOptions ); - void GetLanguage( LanguageType& rLatin, LanguageType& rCjk, LanguageType& rCtl ) const; + SC_DLLPUBLIC void GetLanguage( LanguageType& rLatin, LanguageType& rCjk, LanguageType& rCtl ) const; void SetLanguage( LanguageType eLatin, LanguageType eCjk, LanguageType eCtl ); void SetDrawDefaults(); diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx index 68885a5c9068..939109ee46fc 100644 --- a/sc/qa/unit/filters-test.cxx +++ b/sc/qa/unit/filters-test.cxx @@ -475,6 +475,13 @@ void ScFiltersTest::testFormats() CPPUNIT_ASSERT_MESSAGE("Failed to load formats.*", xDocSh.Is()); ScDocument* pDoc = xDocSh->GetDocument(); + //output this just for debugging, should make it easier to see which local the numberformatter really used + //it helps to understand why some windows build fails in this test + LanguageType aLang, aCjkLang, aCtlLang; + pDoc->GetLanguage(aLang, aCjkLang, aCtlLang); + std::cout << "Language Settings in ScDocument: normal: " << aLang << " Cjk: " << aCjkLang << " Ctl: " << aCtlLang << std::endl; + std::cout << "Language for NumberFormatter: " << pDoc->GetFormatTable()->GetLanguage() << std::endl; + //test Sheet1 with csv file rtl::OUString aCSVFileName; createCSVPath(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("numberFormat.")), aCSVFileName); |