Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
fc0a23e5
Kaydet (Commit)
fc0a23e5
authored
Tem 12, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
constify these methods
Change-Id: I72173ef6cbea28afe9f349aa57a94cbfd537a851
üst
d75dd80a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
languageoptions.hxx
include/svl/languageoptions.hxx
+4
-4
languageoptions.cxx
svl/source/config/languageoptions.cxx
+4
-6
No files found.
include/svl/languageoptions.hxx
Dosyayı görüntüle @
fc0a23e5
...
@@ -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
...
...
svl/source/config/languageoptions.cxx
Dosyayı görüntüle @
fc0a23e5
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment