diff options
author | abdulmajeed ahmed <aalabdulrazzaq@kacst.edu.sa> | 2013-06-21 11:07:34 +0200 |
---|---|---|
committer | abdulmajeed ahmed <aalabdulrazzaq@kacst.edu.sa> | 2013-06-21 11:14:17 +0200 |
commit | 448fa131b2dafac305d88480e469cc4bc0515d68 (patch) | |
tree | 4f8f94215ce38a9c7ccb0d3edb4af3bb62aa5b38 /unotools | |
parent | 832612bb6bd013cf68a64e33827158f96e6d03d3 (diff) |
Fix fdo#52204 add new feature ignore diacritics in search for CTL
Change-Id: Ie9044a35003217545bacea214ef59047bff3b8b1
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/searchopt.cxx | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/unotools/source/config/searchopt.cxx b/unotools/source/config/searchopt.cxx index fa44fbfdcdfa..228a7b9bcff6 100644 --- a/unotools/source/config/searchopt.cxx +++ b/unotools/source/config/searchopt.cxx @@ -23,6 +23,7 @@ #include <tools/debug.hxx> #include <unotools/configitem.hxx> #include <com/sun/star/i18n/TransliterationModules.hpp> +#include <com/sun/star/i18n/TransliterationModulesExtra.hpp> #include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/Any.h> #include <rtl/logfile.hxx> @@ -34,7 +35,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::i18n; -#define MAX_FLAGS_OFFSET 25 +#define MAX_FLAGS_OFFSET 26 ////////////////////////////////////////////////////////////////////// @@ -159,7 +160,8 @@ Sequence< OUString > SvtSearchOptions_Impl::GetPropertyNames() const "Japanese/IsIgnoreWhitespace", // 22 "Japanese/IsIgnoreProlongedSoundMark", // 23 "Japanese/IsIgnoreMiddleDot", // 24 - "IsNotes" // 25 + "IsNotes", // 25 + "IsIgnoreDiacritics_CTL" // 26 }; const int nCount = SAL_N_ELEMENTS( aPropNames ); @@ -308,7 +310,8 @@ sal_Int32 SvtSearchOptions::GetTransliterationFlags() const nRes |= TransliterationModules_ignoreProlongedSoundMark_ja_JP; if ( IsIgnoreMiddleDot()) nRes |= TransliterationModules_ignoreMiddleDot_ja_JP; - + if ( IsIgnoreDiacritics_CTL()) + nRes |= TransliterationModulesExtra::ignoreDiacritics_CTL; return nRes; } @@ -616,6 +619,16 @@ void SvtSearchOptions::SetNotes( sal_Bool bVal ) pImpl->SetFlag( 25, bVal ); } +sal_Bool SvtSearchOptions::IsIgnoreDiacritics_CTL() const +{ + return pImpl->GetFlag( 26 ); +} + +void SvtSearchOptions::SetIgnoreDiacritics_CTL( sal_Bool bVal ) +{ + pImpl->SetFlag( 26, bVal ); +} + ////////////////////////////////////////////////////////////////////// /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |