From e9b06dd9458074af36b0fc97ff41ed4c79e5de32 Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Wed, 31 Oct 2018 15:48:38 +0300 Subject: tdf#112614: Include all labels in the search in Customize dialog For uno commands Change-Id: Ide7a30387b0ec354cd0d42ba11c78e115ec94989 Reviewed-on: https://gerrit.libreoffice.org/62693 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unotools/source/i18n/textsearch.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'unotools/source') diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx index 12504ccf0882..81768e9d021e 100644 --- a/unotools/source/i18n/textsearch.cxx +++ b/unotools/source/i18n/textsearch.cxx @@ -263,6 +263,16 @@ bool TextSearch::SearchForward( const OUString &rStr, return bRet; } +bool TextSearch::searchForward( const OUString &rStr ) +{ + sal_Int32 pStart = 0; + sal_Int32 pEnd = rStr.getLength(); + + bool bResult = SearchForward(rStr, &pStart, &pEnd); + + return bResult; +} + bool TextSearch::SearchBackward( const OUString & rStr, sal_Int32* pStart, sal_Int32* pEnde, SearchResult* pRes ) { -- cgit