constify these methods
Change-Id: I72173ef6cbea28afe9f349aa57a94cbfd537a851
This commit is contained in:
@@ -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
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user