diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-27 10:08:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-02 08:59:18 +0200 |
commit | 3c866bb8e42554ac96d3588208e167e7786e2d00 (patch) | |
tree | 9214124ed0b7d8274c5609725ed72a97466bbfce /svx | |
parent | f9ba16e44b2813dd1fc9b0e06994f67c6350f050 (diff) |
replace SVX_SEARCHCMD_ constants with enum class
Change-Id: I675c488742219cc19624a21d1fc8e5033e7cbefa
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/srchdlg.cxx | 10 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx index d4368985e5b9..943ac9b66c86 100644 --- a/svx/source/dialog/srchdlg.cxx +++ b/svx/source/dialog/srchdlg.cxx @@ -1241,13 +1241,13 @@ IMPL_LINK( SvxSearchDialog, CommandHdl_Impl, Button *, pBtn ) } if (pBtn == m_pSearchBtn) - pSearchItem->SetCommand( SVX_SEARCHCMD_FIND ); + pSearchItem->SetCommand( SvxSearchCmd::FIND ); else if ( pBtn == m_pSearchAllBtn ) - pSearchItem->SetCommand( SVX_SEARCHCMD_FIND_ALL ); + pSearchItem->SetCommand( SvxSearchCmd::FIND_ALL ); else if ( pBtn == m_pReplaceBtn ) - pSearchItem->SetCommand( SVX_SEARCHCMD_REPLACE ); + pSearchItem->SetCommand( SvxSearchCmd::REPLACE ); else if ( pBtn == m_pReplaceAllBtn ) - pSearchItem->SetCommand( SVX_SEARCHCMD_REPLACE_ALL ); + pSearchItem->SetCommand( SvxSearchCmd::REPLACE_ALL ); // when looking for templates, delete format lists if ( !bFormat && pSearchItem->GetPattern() ) @@ -2189,7 +2189,7 @@ void SvxSearchDialog::SaveToModule_Impl() pSearchItem->SetAllTables( m_pAllSheetsCB->IsChecked() ); } - pSearchItem->SetCommand( SVX_SEARCHCMD_FIND ); + pSearchItem->SetCommand( SvxSearchCmd::FIND ); nModifyFlag = 0; const SfxPoolItem* ppArgs[] = { pSearchItem, 0 }; rBindings.GetDispatcher()->Execute( SID_SEARCH_ITEM, SfxCallMode::SLOT, ppArgs ); diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index a60f9ccafb19..618469133efc 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -115,7 +115,7 @@ void impl_executeSearch( const css::uno::Reference< css::uno::XComponentContext lArgs[3].Value <<= nFlags; lArgs[4].Name = SEARCHITEM_COMMAND; lArgs[4].Value <<= (sal_Int16)(aFindAll ? - SVX_SEARCHCMD_FIND_ALL : SVX_SEARCHCMD_FIND ); + SvxSearchCmd::FIND_ALL : SvxSearchCmd::FIND ); lArgs[5].Name = SEARCHITEM_ALGORITHMTYPE; lArgs[5].Value <<= (sal_Int16)0; // 0 == SearchAlgorithms_ABSOLUTE |