ooodev.adapter.drawing.shape_partial module

class ooodev.adapter.drawing.shape_partial.ShapePartial(component, interface=com.sun.star.drawing.XShape)[source]

Bases: object

Partial Class XShape.

Parameters:
  • component (XShape) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.drawing.XShape)[source]

Constructor

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

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

Return type:

None

get_position()[source]

Gets the position of the shape in 100th mm units.

Returns:

The position of the shape.

Return type:

Point

get_size()[source]

Gets the size of the shape in 100th mm units.

Returns:

The size of the shape.

Return type:

Size

set_position(position)[source]

Sets the position of the shape in 100th mm units.

Parameters:

position (Point) – The position of the shape.

Return type:

None

set_size(size)[source]

Sets the size of the shape in 100th mm units.

Parameters:

size (Size) – The size of the shape.

Return type:

None