diff options
author | Eike Rathke <erack@redhat.com> | 2013-07-05 21:01:35 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-07-05 21:02:49 +0200 |
commit | 4467a4a6280306770107488b4a97c4d496c95a43 (patch) | |
tree | b57ee2e85843a94645c50681a4128e47d7c7ade2 /include/i18nlangtag | |
parent | log-areas: add framework (diff) | |
download | core-4467a4a6280306770107488b4a97c4d496c95a43.tar.gz core-4467a4a6280306770107488b4a97c4d496c95a43.zip |
added convenience ctor for ODF import
Change-Id: I80fc2d531b612d9e2e94fc4f5efcca594e35a561
Diffstat (limited to 'include/i18nlangtag')
-rw-r--r-- | include/i18nlangtag/languagetag.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx index 15ca4ec8bbc5..1a9f4996d532 100644 --- a/include/i18nlangtag/languagetag.hxx +++ b/include/i18nlangtag/languagetag.hxx @@ -53,6 +53,15 @@ public: /** Init LanguageTag with LanguageType MS-LangID. */ explicit LanguageTag( LanguageType nLanguage ); + /** Init LanguageTag with either BCP 47 language tag (precedence if not + empty), or a combination of language, script and country. + + This is a convenience ctor to be used in ODF import where these are + distinct attributes. + */ + explicit LanguageTag( const OUString& rBcp47, const OUString& rLanguage, + const OUString& rScript, const OUString& rCountry ); + /** Init LanguageTag with language and country strings. This is a convenience ctor for places that so far use only language and |