ooodev.adapter.graphic.graphic_partial module

class ooodev.adapter.graphic.graphic_partial.GraphicPartial(component, interface=com.sun.star.graphic.XGraphic)[source]

Bases: object

Partial class for XGraphic.

Parameters:
  • component (XGraphic) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.graphic.XGraphic)[source]

Constructor

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

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

Return type:

None

get_type()[source]

Get the type of the contained graphic.

Return type:

int