summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorDennis Francis <dennisfrancis.in@gmail.com>2015-10-24 19:11:52 +0530
committerNoel Grandin <noelgrandin@gmail.com>2015-10-25 05:45:05 +0000
commit1a4fc613e13d2ac3cf9cf96f29aa3f367a8fb25a (patch)
treec45d115b74bca139ee0e5891190ad575af05c284 /svx
parent1848581f4f3a3f22e2d104a2890699c26d35e1e8 (diff)
Remember the state of "Search formatted display string" checkbox
This checkbox was introduced in the commit 9a85743766e8a063d20d5f93ee88758e243397f4 This patch makes Calc persistently remember the option's setting between invocations of the Find & Replace dialog. Change-Id: I82c1355e85cd16ce13229d495a6d243e185318ad Reviewed-on: https://gerrit.libreoffice.org/19574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/srchdlg.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index c3e58152a1bd..c1ef963cd915 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -567,6 +567,7 @@ bool SvxSearchDialog::Close()
aOpt.SetNotes ( m_pNotesBtn->IsChecked() );
aOpt.SetIgnoreDiacritics_CTL ( m_pIgnoreDiacritics->IsChecked() );
aOpt.SetIgnoreKashida_CTL ( m_pIgnoreKashida->IsChecked() );
+ aOpt.SetSearchFormatted ( m_pSearchFormattedCB->IsChecked() );
aOpt.Commit();
const SfxPoolItem* ppArgs[] = { pSearchItem, 0 };
@@ -811,6 +812,7 @@ void SvxSearchDialog::Init_Impl( bool bSearchPattern )
if ( pSearchItem->GetAppFlag() == SvxSearchApp::CALC )
{
m_pCalcGrid->Show();
+ m_pSearchFormattedCB->Check( aOpt.IsSearchFormatted() );
Link<Button*,void> aLink = LINK( this, SvxSearchDialog, FlagHdl_Impl );
m_pCalcSearchInLB->SetSelectHdl( LINK( this, SvxSearchDialog, LBSelectHdl_Impl ) );
m_pRowsBtn->SetClickHdl( aLink );