summaryrefslogtreecommitdiff
path: root/unotools/source/i18n/textsearch.cxx
diff options
context:
space:
mode:
authorEike Rathke <er@openoffice.org>2001-07-17 13:25:12 +0000
committerEike Rathke <er@openoffice.org>2001-07-17 13:25:12 +0000
commit19e13a99370a47cabc01881ab52d9f3672e2162f (patch)
treeb565a94803baaa80e22e6ed887c230f50864e32a /unotools/source/i18n/textsearch.cxx
parentf7d2f627a233650e42ff96fc95e61b902ffdd656 (diff)
#88089# Init: add IGNORE_CASE to transliterateFlags if not case sensitive
Diffstat (limited to 'unotools/source/i18n/textsearch.cxx')
-rw-r--r--unotools/source/i18n/textsearch.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx
index fa5c11c410f4..1462abc68d09 100644
--- a/unotools/source/i18n/textsearch.cxx
+++ b/unotools/source/i18n/textsearch.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: textsearch.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: jp $ $Date: 2001-02-01 20:29:19 $
+ * last change: $Author: er $ $Date: 2001-07-17 14:25:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,6 +74,9 @@
#ifndef _COM_SUN_STAR_UTIL_SEARCHFLAGS_HDL_
#include <com/sun/star/util/SearchFlags.hdl>
#endif
+#ifndef _COM_SUN_STAR_I18N_TRANSLITERATIONMODULES_HPP_
+#include <com/sun/star/i18n/TransliterationModules.hpp>
+#endif
#ifndef _UNOTOOLS_CHARCLASS_HXX
#include <unotools/charclass.hxx>
#endif
@@ -207,9 +210,12 @@ void TextSearch::Init( const SearchParam & rParam,
aSOpt.searchString = rParam.GetSrchStr();
aSOpt.replaceString = rParam.GetReplaceStr();
aSOpt.Locale = rLocale;
+ aSOpt.transliterateFlags = rParam.GetTransliterationFlags();
if( !rParam.IsCaseSensitive() )
+ {
aSOpt.searchFlag |= SearchFlags::ALL_IGNORE_CASE;
- aSOpt.transliterateFlags = rParam.GetTransliterationFlags();
+ aSOpt.transliterateFlags |= ::com::sun::star::i18n::TransliterationModules_IGNORE_CASE;
+ }
try
{