diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-21 15:55:50 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-23 07:08:34 +0000 |
commit | fa22a60e71da5c43b53c5c94f65903ce05d8c9e8 (patch) | |
tree | 3f7251cac7bce53e3f34a91b03003c44a4277d3e /include/i18nlangtag | |
parent | c1d0074df9e96f7ac6d755f177974645513c6b16 (diff) |
com::sun::star->css in include/i18nlangtag,i18nutil
Change-Id: I847a5729911474e8dd72e28aea53969f7037ce9b
Reviewed-on: https://gerrit.libreoffice.org/19526
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/i18nlangtag')
-rw-r--r-- | include/i18nlangtag/languagetag.hxx | 28 | ||||
-rw-r--r-- | include/i18nlangtag/mslangid.hxx | 33 |
2 files changed, 30 insertions, 31 deletions
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx index 18ec22e78517..03531d8c374c 100644 --- a/include/i18nlangtag/languagetag.hxx +++ b/include/i18nlangtag/languagetag.hxx @@ -23,7 +23,7 @@ typedef struct _rtl_Locale rtl_Locale; // as in rtl/locale.h /** The ISO 639-2 code reserved for local use used to indicate that a - com::sun::star::Locale contains a BCP 47 string in its Variant field. The + css::Locale contains a BCP 47 string in its Variant field. The Locale's Language field then will contain this language code. @see LanguageTag::getLocale() @@ -71,7 +71,7 @@ public: explicit LanguageTag( const OUString & rBcp47LanguageTag, bool bCanonicalize = false ); /** Init LanguageTag with Locale. */ - explicit LanguageTag( const com::sun::star::lang::Locale & rLocale ); + explicit LanguageTag( const css::lang::Locale & rLocale ); /** Init LanguageTag with LanguageType MS-LangID. */ explicit LanguageTag( LanguageType nLanguage ); @@ -107,7 +107,7 @@ public: /** Obtain language tag as Locale. As a convention, language tags that can not be expressed as "pure" - com::sun::star::lang::Locale content using Language and Country fields + css::lang::Locale content using Language and Country fields store "qlt" (ISO 639 reserved for local use) in the Language field and the entire BCP 47 language tag in the Variant field. The Country field contains the corresponding ISO 3166 country code _if_ there is one, or @@ -118,7 +118,7 @@ public: locale to the real locale used. If FALSE, return an empty Locale for such a tag. */ - const com::sun::star::lang::Locale & getLocale( bool bResolveSystem = true ) const; + const css::lang::Locale & getLocale( bool bResolveSystem = true ) const; /** Obtain mapping to MS-LangID. @@ -242,7 +242,7 @@ public: LanguageTag & reset( const OUString & rBcp47LanguageTag, bool bCanonicalize = false ); /** Reset with Locale. */ - LanguageTag & reset( const com::sun::star::lang::Locale & rLocale ); + LanguageTag & reset( const css::lang::Locale & rLocale ); /** Reset with LanguageType MS-LangID. */ LanguageTag & reset( LanguageType nLanguage ); @@ -354,9 +354,9 @@ public: locale list. If no matching locale could be found it points to the end of the list. */ - static ::std::vector< com::sun::star::lang::Locale >::const_iterator getMatchingFallback( - const ::std::vector< com::sun::star::lang::Locale > & rList, - const com::sun::star::lang::Locale & rReference ); + static ::std::vector< css::lang::Locale >::const_iterator getMatchingFallback( + const ::std::vector< css::lang::Locale > & rList, + const css::lang::Locale & rReference ); /** Test equality of two LanguageTag, possibly resolving system locale. @@ -398,7 +398,7 @@ public: locale to the real locale used. If FALSE, return an empty Locale for such a tag. */ - static com::sun::star::lang::Locale convertToLocale( LanguageType nLangID, bool bResolveSystem = true ); + static css::lang::Locale convertToLocale( LanguageType nLangID, bool bResolveSystem = true ); /** Convert Locale to MS-LangID. @@ -407,7 +407,7 @@ public: locale to the real locale used. If FALSE, return LANGUAGE_SYSTEM for such a tag. */ - static LanguageType convertToLanguageType( const com::sun::star::lang::Locale& rLocale, bool bResolveSystem = true ); + static LanguageType convertToLanguageType( const css::lang::Locale& rLocale, bool bResolveSystem = true ); /** Convert MS-LangID to BCP 47 string. @@ -425,7 +425,7 @@ public: locale to the real locale used. If FALSE, return an empty OUString for such a tag. */ - static OUString convertToBcp47( const com::sun::star::lang::Locale& rLocale, bool bResolveSystem = true ); + static OUString convertToBcp47( const css::lang::Locale& rLocale, bool bResolveSystem = true ); /** Convert BCP 47 string to Locale, convenience method. @@ -439,7 +439,7 @@ public: locale to the real locale used. If FALSE, return an empty Locale for such a tag. */ - static com::sun::star::lang::Locale convertToLocale( const OUString& rBcp47, bool bResolveSystem = true ); + static css::lang::Locale convertToLocale( const OUString& rBcp47, bool bResolveSystem = true ); /** Convert BCP 47 string to MS-LangID, convenience method. @@ -479,7 +479,7 @@ public: Always resolves an empty tag to the system locale. */ - static com::sun::star::lang::Locale convertToLocaleWithFallback( const OUString& rBcp47 ); + static css::lang::Locale convertToLocaleWithFallback( const OUString& rBcp47 ); /** If rString represents a valid BCP 47 language tag. @@ -511,7 +511,7 @@ public: private: - mutable com::sun::star::lang::Locale maLocale; + mutable css::lang::Locale maLocale; mutable OUString maBcp47; mutable LanguageType mnLangID; mutable ImplPtr mpImpl; diff --git a/include/i18nlangtag/mslangid.hxx b/include/i18nlangtag/mslangid.hxx index c629b775f695..26675c3e0082 100644 --- a/include/i18nlangtag/mslangid.hxx +++ b/include/i18nlangtag/mslangid.hxx @@ -94,8 +94,7 @@ public: designating the SYSTEM language. Returns the same Locale if an exact match was found. */ - static ::com::sun::star::lang::Locale getFallbackLocale( - const ::com::sun::star::lang::Locale & rLocale ); + static css::lang::Locale getFallbackLocale( const css::lang::Locale & rLocale ); // TODO: refactor to LanguageTag, used only in @@ -129,10 +128,10 @@ public: static bool isKorean( LanguageType nLang ); /** Whether locale is a simplified chinese locale */ - static bool isSimplifiedChinese( const ::com::sun::star::lang::Locale & rLocale ); + static bool isSimplifiedChinese( const css::lang::Locale & rLocale ); /** Whether locale is a traditional chinese locale */ - static bool isTraditionalChinese( const ::com::sun::star::lang::Locale & rLocale ); + static bool isTraditionalChinese( const css::lang::Locale & rLocale ); /** Whether locale is one where family name comes first, e.g. Japan, Hungary, Samoa */ static bool isFamilyNameFirst( LanguageType nLang ); @@ -149,7 +148,7 @@ public: static bool needsSequenceChecking( LanguageType nLang ); - /** Get ::com::sun::star::i18n::ScriptType of locale. */ + /** Get css::i18n::ScriptType of locale. */ static sal_Int16 getScriptType( LanguageType nLang ); /** Whether locale is "Western" but not Latin script, e.g. Cyrillic or Greek. */ @@ -228,8 +227,8 @@ public: friend class LanguageTag; friend class LanguageTagImpl; - friend ::com::sun::star::lang::Locale MsLangId::getFallbackLocale( - const ::com::sun::star::lang::Locale & rLocale ); + friend css::lang::Locale MsLangId::getFallbackLocale( + const css::lang::Locale & rLocale ); friend LanguageType MsLangId::convertUnxByteStringToLanguage( const OString& rString ); @@ -239,19 +238,19 @@ public: language name designating LANGUAGE_SYSTEM. */ I18NLANGTAG_DLLPRIVATE static LanguageType convertLocaleToLanguage( - const ::com::sun::star::lang::Locale & rLocale ); + const css::lang::Locale & rLocale ); /** Used by convertLocaleToLanguage(Locale) */ I18NLANGTAG_DLLPRIVATE static LanguageType convertLocaleToLanguageImpl( - const ::com::sun::star::lang::Locale & rLocale ); + const css::lang::Locale & rLocale ); /** Convert x-... privateuse, used by convertLocaleToLanguageImpl(Locale) */ I18NLANGTAG_DLLPRIVATE static LanguageType convertPrivateUseToLanguage( const OUString& rPriv ); /** Used by LanguageTag::canonicalize() */ - I18NLANGTAG_DLLPRIVATE static ::com::sun::star::lang::Locale getOverride( - const ::com::sun::star::lang::Locale & rLocale ); + I18NLANGTAG_DLLPRIVATE static css::lang::Locale getOverride( + const css::lang::Locale & rLocale ); /** Used by convertLocaleToLanguage(Locale) */ I18NLANGTAG_DLLPRIVATE static LanguageType convertIsoNamesToLanguage( @@ -264,11 +263,11 @@ public: /** Used by lookupFallbackLocale(Locale) */ - I18NLANGTAG_DLLPRIVATE static com::sun::star::lang::Locale getLocale( + I18NLANGTAG_DLLPRIVATE static css::lang::Locale getLocale( const IsoLanguageCountryEntry * pEntry ); /** Used by lookupFallbackLocale(Locale) */ - I18NLANGTAG_DLLPRIVATE static com::sun::star::lang::Locale getLocale( + I18NLANGTAG_DLLPRIVATE static css::lang::Locale getLocale( const IsoLanguageScriptCountryEntry * pEntry ); @@ -279,7 +278,7 @@ public: If bResolveSystem==false, a LANGUAGE_SYSTEM results in an empty Locale. */ - I18NLANGTAG_DLLPRIVATE static ::com::sun::star::lang::Locale convertLanguageToLocale( + I18NLANGTAG_DLLPRIVATE static css::lang::Locale convertLanguageToLocale( LanguageType nLang, bool bResolveSystem ); /** Used by convertLanguageToLocale(LanguageType,bool) and @@ -297,11 +296,11 @@ public: for that case. */ I18NLANGTAG_DLLPRIVATE static void convertLanguageToLocaleImpl( - LanguageType nLang, ::com::sun::star::lang::Locale & rLocale, bool bIgnoreOverride ); + LanguageType nLang, css::lang::Locale & rLocale, bool bIgnoreOverride ); - I18NLANGTAG_DLLPRIVATE static ::com::sun::star::lang::Locale lookupFallbackLocale( - const ::com::sun::star::lang::Locale & rLocale ); + I18NLANGTAG_DLLPRIVATE static css::lang::Locale lookupFallbackLocale( + const css::lang::Locale & rLocale ); }; private: |