ooodev.adapter.util.replace_descriptor_partial module

class ooodev.adapter.util.replace_descriptor_partial.ReplaceDescriptorPartial(component, interface=com.sun.star.util.XReplaceDescriptor)[source]

Bases: SearchDescriptorPartial

Partial class for XReplaceDescriptor.

Parameters:
  • component (XReplaceDescriptor) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

get_replace_string()[source]

Gets the string which replaces the found occurrences.

Return type:

str

set_replace_string(replacement)[source]

Sets the string which replaces the found occurrences.

Return type:

None

Parameters:

replacement (str) –