ooodev.adapter.ucb.content_partial module

class ooodev.adapter.ucb.content_partial.ContentPartial(component, interface=com.sun.star.ucb.XContent)[source]

Bases: object

Partial Class XContent.

Parameters:
  • component (XContent) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.ucb.XContent)[source]

Constructor

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

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

Return type:

None

add_content_event_listener(listener)[source]

Adds a listener for content events.

Return type:

None

Parameters:

listener (com.sun.star.ucb.XContentEventListener) –

get_content_type()[source]

Returns a type string, which is unique for that type of content (e.g. application/vnd.sun.star.hierarchy-folder).

Return type:

str

get_identifier()[source]

Returns the identifier of the content.

Return type:

XContentIdentifier

remove_content_event_listener(listener)[source]

Removes a listener for content events.

Return type:

None

Parameters:

listener (com.sun.star.ucb.XContentEventListener) –