diff options
author | abdulmajeed ahmed <aalabdulrazzaq@kacst.edu.sa> | 2013-06-29 19:37:58 +0200 |
---|---|---|
committer | abdulmajeed ahmed <aalabdulrazzaq@kacst.edu.sa> | 2013-06-29 19:41:13 +0200 |
commit | df9e6ab514ca1c97c7eb69e169c958619c03d429 (patch) | |
tree | 9fbe40af50f300fcf8262eab78ef062dbe0e2bcb /svx | |
parent | b6d97514cdca32129142cd937ac0cbda3113f562 (diff) |
fdo#62601 Quick search affected by invisible option from the search&replace
Disable invisible options in (ctrl+h) search-and-replace dialog if quick search (ctrl+f) is used
Change-Id: I600914ce89135e93d4808bb4a072618b00eb6f08
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index a32c77be94cb..9bbd7345a4e2 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -48,6 +48,7 @@ static const char SEARCHITEM_SEARCHSTRING[] = "SearchItem.SearchString"; static const char SEARCHITEM_SEARCHBACKWARD[] = "SearchItem.Backward"; static const char SEARCHITEM_SEARCHFLAGS[] = "SearchItem.SearchFlags"; static const char SEARCHITEM_TRANSLITERATEFLAGS[] = "SearchItem.TransliterateFlags"; +static const char SEARCHITEM_ALGORITHMTYPE[] = "SearchItem.AlgorithmType"; static const char COMMAND_EXECUTESEARCH[] = ".uno:ExecuteSearch"; static const char COMMAND_FINDTEXT[] = ".uno:FindText"; @@ -92,7 +93,7 @@ void impl_executeSearch( const css::uno::Reference< css::uno::XComponentContext } } - css::uno::Sequence< css::beans::PropertyValue > lArgs(5); + css::uno::Sequence< css::beans::PropertyValue > lArgs(6); lArgs[0].Name = OUString(SEARCHITEM_SEARCHSTRING); lArgs[0].Value <<= sFindText; lArgs[1].Name = OUString(SEARCHITEM_SEARCHBACKWARD); @@ -108,6 +109,8 @@ void impl_executeSearch( const css::uno::Reference< css::uno::XComponentContext lArgs[4].Name = OUString(SEARCHITEM_COMMAND); lArgs[4].Value <<= (sal_Int16)(aFindAll ? SVX_SEARCHCMD_FIND_ALL : SVX_SEARCHCMD_FIND ); + lArgs[5].Name = OUString(SEARCHITEM_ALGORITHMTYPE); + lArgs[5].Value <<= (sal_Int16)0; // 0 == SearchAlgorithms_ABSOLUTE css::uno::Reference< css::frame::XDispatchProvider > xDispatchProvider(xFrame, css::uno::UNO_QUERY); if ( xDispatchProvider.is() ) |