ooodev.adapter.drawing.shapes_partial module

class ooodev.adapter.drawing.shapes_partial.ShapesPartial(component, interface=com.sun.star.drawing.XShapes)[source]

Bases: IndexAccessPartial[XShape]

Partial class for XShape interface.

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

Constructor

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

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

Return type:

None

add(shape)[source]

Adds a shape to the collection.

Parameters:

shape (XShape) – The shape to add.

Return type:

None

remove(shape)[source]

Removes a shape from the collection.

Parameters:

shape (XShape) – The shape to remove.

Return type:

None