ooodev.adapter.document.mime_type_info_partial module

class ooodev.adapter.document.mime_type_info_partial.MimeTypeInfoPartial(component, interface=com.sun.star.document.XMimeTypeInfo)[source]

Bases: object

Partial class for XMimeTypeInfo.

Parameters:
  • component (XMimeTypeInfo) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

get_supported_mime_type_names()[source]

Gets the supported MIME type names.

Returns:

The supported MIME type names.

Return type:

tuple[str, …]

supports_mime_type(mime_type)[source]

Checks whether the specified MIME type is supported.

Parameters:

mime_type (str) – The MIME type to be checked.

Returns:

True if the specified MIME type is supported, otherwise False.

Return type:

bool