diff options
author | Eike Rathke <erack@redhat.com> | 2016-02-25 16:13:39 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-02-25 17:33:36 +0100 |
commit | b3ee4ba346ca21a89158a86c7fc1fc3b25d3e371 (patch) | |
tree | d072a1f95b66ce595504aa2e3ee52dcd6f483630 /cui | |
parent | c20c697294dc0eae789cbdcca382c3f60ed3d497 (diff) |
use SearchOptions2
Change-Id: I1eaf001475bacb29d23cb7465a0a19d89afb802b
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optaboutconfig.cxx | 5 | ||||
-rw-r--r-- | cui/source/options/optaboutconfig.hxx | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx index 85dc3f82f243..4d5110d210d4 100644 --- a/cui/source/options/optaboutconfig.cxx +++ b/cui/source/options/optaboutconfig.cxx @@ -27,6 +27,7 @@ #include <com/sun/star/util/XChangesBatch.hpp> #include <com/sun/star/i18n/TransliterationModules.hpp> #include <com/sun/star/util/SearchFlags.hpp> +#include <com/sun/star/util/SearchAlgorithms2.hpp> #include <unotools/textsearch.hxx> #include <vector> @@ -172,7 +173,7 @@ CuiAboutConfigTabPage::CuiAboutConfigTabPage( vcl::Window* pParent/*, const SfxI aTabs[3] = aTabs[2] + fWidth * 20; aTabs[4] = aTabs[3] + fWidth * 8; - m_options.algorithmType = util::SearchAlgorithms_ABSOLUTE; + m_options.AlgorithmType2 = util::SearchAlgorithms2::ABSOLUTE; m_options.transliterateFlags |= i18n::TransliterationModules_IGNORE_CASE; m_options.searchFlag |= (util::SearchFlags::REG_NOT_BEGINOFLINE | util::SearchFlags::REG_NOT_ENDOFLINE); @@ -833,7 +834,7 @@ IMPL_LINK_NOARG_TYPED( CuiAboutConfigTabPage, SearchHdl_Impl, Button*, void) else { m_options.searchString = m_pSearchEdit->GetText(); - utl::TextSearch textSearch( utl::TextSearch::UpgradeToSearchOptions2( m_options) ); + utl::TextSearch textSearch( m_options ); for (auto const& it : m_prefBoxEntries) { sal_Int32 endPos, startPos = 0; diff --git a/cui/source/options/optaboutconfig.hxx b/cui/source/options/optaboutconfig.hxx index db0df56e41dc..a9ecec3f4183 100644 --- a/cui/source/options/optaboutconfig.hxx +++ b/cui/source/options/optaboutconfig.hxx @@ -12,7 +12,7 @@ #include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/beans/NamedValue.hpp> -#include <com/sun/star/util/SearchOptions.hpp> +#include <com/sun/star/util/SearchOptions2.hpp> #include <sfx2/tabdlg.hxx> #include <svtools/simptabl.hxx> @@ -52,7 +52,7 @@ private: VclPtr< SvSimpleTable > m_pPrefBox; //for search - css::util::SearchOptions m_options; + css::util::SearchOptions2 m_options; SvTreeListEntries m_prefBoxEntries; void AddToModifiedVector( const std::shared_ptr< Prop_Impl >& rProp ); |