vimsheet.model.workbook
Workbook model — a collection of sheets with session state.
- class vimsheet.model.workbook.Workbook(sheets=<factory>, active_sheet_idx=0, filepath=None, modified=False, global_named_ranges=<factory>)[source]
Bases:
objectTop-level container: sheets, filepath, and modification state.
- Parameters:
- delete_sheet(name)[source]
Delete a sheet by name. Raises ValueError if it is the only sheet.
- Parameters:
name (str)
- Return type:
None
- duplicate_sheet(name=None)[source]
Duplicate a sheet by name (or active sheet if None). Appends with suffix.
- set_autocalc(value)[source]
Propagate autocalc setting to all sheets.
- Parameters:
value (bool)
- Return type:
None
- go_to_sheet(idx)[source]
Switch to sheet at idx (0-based). Clamps to valid range.
- Parameters:
idx (int)
- Return type:
None