ooodev.adapter.drawing.rotation_descriptor_properties_partial module

class ooodev.adapter.drawing.rotation_descriptor_properties_partial.RotationDescriptorPropertiesPartial(component)[source]

Bases: object

Service Class

This abstract service specifies the general characteristics of an optional rotation and shearing for a Shape.

This service is deprecated, instead please use the Transformation property of the service Shape.

Deprecated:: Class is deprecated.

Parameters:

component (RotationDescriptor) –

__init__(component)[source]

Constructor

Parameters:

component (RotationDescriptor) – UNO Component that implements com.sun.star.drawing.RotationDescriptor interface.

Return type:

None

property rotate_angle: Angle100

This is the angle for rotation of this Shape.

The shape is rotated counter-clockwise around the center of the bounding box.

This property contains an error, the rotation angle is mathematically inverted when You take into account that the Y-Axis of the coordinate system is pointing down. Please use the Transformation property of the service Shape instead.

When is setting this property, the value can be an int (in 1/100th of a degree) or an AngleT.

Returns:

The angle for rotation of this Shape.

Return type:

Angle100

Hint

Angle100 can be imported from ooodev.units

property shear_angle: Angle100 | None

This is the amount of shearing for this Shape.

The shape is sheared counter-clockwise around the center of the bounding box

When is setting this property, the value can be an int (in 1/100th of a degree) or an AngleT.

optional

Returns:

The angle for rotation of this Shape Or None if not supported.

Return type:

Angle100 | None

Hint

Angle100 can be imported from ooodev.units