ooodev.adapter.embed.encryption_protected_source_partial module

class ooodev.adapter.embed.encryption_protected_source_partial.EncryptionProtectedSourcePartial(component, interface=com.sun.star.embed.XEncryptionProtectedSource)[source]

Bases: object

Partial class for XEncryptionProtectedSource.

Parameters:
  • component (XEncryptionProtectedSource) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.embed.XEncryptionProtectedSource)[source]

Constructor

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

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

Return type:

None

remove_encryption()[source]

removes encryption from the object.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

set_encryption_password(password)[source]

sets a password for the object.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

Parameters:

password (str) –