Bug 100817 - SearchRegularExpression not working in API (Java) XSearchDescriptor for Impress document (XPage)
Summary: SearchRegularExpression not working in API (Java) XSearchDescriptor for Impre...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
5.1.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks:
 
Reported: 2016-07-08 20:35 UTC by Christopher
Modified: 2025-01-08 02:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher 2016-07-08 20:35:54 UTC
When attempting to set the search option 'SearchRegularExpression' on an XPage (Impress) SearchDescriptor an exception is thrown (see Exception). It is possible to set the 'Regular Expression' flag in the LibreOffice Impress Advanced Search field so the feature is available in the runtime. When I get the XPropertySet for the XSearchDescriptor it is missing the 'SearchRegularExpression' property.  


Exception: 
com.sun.star.beans.UnknownPropertyException: 


Sample Code: 
... 
            XDrawPagesSupplier pageSupplier = UnoRuntime.queryInterface(XDrawPagesSupplier.class,
                    xComp);

            XDrawPages pages = pageSupplier.getDrawPages();
            XDrawPage page = UnoRuntime.queryInterface(XDrawPage.class, pages.getByIndex(0));

            XSearchable xSearchable = UnoRuntime.queryInterface(XSearchable.class, page);

            // You need a descriptor to set properies for Replace
            XSearchDescriptor startTagSearch = xSearchable.createSearchDescriptor();
            XPropertySet propertySet = UnoRuntime.queryInterface(XPropertySet.class, startTagSearch);
            propertySet.setPropertyValue("SearchRegularExpression",Boolean.TRUE);
// Exception thrown here !!
Comment 1 Xisco Faulí 2017-04-13 09:48:57 UTC Comment hidden (obsolete)
Comment 2 QA Administrators 2017-10-30 10:54:09 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2017-12-04 12:39:24 UTC Comment hidden (obsolete)
Comment 4 Brenna Hane 2025-01-08 02:12:22 UTC
In https://geometrydash-lite.io, each level opens up different challenges. Maintaining the speed and mastering the steps will help you go deeper into the game.