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