diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-19 18:18:55 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-19 18:19:38 +0200 |
commit | fec4c9b9e6aff625c4cccbc477d416e82fecb8c5 (patch) | |
tree | 4db1d831a3ddf5253ee12d4aa88a8f470a7526c3 /include | |
parent | da06f0fd15ae3ba2447f01b952a579c92a8a67d4 (diff) |
first wave to register tags
Change-Id: I11c6608b5c5074e9b7117449c3eb92e278713598
Diffstat (limited to 'include')
-rw-r--r-- | include/i18nlangtag/languagetag.hxx | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx index aef59d0d738c..50cfef553431 100644 --- a/include/i18nlangtag/languagetag.hxx +++ b/include/i18nlangtag/languagetag.hxx @@ -484,19 +484,22 @@ public: */ static com::sun::star::lang::Locale convertToLocaleWithFallback( const OUString& rBcp47 ); + typedef ::boost::shared_ptr< LanguageTagImpl > ImplPtr; + private: - mutable com::sun::star::lang::Locale maLocale; - mutable OUString maBcp47; - mutable LanguageType mnLangID; - mutable boost::shared_ptr< LanguageTagImpl > mpImpl; - bool mbSystemLocale : 1; - mutable bool mbInitializedBcp47 : 1; - mutable bool mbInitializedLocale : 1; - mutable bool mbInitializedLangID : 1; - bool mbIsFallback : 1; - - LanguageTagImpl* getImpl() const; + mutable com::sun::star::lang::Locale maLocale; + mutable OUString maBcp47; + mutable LanguageType mnLangID; + mutable ImplPtr mpImpl; + bool mbSystemLocale : 1; + mutable bool mbInitializedBcp47 : 1; + mutable bool mbInitializedLocale : 1; + mutable bool mbInitializedLangID : 1; + bool mbIsFallback : 1; + + ImplPtr getImpl() const; + ImplPtr registerImpl() const; void syncFromImpl(); void convertLocaleToBcp47(); |