ooodev.adapter.struct_base module

class ooodev.adapter.struct_base.StructBase(component, prop_name, event_provider=None)[source]

Bases: ComponentBase, Generic[_T]

Struct Base Class

This class raises an event before and after a property is changed if it has been passed an event provider.

The event args for before the property is changed is of type KeyValCancelArgs. The event args for after the property is changed is of type KeyValArgs.

__init__(component, prop_name, event_provider=None)[source]

Constructor

Parameters:
  • component (Any) – UNO Struct object.

  • prop_name (str) – Property Name. This value is assigned to the prop_name of event_data.

  • event_provider (EventsT, optional) – Event Provider.

Return type:

None

copy()[source]

Makes a copy of the Struct.

Returns:

Copied Struct.

Return type:

BorderLine

property component: _T

Struct Component

Return type:

TypeVar(_T)