ooodev.adapter.util.searchable_partial module

class ooodev.adapter.util.searchable_partial.SearchablePartial(component, interface=com.sun.star.util.XSearchable)[source]

Bases: object

Partial Class XSearchable.

Parameters:
  • component (XSearchable) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.util.XSearchable)[source]

Constructor

Parameters:
  • component (XSearchable) – UNO Component that implements com.sun.star.util.XSearchable interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XSearchable.

Return type:

None

create_search_descriptor()[source]

Creates a Search Descriptor which contains properties that specify a search in this container.

Returns:

The search descriptor.

Return type:

SearchDescriptorComp

find_all(desc)[source]

Searches the contained texts for all occurrences of whatever is specified.

Returns:

The found occurrences.

Return type:

IndexAccessComp | None

Parameters:

desc (XSearchDescriptor) –

find_first(desc)[source]

Searches the contained texts for the next occurrence of whatever is specified.

Return type:

XInterface | None

Parameters:

desc (XSearchDescriptor) –

find_next(start, desc)[source]

Searches the contained texts for the next occurrence of whatever is specified.

Return type:

XInterface | None

Parameters:
  • start (XInterface) –

  • desc (XSearchDescriptor) –