diff options
author | Eike Rathke <erack@redhat.com> | 2016-02-25 16:25:16 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-02-25 17:33:37 +0100 |
commit | 25d4142ce1fa2c1581ea03b66db6be694ac5fedb (patch) | |
tree | 65ffcae769877cb0876ef47a6b9ce3a944f2531b /svx | |
parent | c09404917318b026902c2f26bdc16d0e52eb4720 (diff) |
use SearchOptions2
Change-Id: I29ed7ced7bedc0b00e58aa6b15fbde8c9f0859f4
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/fmsrcimp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx index 2b4abd434bf5..14fcaf9b4b2f 100644 --- a/svx/source/form/fmsrcimp.cxx +++ b/svx/source/form/fmsrcimp.cxx @@ -29,8 +29,8 @@ #include <svx/dialmgr.hxx> #include <vcl/svapp.hxx> #include <unotools/textsearch.hxx> -#include <com/sun/star/util/SearchOptions.hpp> -#include <com/sun/star/util/SearchAlgorithms.hpp> +#include <com/sun/star/util/SearchOptions2.hpp> +#include <com/sun/star/util/SearchAlgorithms2.hpp> #include <com/sun/star/util/SearchResult.hpp> #include <com/sun/star/util/SearchFlags.hpp> #include <com/sun/star/lang/Locale.hpp> @@ -549,8 +549,8 @@ FmSearchEngine::SEARCH_RESULT FmSearchEngine::SearchRegularApprox(const OUString FieldCollection::iterator iterInitialField = iterFieldLoop; // Parameter sammeln - SearchOptions aParam; - aParam.algorithmType = m_bRegular ? SearchAlgorithms_REGEXP : SearchAlgorithms_APPROXIMATE; + SearchOptions2 aParam; + aParam.AlgorithmType2 = m_bRegular ? SearchAlgorithms2::REGEXP : SearchAlgorithms2::APPROXIMATE; aParam.searchFlag = 0; aParam.transliterateFlags = GetTransliterationFlags(); if ( !GetTransliteration() ) @@ -567,7 +567,7 @@ FmSearchEngine::SEARCH_RESULT FmSearchEngine::SearchRegularApprox(const OUString } aParam.searchString = strExpression; aParam.Locale = SvtSysLocale().GetLanguageTag().getLocale(); - ::utl::TextSearch aLocalEngine( utl::TextSearch::UpgradeToSearchOptions2( aParam)); + ::utl::TextSearch aLocalEngine( aParam); bool bFound = false; |