INTEGRATION: CWS thaiissues (1.24.38); FILE MERGED

2005/10/25 11:57:46 fme 1.24.38.2: RESYNC: (1.24-1.25); FILE MERGED
2005/10/14 06:52:40 os 1.24.38.1: #i48117# 'type and replace' added - default sequence checking for some CTL languages
This commit is contained in:
Oliver Bolte 2005-11-16 09:03:21 +00:00
parent 821ca55bd9
commit 0abdc62014

View file

@ -4,9 +4,9 @@
*
* $RCSfile: optgdlg.cxx,v $
*
* $Revision: 1.26 $
* $Revision: 1.27 $
*
* last change: $Author: rt $ $Date: 2005-11-11 11:50:11 $
* last change: $Author: obo $ $Date: 2005-11-16 10:03:21 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -1391,6 +1391,20 @@ void lcl_UpdateAndDelete(SfxVoidItem* pInvalidItems[], SfxBoolItem* pBoolItems[]
BOOL OfaLanguagesTabPage::FillItemSet( SfxItemSet& rSet )
{
if(aCTLSupportCB.IsChecked() &&
(aCTLSupportCB.GetSavedValue() != aCTLSupportCB.IsChecked()) ||
(aComplexLanguageLB.GetSavedValue() != aComplexLanguageLB.GetSelectEntryPos()))
{
//sequence checking has to be switched on depending on the selected CTL language
LanguageType eCTLLang = aComplexLanguageLB.GetSelectLanguage();
sal_Bool bOn = eCTLLang == LANGUAGE_THAI ||
eCTLLang == LANGUAGE_LAO ||
eCTLLang == LANGUAGE_VIETNAMESE ||
eCTLLang == LANGUAGE_KHMER;
pLangConfig->aLanguageOptions.SetCTLSequenceCheckingRestricted(bOn);
pLangConfig->aLanguageOptions.SetCTLSequenceChecking(bOn);
pLangConfig->aLanguageOptions.SetCTLSequenceCheckingTypeAndReplace(bOn);
}
try
{
// handle settings for UI Language