[Libreoffice-commits] core.git: svx/source

abdulmajeed ahmed aalabdulrazzaq at kacst.edu.sa
Sat Jun 29 10:41:57 PDT 2013


 svx/source/tbxctrls/tbunosearchcontrollers.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit df9e6ab514ca1c97c7eb69e169c958619c03d429
Author: abdulmajeed ahmed <aalabdulrazzaq at kacst.edu.sa>
Date:   Sat Jun 29 19:37:58 2013 +0200

    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

diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
index a32c77b..9bbd734 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() )


More information about the Libreoffice-commits mailing list