ooodev.adapter.io.persist_object_partial module

class ooodev.adapter.io.persist_object_partial.PersistObjectPartial(component, interface=com.sun.star.io.XPersistObject)[source]

Bases: object

Partial Class XPersistObject.

Parameters:
  • component (XPersistObject) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.io.XPersistObject)[source]

Constructor

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

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

Return type:

None

get_service_name()[source]

Returns the service name of the object.

Returns:

The service name.

Return type:

str

read(stream)[source]

Reads the object from the given stream.

Parameters:

stream (XObjectInputStream) – The stream to read from.

Return type:

None

write(stream)[source]

Writes the object to the given stream.

Parameters:

stream (XObjectOutputStream) – The stream to write to.

Return type:

None