diff options
author | David Tardon <dtardon@redhat.com> | 2014-07-17 17:27:05 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-07-20 10:15:25 +0200 |
commit | 7515b1a90fac9e31733c0fdcc1156adadf0e6f99 (patch) | |
tree | 442bc11d06390d5ba90c773def726164b31eaa0d /sc/source/core/tool/cellkeytranslator.cxx | |
parent | cbc50c90ad63f0e59b8cf3bbfb6b5b1f61db09b9 (diff) |
fdo#63756 build libxml2 with ICU support
Change-Id: I0523e49e640812be435ba4c97b1881ca253eb2ab
Diffstat (limited to 'sc/source/core/tool/cellkeytranslator.cxx')
-rw-r--r-- | sc/source/core/tool/cellkeytranslator.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sc/source/core/tool/cellkeytranslator.cxx b/sc/source/core/tool/cellkeytranslator.cxx index 2c7bb57f54df..ea57d06feb8c 100644 --- a/sc/source/core/tool/cellkeytranslator.cxx +++ b/sc/source/core/tool/cellkeytranslator.cxx @@ -25,7 +25,6 @@ #include <com/sun/star/i18n/TransliterationModules.hpp> -using ::com::sun::star::lang::Locale; using ::com::sun::star::uno::Sequence; using ::std::list; using ::boost::unordered_map; @@ -41,7 +40,7 @@ enum LocaleMatch LOCALE_MATCH_ALL }; -static LocaleMatch lclLocaleCompare(const Locale& rLocale1, const LanguageTag& rLanguageTag2) +static LocaleMatch lclLocaleCompare(const lang::Locale& rLocale1, const LanguageTag& rLanguageTag2) { LocaleMatch eMatchLevel = LOCALE_MATCH_NONE; LanguageTag aLanguageTag1( rLocale1); @@ -67,7 +66,7 @@ static LocaleMatch lclLocaleCompare(const Locale& rLocale1, const LanguageTag& r return eMatchLevel; } -ScCellKeyword::ScCellKeyword(const sal_Char* pName, OpCode eOpCode, const Locale& rLocale) : +ScCellKeyword::ScCellKeyword(const sal_Char* pName, OpCode eOpCode, const lang::Locale& rLocale) : mpName(pName), meOpCode(eOpCode), mrLocale(rLocale) @@ -77,7 +76,7 @@ ScCellKeyword::ScCellKeyword(const sal_Char* pName, OpCode eOpCode, const Locale ::std::auto_ptr<ScCellKeywordTranslator> ScCellKeywordTranslator::spInstance(NULL); static void lclMatchKeyword(OUString& rName, const ScCellKeywordHashMap& aMap, - OpCode eOpCode = ocNone, const Locale* pLocale = NULL) + OpCode eOpCode = ocNone, const lang::Locale* pLocale = NULL) { ScCellKeywordHashMap::const_iterator itrEnd = aMap.end(); ScCellKeywordHashMap::const_iterator itr = aMap.find(rName); @@ -94,7 +93,7 @@ static void lclMatchKeyword(OUString& rName, const ScCellKeywordHashMap& aMap, return; } - LanguageTag aLanguageTag( pLocale ? *pLocale : Locale("","","")); + LanguageTag aLanguageTag( pLocale ? *pLocale : lang::Locale("","","")); const sal_Char* aBestMatchName = itr->second.front().mpName; LocaleMatch eLocaleMatchLevel = LOCALE_MATCH_NONE; bool bOpCodeMatched = false; @@ -158,7 +157,7 @@ static void lclMatchKeyword(OUString& rName, const ScCellKeywordHashMap& aMap, rName = OUString::createFromAscii(aBestMatchName); } -void ScCellKeywordTranslator::transKeyword(OUString& rName, const Locale* pLocale, OpCode eOpCode) +void ScCellKeywordTranslator::transKeyword(OUString& rName, const lang::Locale* pLocale, OpCode eOpCode) { if ( !spInstance.get() ) spInstance.reset( new ScCellKeywordTranslator ); @@ -204,7 +203,7 @@ void ScCellKeywordTranslator::init() #include "cellkeywords.inl" } -void ScCellKeywordTranslator::addToMap(const OUString& rKey, const sal_Char* pName, const Locale& rLocale, OpCode eOpCode) +void ScCellKeywordTranslator::addToMap(const OUString& rKey, const sal_Char* pName, const lang::Locale& rLocale, OpCode eOpCode) { ScCellKeyword aKeyItem( pName, eOpCode, rLocale ); @@ -222,7 +221,7 @@ void ScCellKeywordTranslator::addToMap(const OUString& rKey, const sal_Char* pNa itr->second.push_back(aKeyItem); } -void ScCellKeywordTranslator::addToMap(const TransItem* pItems, const Locale& rLocale) +void ScCellKeywordTranslator::addToMap(const TransItem* pItems, const lang::Locale& rLocale) { for (sal_uInt16 i = 0; pItems[i].from != NULL; ++i) addToMap(OUString(pItems[i].from), pItems[i].to, rLocale, pItems[i].func); |