ooodev.adapter.text.graphic_crop_struct_comp module

class ooodev.adapter.text.graphic_crop_struct_comp.GraphicCropStructComp(component, unit, prop_name, event_provider=None)[source]

Bases: StructBase[GraphicCrop], Generic[_T]

Generic GraphicCrop Struct

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

The event raised before the property is changed is called com_sun_star_text_GraphicCrop_changing. The event raised after the property is changed is called com_sun_star_text_GraphicCrop_changed.

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, unit, prop_name, event_provider=None)[source]

Constructor

Parameters:
  • component (GraphicCrop) – Graphic Crop.

  • unit (Type[UnitT]) – Unit Type.

  • 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

property bottom: _T

Gets/Sets the bottom value to cut (if negative) or to extend (if positive)

When setting the value can be a int in 1/100th mm units or a UnitT measurement unit.

Returns:

UnitT measurement unit.

Return type:

_T

property left: _T

Gets/Sets the left value to cut (if negative) or to extend (if positive)

When setting the value can be a int in 1/100th mm units or a UnitT measurement unit.

Returns:

UnitT measurement unit.

Return type:

_T

property right: _T

Gets/Sets the right value to cut (if negative) or to extend (if positive)

When setting the value can be a int in 1/100th mm units or a UnitT measurement unit.

Returns:

UnitT measurement unit.

Return type:

_T

property top: _T

Gets/Sets the top value to cut (if negative) or to extend (if positive)

When setting the value can be a int in 1/100th mm units or a UnitT measurement unit.

Returns:

UnitT measurement unit.

Return type:

_T