summaryrefslogtreecommitdiff
path: root/svx/source/dialog/optgdlg.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-11-16 09:03:21 +0000
committerOliver Bolte <obo@openoffice.org>2005-11-16 09:03:21 +0000
commit0abdc620143de573de397d8e25d6b2f4783b2ef7 (patch)
treea026ba1b59a139965135b23206d95743ca51bb80 /svx/source/dialog/optgdlg.cxx
parent821ca55bd919eb29862fb4a830a6220a19585ea3 (diff)
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
Diffstat (limited to 'svx/source/dialog/optgdlg.cxx')
-rw-r--r--svx/source/dialog/optgdlg.cxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/svx/source/dialog/optgdlg.cxx b/svx/source/dialog/optgdlg.cxx
index 0b730c4f5f84..23976c0bde47 100644
--- a/svx/source/dialog/optgdlg.cxx
+++ b/svx/source/dialog/optgdlg.cxx
@@ -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