ooodev.adapter.util.modifiable_partial module

class ooodev.adapter.util.modifiable_partial.ModifiablePartial(component, interface=com.sun.star.util.XModifiable)[source]

Bases: ModifyBroadcasterPartial

Partial Class XModifiable.

Parameters:
  • component (XModifiable) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.util.XModifiable)[source]

Constructor

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

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

Return type:

None

is_modified()[source]

The modification is always in relation to a certain state (i.e., the initial, loaded, or last stored version).

Return type:

bool

set_modified(modified)[source]

sets the status of the modified-flag from outside of the object.

Raises:

com.sun.star.beans.PropertyVetoExceptionPropertyVetoException

Return type:

None

Parameters:

modified (bool) –