ooodev.adapter.sheet.spreadsheets_partial module

class ooodev.adapter.sheet.spreadsheets_partial.SpreadsheetsPartial(component, interface=com.sun.star.sheet.XSpreadsheets)[source]

Bases: NameContainerPartial[Spreadsheet]

Partial Class for XSpreadsheets.

__init__(component, interface=com.sun.star.sheet.XSpreadsheets)[source]

Constructor

Parameters:
  • component (XSpreadsheets) – UNO Component that implements com.sun.star.sheet.XSpreadsheets.

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

Return type:

None

copy_by_name(name, copy, idx)[source]

Copies the sheet with the specified name.

Parameters:
  • name (str) – The name of the sheet to be copied.

  • copy (str) – The name of the copy of the spreadsheet.

  • idx (int, optional) – The index of the copy in the collection.

Return type:

None

insert_new_by_name(name, idx)[source]

Inserts a new sheet with the specified name.

Parameters:
  • name (str) – The name of the sheet to be inserted.

  • idx (int, optional) – The index of the new sheet.

Return type:

None

move_by_name(name, idx)[source]

Moves the sheet with the specified name.

Parameters:
  • name (str) – The name of the sheet to be moved.

  • idx (int) – The new index of the sheet.

Return type:

None