ooodev.adapter.drawing.draw_pages_partial module

class ooodev.adapter.drawing.draw_pages_partial.DrawPagesPartial(component, interface=com.sun.star.drawing.XDrawPages)[source]

Bases: IndexAccessPartial[XDrawPage]

Partial Class for XDrawPages.

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

Constructor

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

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

Return type:

None

insert_new_by_index(idx)[source]

Creates and inserts a new DrawPage or MasterPage into this container.

Parameters:

idx (int) – The index at which the new page will be inserted.

Returns:

The new page.

Return type:

Any

remove(page)[source]

Removes a DrawPage or MasterPage from this container.

Parameters:

page (Any) – The page to be removed.

Return type:

None