ooodev.adapter.drawing.shapes2_partial module

class ooodev.adapter.drawing.shapes2_partial.Shapes2Partial(component, interface=com.sun.star.drawing.XShapes2)[source]

Bases: object

Partial class for XShapes2 interface.

Parameters:
  • component (XShapes2) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

add_bottom(shape)[source]

Adds a shape to the bottom of the stack.

Parameters:

shape (XShape) – The shape to add.

Return type:

None

add_top(shape)[source]

Adds a shape to the top of the stack.

Parameters:

shape (XShape) – The shape to add.

Return type:

None