ooodev.adapter.document.filter_partial module

class ooodev.adapter.document.filter_partial.FilterPartial(component, interface=com.sun.star.document.XFilter)[source]

Bases: object

Partial class for XFilter.

Parameters:
  • component (XFilter) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.document.XFilter)[source]

Constructor

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

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

Return type:

None

cancel()[source]

Cancels the export process.

Return type:

None

filter(*args)[source]

Filter the document.

Parameters:
  • url (str) – The URL of the graphic file to be exported.

  • args (Tuple[PropertyValue, ...]) – The arguments to be used for the export filter.

Return type:

None