diff options
Diffstat (limited to 'xmloff/source/text/XMLSectionExport.cxx')
-rw-r--r-- | xmloff/source/text/XMLSectionExport.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/xmloff/source/text/XMLSectionExport.cxx b/xmloff/source/text/XMLSectionExport.cxx index 38330c77d5a2..f5f763dfe752 100644 --- a/xmloff/source/text/XMLSectionExport.cxx +++ b/xmloff/source/text/XMLSectionExport.cxx @@ -710,10 +710,7 @@ void XMLSectionExport::ExportAlphabeticalIndexStart( aAny = rPropertySet->getPropertyValue(sLocale); Locale aLocale; aAny >>= aLocale; - GetExport().AddAttribute(XML_NAMESPACE_FO, XML_LANGUAGE, - aLocale.Language); - GetExport().AddAttribute(XML_NAMESPACE_FO, XML_COUNTRY, - aLocale.Country); + GetExport().AddLanguageTagAttributes( XML_NAMESPACE_FO, XML_NAMESPACE_STYLE, aLocale, true); ExportBaseIndexSource(TEXT_SECTION_TYPE_ALPHABETICAL, rPropertySet); } @@ -1696,10 +1693,7 @@ void XMLSectionExport::ExportBibliographyConfiguration(SvXMLExport& rExport) aAny = xPropSet->getPropertyValue(sLocale); Locale aLocale; aAny >>= aLocale; - rExport.AddAttribute(XML_NAMESPACE_FO, XML_LANGUAGE, - aLocale.Language); - rExport.AddAttribute(XML_NAMESPACE_FO, XML_COUNTRY, - aLocale.Country); + rExport.AddLanguageTagAttributes( XML_NAMESPACE_FO, XML_NAMESPACE_STYLE, aLocale, true); // configuration element SvXMLElementExport aElement(rExport, XML_NAMESPACE_TEXT, |