summaryrefslogtreecommitdiff
path: root/vcl/inc/vcl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-23 23:06:10 +0100
committerEike Rathke <erack@redhat.com>2012-11-23 23:09:16 +0100
commitaf60316514f3ae3d4c475819bf86f2af837171e3 (patch)
treeccfbd673bd4a53047a04dad6457d09c7eea1566c /vcl/inc/vcl
parent37f5b864014e9ad17a561b77ea9f6141650e92ad (diff)
some i18n wrappers with LanguageTag
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
Diffstat (limited to 'vcl/inc/vcl')
-rw-r--r--vcl/inc/vcl/field.hxx2
-rw-r--r--vcl/inc/vcl/i18nhelp.hxx6
2 files changed, 5 insertions, 3 deletions
diff --git a/vcl/inc/vcl/field.hxx b/vcl/inc/vcl/field.hxx
index f2d63b0dbdd0..741656fa7015 100644
--- a/vcl/inc/vcl/field.hxx
+++ b/vcl/inc/vcl/field.hxx
@@ -32,6 +32,7 @@ namespace com { namespace sun { namespace star { namespace lang { struct Locale;
class CalendarWrapper;
class LocaleDataWrapper;
+class LanguageTag;
// -----------------
// - FormatterBase -
@@ -78,6 +79,7 @@ public:
virtual void SetLocale( const ::com::sun::star::lang::Locale& rLocale );
const ::com::sun::star::lang::Locale& GetLocale() const;
+ const LanguageTag& GetLanguageTag() const;
const AllSettings& GetFieldSettings() const;
diff --git a/vcl/inc/vcl/i18nhelp.hxx b/vcl/inc/vcl/i18nhelp.hxx
index 54b05743cc10..98351ea630cc 100644
--- a/vcl/inc/vcl/i18nhelp.hxx
+++ b/vcl/inc/vcl/i18nhelp.hxx
@@ -21,8 +21,8 @@
#define _VCL_I18NHELP_HXX
#include <com/sun/star/uno/Reference.h>
-#include <com/sun/star/lang/Locale.hpp>
#include <osl/mutex.hxx>
+#include <i18npool/languagetag.hxx>
#include <tools/string.hxx>
#include <vcl/dllapi.h>
@@ -49,7 +49,7 @@ class VCL_DLLPUBLIC I18nHelper
{
private:
::osl::Mutex maMutex;
- ::com::sun::star::lang::Locale maLocale;
+ LanguageTag maLanguageTag;
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
LocaleDataWrapper* mpLocaleDataWrapper;
@@ -67,7 +67,7 @@ protected:
public:
- I18nHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, const ::com::sun::star::lang::Locale& rLocale );
+ I18nHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, const LanguageTag& rLanguageTag );
~I18nHelper();
sal_Int32 CompareString( const rtl::OUString& rStr1, const rtl::OUString& rStr2 ) const;