Kaydet (Commit) fc0a23e5 authored tarafından Caolán McNamara's avatar Caolán McNamara

constify these methods

Change-Id: I72173ef6cbea28afe9f349aa57a94cbfd537a851
üst d75dd80a
...@@ -98,7 +98,7 @@ class SVL_DLLPUBLIC SvtSystemLanguageOptions : public utl::ConfigItem ...@@ -98,7 +98,7 @@ class SVL_DLLPUBLIC SvtSystemLanguageOptions : public utl::ConfigItem
private: private:
OUString m_sWin16SystemLocale; OUString m_sWin16SystemLocale;
bool isKeyboardLayoutTypeInstalled(sal_Int16 scriptType); bool isKeyboardLayoutTypeInstalled(sal_Int16 scriptType) const;
public: public:
SvtSystemLanguageOptions(); SvtSystemLanguageOptions();
...@@ -107,10 +107,10 @@ public: ...@@ -107,10 +107,10 @@ public:
virtual void Commit(); virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence< OUString >& rPropertyNames ); virtual void Notify( const com::sun::star::uno::Sequence< OUString >& rPropertyNames );
LanguageType GetWin16SystemLanguage(); LanguageType GetWin16SystemLanguage() const;
bool isCTLKeyboardLayoutInstalled(); bool isCTLKeyboardLayoutInstalled() const;
bool isCJKKeyboardLayoutInstalled(); bool isCJKKeyboardLayoutInstalled() const;
}; };
#endif // _SVTOOLS_LANGUAGEOPTIONS_HXX #endif // _SVTOOLS_LANGUAGEOPTIONS_HXX
......
...@@ -200,16 +200,14 @@ void SvtSystemLanguageOptions::Notify( const com::sun::star::uno::Sequence< O ...@@ -200,16 +200,14 @@ void SvtSystemLanguageOptions::Notify( const com::sun::star::uno::Sequence< O
// no listeners supported yet // no listeners supported yet
} }
LanguageType SvtSystemLanguageOptions::GetWin16SystemLanguage() const
LanguageType SvtSystemLanguageOptions::GetWin16SystemLanguage()
{ {
if( m_sWin16SystemLocale.isEmpty() ) if( m_sWin16SystemLocale.isEmpty() )
return LANGUAGE_NONE; return LANGUAGE_NONE;
return LanguageTag( m_sWin16SystemLocale ).getLanguageType(); return LanguageTag( m_sWin16SystemLocale ).getLanguageType();
} }
bool SvtSystemLanguageOptions::isKeyboardLayoutTypeInstalled(sal_Int16 scriptType) const
bool SvtSystemLanguageOptions::isKeyboardLayoutTypeInstalled(sal_Int16 scriptType)
{ {
bool isInstalled = false; bool isInstalled = false;
#ifdef WNT #ifdef WNT
...@@ -241,13 +239,13 @@ bool SvtSystemLanguageOptions::isKeyboardLayoutTypeInstalled(sal_Int16 scriptTyp ...@@ -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); return isKeyboardLayoutTypeInstalled(::com::sun::star::i18n::ScriptType::COMPLEX);
} }
bool SvtSystemLanguageOptions::isCJKKeyboardLayoutInstalled() bool SvtSystemLanguageOptions::isCJKKeyboardLayoutInstalled() const
{ {
return isKeyboardLayoutTypeInstalled(::com::sun::star::i18n::ScriptType::ASIAN); return isKeyboardLayoutTypeInstalled(::com::sun::star::i18n::ScriptType::ASIAN);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment