diff options
Diffstat (limited to 'xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx b/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx index 28acc591322d..b6d71d28fc37 100644 --- a/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx +++ b/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx @@ -172,11 +172,17 @@ void XMLIndexAlphabeticalSourceContext::ProcessAttribute( case XML_TOK_INDEXSOURCE_SORT_ALGORITHM: sAlgorithm = rValue; break; + case XML_TOK_INDEXSOURCE_RFC_LANGUAGE_TAG: + maLanguageTagODF.maRfcLanguageTag = rValue; + break; case XML_TOK_INDEXSOURCE_LANGUAGE: - aLocale.Language = rValue; + maLanguageTagODF.maLanguage = rValue; + break; + case XML_TOK_INDEXSOURCE_SCRIPT: + maLanguageTagODF.maScript = rValue; break; case XML_TOK_INDEXSOURCE_COUNTRY: - aLocale.Country = rValue; + maLanguageTagODF.maCountry = rValue; break; default: @@ -228,9 +234,9 @@ void XMLIndexAlphabeticalSourceContext::EndElement() rIndexPropertySet->setPropertyValue(sSortAlgorithm, aAny); } - if ( !aLocale.Language.isEmpty() && !aLocale.Country.isEmpty() ) + if ( !maLanguageTagODF.isEmpty() ) { - aAny <<= aLocale; + aAny <<= maLanguageTagODF.getLanguageTag().getLocale( false); rIndexPropertySet->setPropertyValue(sLocale, aAny); } |