summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorJörg Barfurth <jb@openoffice.org>2001-04-10 13:04:38 +0000
committerJörg Barfurth <jb@openoffice.org>2001-04-10 13:04:38 +0000
commitc908043b567122a704ea32fc54183ce156894e6e (patch)
treeea558fb843e68703d16e857a46b4a4f470524a36 /configmgr
parentc0b053b12d5b51978118cef5c38ce06b81e955de (diff)
Added helper to retrieve 'all-locales' string as OUString
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/inc/matchlocale.hxx6
-rw-r--r--configmgr/source/xml/matchlocale.cxx11
2 files changed, 13 insertions, 4 deletions
diff --git a/configmgr/source/inc/matchlocale.hxx b/configmgr/source/inc/matchlocale.hxx
index 291e91ee40af..226a89108991 100644
--- a/configmgr/source/inc/matchlocale.hxx
+++ b/configmgr/source/inc/matchlocale.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: matchlocale.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jb $ $Date: 2001-03-20 16:37:25 $
+ * last change: $Author: jb $ $Date: 2001-04-10 14:04:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -88,6 +88,8 @@ namespace configmgr
extern char const * c_sDefaultLanguage;
extern char const * c_sAnyLanguage;
+ extern void getAnyLocale(OUString& _rsString); // also declared in options.hxx
+
// -------------------------------------------------------------------------
/// Type for storing a Locale. May in future be upgraded to a struct
struct Locale { OUString aLanguage, aCountry; };
diff --git a/configmgr/source/xml/matchlocale.cxx b/configmgr/source/xml/matchlocale.cxx
index 46f6f894b9f9..d6e8957e6002 100644
--- a/configmgr/source/xml/matchlocale.cxx
+++ b/configmgr/source/xml/matchlocale.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: matchlocale.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: lla $ $Date: 2001-03-23 09:37:50 $
+ * last change: $Author: jb $ $Date: 2001-04-10 14:04:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -99,6 +99,13 @@ namespace configmgr
const SequencePos c_nFallbackLocales = ARRAYSIZE(c_aFallbackLocales);
// -----------------------------------------------------------------------------
+ void getAnyLocale(OUString& _rsString)
+ {
+ static OUString const sAnyLocale = OUString::createFromAscii( c_sAnyLanguage );
+ _rsString = sAnyLocale;
+ }
+
+// -----------------------------------------------------------------------------
static inline sal_Int32 countrySeparatorPos(OUString const& aLocaleName_)
{
sal_Int32 pos = aLocaleName_.indexOf('-');