summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-11-13 19:53:40 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-11-13 23:06:18 +0100
commitc60a9db1f2a8e2a088c6b89bcdff4901b28f2864 (patch)
tree5189921ddf2afd8410e336ca791bb85e6c7a3e1c /offapi
parent9520c38b0b1197a49499afb3276f999a530cf778 (diff)
tdf#158185: fix Excel's Range.Find and Range.Replace wildcard recognition
VBAToRegexp is wrong, using Basic wildcards. The functionality introduced in tdf#72196 matches the required wildcard repertoire. This introduces a new WildcardEscapeCharacter property to SearchDescriptor service. Interestingly, the default value there was backslash. TODO: also fix Range.AutoFilter, and drop VBAToRegexp. To do that, a new property is needed in service SheetFilterDescriptor, to use wildcards, in addition to "UseRegularExpressions" property. Change-Id: Idebcf00d4b7376e5d7feaf8ae800fb19d05689d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159391 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/util/SearchDescriptor.idl6
1 files changed, 6 insertions, 0 deletions
diff --git a/offapi/com/sun/star/util/SearchDescriptor.idl b/offapi/com/sun/star/util/SearchDescriptor.idl
index 7a50b3892f09..c70b81fcdcbd 100644
--- a/offapi/com/sun/star/util/SearchDescriptor.idl
+++ b/offapi/com/sun/star/util/SearchDescriptor.idl
@@ -123,6 +123,12 @@ published service SearchDescriptor
*/
[optional, property] boolean SearchWildcard;
+ /** Specifices the character used to escape special characters in wildcards.
+
+ @since LibreOffice 24.2
+ */
+ [optional, property] long WildcardEscapeCharacter;
+
};