summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/svl/languageoptions.hxx8
-rw-r--r--svl/source/config/languageoptions.cxx10
2 files changed, 8 insertions, 10 deletions
diff --git a/include/svl/languageoptions.hxx b/include/svl/languageoptions.hxx
index c9700e64799d..08a28e504f17 100644
--- a/include/svl/languageoptions.hxx
+++ b/include/svl/languageoptions.hxx
@@ -98,7 +98,7 @@ class SVL_DLLPUBLIC SvtSystemLanguageOptions : public utl::ConfigItem
private:
OUString m_sWin16SystemLocale;
- bool isKeyboardLayoutTypeInstalled(sal_Int16 scriptType);
+ bool isKeyboardLayoutTypeInstalled(sal_Int16 scriptType) const;
public:
SvtSystemLanguageOptions();
@@ -107,10 +107,10 @@ public:
virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence< OUString >& rPropertyNames );
- LanguageType GetWin16SystemLanguage();
+ LanguageType GetWin16SystemLanguage() const;
- bool isCTLKeyboardLayoutInstalled();
- bool isCJKKeyboardLayoutInstalled();
+ bool isCTLKeyboardLayoutInstalled() const;
+ bool isCJKKeyboardLayoutInstalled() const;
};
#endif // _SVTOOLS_LANGUAGEOPTIONS_HXX
diff --git a/svl/source/config/languageoptions.cxx b/svl/source/config/languageoptions.cxx
index 2124b8fba921..a095ac5b731e 100644
--- a/svl/source/config/languageoptions.cxx
+++ b/svl/source/config/languageoptions.cxx
@@ -200,16 +200,14 @@ void SvtSystemLanguageOptions::Notify( const com::sun::star::uno::Sequence< O
// no listeners supported yet
}
-
-LanguageType SvtSystemLanguageOptions::GetWin16SystemLanguage()
+LanguageType SvtSystemLanguageOptions::GetWin16SystemLanguage() const
{
if( m_sWin16SystemLocale.isEmpty() )
return LANGUAGE_NONE;
return LanguageTag( m_sWin16SystemLocale ).getLanguageType();
}
-
-bool SvtSystemLanguageOptions::isKeyboardLayoutTypeInstalled(sal_Int16 scriptType)
+bool SvtSystemLanguageOptions::isKeyboardLayoutTypeInstalled(sal_Int16 scriptType) const
{
bool isInstalled = false;
#ifdef WNT
@@ -241,13 +239,13 @@ bool SvtSystemLanguageOptions::isKeyboardLayoutTypeInstalled(sal_Int16 scriptTyp
}
-bool SvtSystemLanguageOptions::isCTLKeyboardLayoutInstalled()
+bool SvtSystemLanguageOptions::isCTLKeyboardLayoutInstalled() const
{
return isKeyboardLayoutTypeInstalled(::com::sun::star::i18n::ScriptType::COMPLEX);
}
-bool SvtSystemLanguageOptions::isCJKKeyboardLayoutInstalled()
+bool SvtSystemLanguageOptions::isCJKKeyboardLayoutInstalled() const
{
return isKeyboardLayoutTypeInstalled(::com::sun::star::i18n::ScriptType::ASIAN);
}