ooodev.adapter.drawing.shape_grouper_partial module

class ooodev.adapter.drawing.shape_grouper_partial.ShapeGrouperPartial(component, interface=com.sun.star.drawing.XShapeGrouper)[source]

Bases: object

Partial class for XShapeGrouper interface.

Parameters:
  • component (XShapeGrouper) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

group(shapes)[source]

Groups the given shapes.

Parameters:

shapes (XShapes) – The shapes to group.

Returns:

The group shape.

Return type:

XShapeGroup

ungroup(shape)[source]

Un-groups the given shape.

Parameters:

shape (XShapeGroup) – The shape to ungroup.

Return type:

None