summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorDennis Francis <dennisfrancis.in@gmail.com>2015-10-17 23:14:35 +0530
committerEike Rathke <erack@redhat.com>2015-10-23 00:24:18 +0000
commit9a85743766e8a063d20d5f93ee88758e243397f4 (patch)
tree5cfcdbf0072a5ba099ee22d06af618717bffa22b /unotools
parentb5a1a23ed05d5b72d50bf08b8f6fd550eea17b64 (diff)
tdf#48456 : when searching for a number, consider formatting
Change-Id: I4a1e3e269a269bb37e88aa8810a46d0f4ecfc518 Reviewed-on: https://gerrit.libreoffice.org/19420 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/searchopt.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/unotools/source/config/searchopt.cxx b/unotools/source/config/searchopt.cxx
index c98eb3e43301..b1bec8b9a846 100644
--- a/unotools/source/config/searchopt.cxx
+++ b/unotools/source/config/searchopt.cxx
@@ -33,7 +33,7 @@ using namespace utl;
using namespace com::sun::star::uno;
using namespace com::sun::star::i18n;
-#define MAX_FLAGS_OFFSET 27
+#define MAX_FLAGS_OFFSET 28
class SvtSearchOptions_Impl : public ConfigItem
{
@@ -148,7 +148,8 @@ Sequence< OUString > SvtSearchOptions_Impl::GetPropertyNames()
"Japanese/IsIgnoreMiddleDot", // 24
"IsNotes", // 25
"IsIgnoreDiacritics_CTL", // 26
- "IsIgnoreKashida_CTL" // 27
+ "IsIgnoreKashida_CTL", // 27
+ "IsSearchFormatted" // 28
};
const int nCount = SAL_N_ELEMENTS( aPropNames );
@@ -577,4 +578,14 @@ void SvtSearchOptions::SetIgnoreKashida_CTL( bool bVal )
pImpl->SetFlag( 27, bVal );
}
+bool SvtSearchOptions::IsSearchFormatted() const
+{
+ return pImpl->GetFlag( 28 );
+}
+
+void SvtSearchOptions::SetSearchFormatted( bool bVal )
+{
+ pImpl->SetFlag( 28, bVal );
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */