svx/source/tbxctrls/tbunosearchcontrollers.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
New commits: commit 96456205067220cc73bffae6ae860dd120641660 Author: abdulmajeed ahmed <aalabdulraz...@kacst.edu.sa> Date: Tue Jun 25 10:30:58 2013 +0200 Add Ignore-Diacritics to find toolbar for CTL fdo#52204 Change-Id: I79cb4db1ec87258c45ddc786914b32f47e96acf5 diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index dcb3206..a32c77b 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -26,11 +26,13 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/frame/XLayoutManager.hpp> #include <com/sun/star/i18n/TransliterationModules.hpp> +#include <com/sun/star/i18n/TransliterationModulesExtra.hpp> #include <com/sun/star/text/XTextRange.hpp> #include <com/sun/star/ui/XUIElement.hpp> #include <com/sun/star/util/URL.hpp> #include <com/sun/star/util/URLTransformer.hpp> +#include <svl/ctloptions.hxx> #include <svl/srchitem.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <vcl/toolbox.hxx> @@ -98,8 +100,11 @@ void impl_executeSearch( const css::uno::Reference< css::uno::XComponentContext lArgs[2].Name = OUString(SEARCHITEM_SEARCHFLAGS); lArgs[2].Value <<= (sal_Int32)0; lArgs[3].Name = OUString(SEARCHITEM_TRANSLITERATEFLAGS); - lArgs[3].Value <<= (sal_Int32)(!aMatchCase ? - com::sun::star::i18n::TransliterationModules_IGNORE_CASE : 0); + SvtCTLOptions aCTLOptions; + sal_Int32 nFlags = 0; + nFlags |= (!aMatchCase ? com::sun::star::i18n::TransliterationModules_IGNORE_CASE : 0); + nFlags |= (aCTLOptions.IsCTLFontEnabled() ? com::sun::star::i18n::TransliterationModulesExtra::ignoreDiacritics_CTL:0 ); + lArgs[3].Value <<= nFlags; lArgs[4].Name = OUString(SEARCHITEM_COMMAND); lArgs[4].Value <<= (sal_Int16)(aFindAll ? SVX_SEARCHCMD_FIND_ALL : SVX_SEARCHCMD_FIND ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits