summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-07-04 19:12:49 +0200
committerEike Rathke <erack@redhat.com>2013-07-04 19:16:53 +0200
commit29a9160de3acc496cf71dc3eb0d7a54df614a501 (patch)
tree6dd1cd092994b9a9dd15d3e5314e501af9c2bf99
parent9e5b9e36db4c835b3039c02f89db1845cb8cfb07 (diff)
don't use Locale.Language
Change-Id: Ief663d886b08fc141dfb7563674504fe70f444b3
-rw-r--r--oox/source/core/xmlfilterbase.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx
index 8a59187f4928..c9c7892dbf9a 100644
--- a/oox/source/core/xmlfilterbase.cxx
+++ b/oox/source/core/xmlfilterbase.cxx
@@ -31,6 +31,7 @@
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/instance.hxx>
+#include <i18nlangtag/languagetag.hxx>
#include "oox/core/fastparser.hxx"
#include "oox/core/filterdetect.hxx"
#include "oox/core/fragmenthandler.hxx"
@@ -503,10 +504,10 @@ writeElement( FSHelperPtr pDoc, sal_Int32 nXmlElement, Sequence< OUString > aIte
}
static void
-writeElement( FSHelperPtr pDoc, sal_Int32 nXmlElement, const Locale& rLocale )
+writeElement( FSHelperPtr pDoc, sal_Int32 nXmlElement, const LanguageTag& rLanguageTag )
{
// TODO: what to do with .Country and .Variant
- writeElement( pDoc, nXmlElement, rLocale.Language );
+ writeElement( pDoc, nXmlElement, rLanguageTag.getLanguage() );
}
static void
@@ -542,7 +543,7 @@ writeCoreProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xPro
writeElement( pCoreProps, FSNS( XML_dc, XML_identifier ), "ident" );
#endif /* def OOXTODO */
writeElement( pCoreProps, FSNS( XML_cp, XML_keywords ), xProperties->getKeywords() );
- writeElement( pCoreProps, FSNS( XML_dc, XML_language ), xProperties->getLanguage() );
+ writeElement( pCoreProps, FSNS( XML_dc, XML_language ), LanguageTag( xProperties->getLanguage()) );
writeElement( pCoreProps, FSNS( XML_cp, XML_lastModifiedBy ), xProperties->getModifiedBy() );
writeElement( pCoreProps, FSNS( XML_cp, XML_lastPrinted ), xProperties->getPrintDate() );
writeElement( pCoreProps, FSNS( XML_dcterms, XML_modified ), xProperties->getModificationDate() );