summaryrefslogtreecommitdiff
path: root/desktop/source/app/langselect.hxx
diff options
context:
space:
mode:
authorThomas Benisch <tbe@openoffice.org>2010-09-29 17:20:24 +0200
committerThomas Benisch <tbe@openoffice.org>2010-09-29 17:20:24 +0200
commitbcb76b83b7ac714d5476e7f066f465a4bfb88b77 (patch)
tree920cdab0db87ac8d61988f37b1716f7eead07149 /desktop/source/app/langselect.hxx
parent9880b2493d6ee7057a67d011d937096b604ab5dd (diff)
parentbd1092ebc0b329883d1c079d598a73f3af4cd548 (diff)
chartextensibility: merge with DEV300_m88
Diffstat (limited to 'desktop/source/app/langselect.hxx')
-rw-r--r--desktop/source/app/langselect.hxx19
1 files changed, 14 insertions, 5 deletions
diff --git a/desktop/source/app/langselect.hxx b/desktop/source/app/langselect.hxx
index 60308164690f..bdf3cd6364de 100644
--- a/desktop/source/app/langselect.hxx
+++ b/desktop/source/app/langselect.hxx
@@ -40,10 +40,24 @@ namespace desktop
class LanguageSelection
{
+public:
+ enum LanguageSelectionStatus
+ {
+ LS_STATUS_OK,
+ LS_STATUS_CANNOT_DETERMINE_LANGUAGE,
+ LS_STATUS_CONFIGURATIONACCESS_BROKEN
+ };
+
+ static com::sun::star::lang::Locale IsoStringToLocale(const rtl::OUString& str);
+ static rtl::OUString getLanguageString();
+ static bool prepareLanguage();
+ static LanguageSelectionStatus getStatus();
+
private:
static const rtl::OUString usFallbackLanguage;
static rtl::OUString aFoundLanguage;
static sal_Bool bFoundLanguage;
+ static LanguageSelectionStatus m_eStatus;
static com::sun::star::uno::Reference< com::sun::star::container::XNameAccess >
getConfigAccess(const sal_Char* pPath, sal_Bool bUpdate=sal_False);
@@ -55,11 +69,6 @@ private:
static rtl::OUString getSystemLanguage();
static void resetUserLanguage();
static void setDefaultLanguage(const rtl::OUString&);
-
-public:
- static com::sun::star::lang::Locale IsoStringToLocale(const rtl::OUString& str);
- static rtl::OUString getLanguageString();
- static bool prepareLanguage();
};
} //namespace desktop