summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/source/options/optgdlg.cxx5
-rw-r--r--cui/source/options/optjsearch.cxx6
-rw-r--r--include/unotools/searchopt.hxx2
-rw-r--r--svx/source/dialog/srchdlg.cxx2
-rw-r--r--unotools/source/config/searchopt.cxx5
5 files changed, 15 insertions, 5 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 4b3f97008c06..c57641a51609 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -1511,8 +1511,9 @@ bool OfaLanguagesTabPage::FillItemSet( SfxItemSet* rSet )
if ( m_pCTLSupportCB->IsValueChangedFromSaved() )
{
SvtSearchOptions aOpt;
- aOpt.SetIgnoreDiacritics_CTL (true);
- aOpt.SetIgnoreKashida_CTL (true);
+ aOpt.SetIgnoreDiacritics_CTL(true);
+ aOpt.SetIgnoreKashida_CTL(true);
+ aOpt.Commit();
pLangConfig->aLanguageOptions.SetCTLFontEnabled( m_pCTLSupportCB->IsChecked() );
const sal_uInt16 STATE_COUNT = 1;
diff --git a/cui/source/options/optjsearch.cxx b/cui/source/options/optjsearch.cxx
index 2bd5401acac5..9ef64992a245 100644
--- a/cui/source/options/optjsearch.cxx
+++ b/cui/source/options/optjsearch.cxx
@@ -380,10 +380,10 @@ bool SvxJSearchOptionsPage::FillItemSet( SfxItemSet* )
bModified = true;
}
+ if (bModified)
+ aOpt.Commit();
+
return bModified;
}
-
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/unotools/searchopt.hxx b/include/unotools/searchopt.hxx
index 83bbed45b5cb..a34e4490b56f 100644
--- a/include/unotools/searchopt.hxx
+++ b/include/unotools/searchopt.hxx
@@ -35,6 +35,8 @@ public:
SvtSearchOptions();
~SvtSearchOptions();
+ void Commit();
+
sal_Int32 GetTransliterationFlags() const;
// General Options
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index fc5d15c51a50..02db7eabc03e 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -564,6 +564,7 @@ bool SvxSearchDialog::Close()
aOpt.SetNotes ( m_pNotesBtn->IsChecked() );
aOpt.SetIgnoreDiacritics_CTL ( m_pIgnoreDiacritics->IsChecked() );
aOpt.SetIgnoreKashida_CTL ( m_pIgnoreKashida->IsChecked() );
+ aOpt.Commit();
const SfxPoolItem* ppArgs[] = { pSearchItem, 0 };
rBindings.GetDispatcher()->Execute( FID_SEARCH_OFF, SfxCallMode::SLOT, ppArgs );
@@ -2218,6 +2219,7 @@ void SvxSearchDialog::SaveToModule_Impl()
SvtSearchOptions aOpt;
aOpt.SetIgnoreDiacritics_CTL(GetCheckBoxValue(m_pIgnoreDiacritics));
aOpt.SetIgnoreKashida_CTL(GetCheckBoxValue(m_pIgnoreKashida));
+ aOpt.Commit();
sal_Int32 nFlags = GetTransliterationFlags();
if( !pSearchItem->IsUseAsianOptions())
diff --git a/unotools/source/config/searchopt.cxx b/unotools/source/config/searchopt.cxx
index 87dc3e0ab9b4..ed3b6e956ed5 100644
--- a/unotools/source/config/searchopt.cxx
+++ b/unotools/source/config/searchopt.cxx
@@ -248,6 +248,11 @@ SvtSearchOptions::~SvtSearchOptions()
delete pImpl;
}
+void SvtSearchOptions::Commit()
+{
+ pImpl->Commit();
+}
+
sal_Int32 SvtSearchOptions::GetTransliterationFlags() const
{
sal_Int32 nRes = 0;