summaryrefslogtreecommitdiff
path: root/svtools/source/config/useroptions.cxx
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2000-11-06 11:58:00 +0000
committerPeter Burow <pb@openoffice.org>2000-11-06 11:58:00 +0000
commitd837790ce3ae8a58591ba62c161f5ef1c50a7bd1 (patch)
treede698612ba35cde7372d0b60b85da22170f211c3 /svtools/source/config/useroptions.cxx
parent78e362ba883cf23b98d0522504b02162ed698943 (diff)
chg: GetLocale() added
Diffstat (limited to 'svtools/source/config/useroptions.cxx')
-rw-r--r--svtools/source/config/useroptions.cxx22
1 files changed, 20 insertions, 2 deletions
diff --git a/svtools/source/config/useroptions.cxx b/svtools/source/config/useroptions.cxx
index 6390630a5c32..71111aac15b6 100644
--- a/svtools/source/config/useroptions.cxx
+++ b/svtools/source/config/useroptions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: useroptions.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: pb $ $Date: 2000-10-26 12:56:39 $
+ * last change: $Author: pb $ $Date: 2000-11-06 12:58:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -123,6 +123,7 @@ private:
String m_aEmptyString;
String m_aFullName;
+ String m_aLocale;
::osl::Mutex m_aMutex;
@@ -158,6 +159,7 @@ public:
const String& GetCustomerNumber() { return GetToken( &SvtUserOptions_Impl::m_aCustomerNumber ); }
const String& GetFullName();
+ const String& GetLocale() const { return m_aLocale; }
// set the address token
void SetCompany( const String& rNewToken )
@@ -315,6 +317,15 @@ SvtUserOptions_Impl::SvtUserOptions_Impl() :
}
}
InitFullName();
+
+ Any aAny = ConfigManager::GetConfigManager()->GetDirectConfigProperty( ConfigManager::LOCALE );
+ OUString aLocale;
+ if ( aAny >>= aLocale )
+ m_aLocale = String( aLocale );
+ else
+ {
+ DBG_ERRORFILE( "no locale found" );
+ }
}
// -----------------------------------------------------------------------
@@ -521,6 +532,13 @@ const String& SvtUserOptions::GetFullName() const
// -----------------------------------------------------------------------
+const String& SvtUserOptions::GetLocale() const
+{
+ return pImp->GetLocale();
+}
+
+// -----------------------------------------------------------------------
+
void SvtUserOptions::SetCompany( const String& rNewToken )
{
pImp->SetCompany( rNewToken );