diff options
author | Sören Möller <soerenmoeller2001@gmail.com> | 2012-08-18 01:01:08 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-08-18 18:37:28 +0000 |
commit | c1b73536343ae0a7b6dd940b1c8a01784c4d7a30 (patch) | |
tree | c6b39d72359be1a568eb502d7020eb9aff2afb81 /unotools | |
parent | a20f32d8e225ac0452a56b38029890e5068fd827 (diff) |
Partial replaced String with OUString in ScInterpreter
Added wrapper using OUString instead of String to textsearch
Change-Id: I866a109d60085da67ffa2fed3131c4e60b074bbf
Reviewed-on: https://gerrit.libreoffice.org/425
Reviewed-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/textsearch.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/unotools/inc/unotools/textsearch.hxx b/unotools/inc/unotools/textsearch.hxx index b070c988b5ee..be34f6f1af53 100644 --- a/unotools/inc/unotools/textsearch.hxx +++ b/unotools/inc/unotools/textsearch.hxx @@ -21,6 +21,7 @@ #ifndef _UNOTOOLS_TEXTSEARCH_HXX #define _UNOTOOLS_TEXTSEARCH_HXX #include <i18npool/lang.h> +#include <rtl/ustring.hxx> #include <tools/string.hxx> #include <com/sun/star/uno/Reference.h> #include <com/sun/star/lang/Locale.hpp> @@ -75,6 +76,18 @@ public: sal_Bool bCaseSens = sal_True, sal_Bool bWrdOnly = sal_False, sal_Bool bSrchInSel = sal_False ); + + // Wrapper to use OUString as parameter + SearchParam( const OUString &rText, + SearchType eSrchType = SearchParam::SRCH_NORMAL, + sal_Bool bCaseSens = sal_True, + sal_Bool bWrdOnly = sal_False, + sal_Bool bSrchInSel = sal_False ) + { + String rText2(rText); + SearchParam( rText2, eSrchType, bCaseSens, bWrdOnly, bSrchInSel ); + } + SearchParam( const SearchParam& ); const String& GetSrchStr() const { return sSrchStr; } |