ooodev.adapter.sheet.spreadsheet_view_settings_comp module

class ooodev.adapter.sheet.spreadsheet_view_settings_comp.SpreadsheetViewSettingsComp(component)[source]

Bases: ComponentBase, PropertyChangeImplement, VetoableChangeImplement

Class for managing Spreadsheet View Settings Component.

New in version 0.20.0.

Parameters:

component (SpreadsheetViewSettings) –

__init__(component)[source]

Constructor

Parameters:

component (SpreadsheetView) – UNO Component that supports com.sun.star.sheet.SpreadsheetViewSettings service.

Return type:

None

property component: com.sun.star.sheet.SpreadsheetViewSettings

Spreadsheet View Component

Return type:

SpreadsheetViewSettings

property show_formulas: bool

Gets/Sets whether formulas are displayed instead of their results.

Return type:

bool

property show_grid: bool

Gets/Sets whether the grid is displayed.

Return type:

bool

property show_help_lines: bool

Enables display of help lines when moving drawing objects.

Return type:

bool

property show_notes: bool

Gets/Sets whether a marker is shown for notes in cells.

Return type:

bool

property show_objects: SpreadsheetViewObjectsModeEnum

Gets/Sets whether objects are displayed.

Return type:

SpreadsheetViewObjectsModeEnum

property show_page_breaks: bool

Gets/Sets whether page breaks are displayed.

Return type:

bool

property show_zero_values: bool

Gets/Sets whether zero values are displayed.

Return type:

bool

property zoom_type: DocumentZoomTypeEnum

Gets/Sets the zoom type.

Can be set using an enum or an int.

  • OPTIMAL = 0

  • PAGE_WIDTH = 1

  • ENTIRE_PAGE = 2

  • BY_VALUE = 3

  • PAGE_WIDTH_EXACT = 4

Return type:

DocumentZoomTypeEnum

property zoom_value: int

Gets/Sets the zoom value.

Only valid if zoom_type = ooo.dyn.view.document_zoom_type.DocumentZoomTypeEnum.BY_VALUE or 3.

Return type:

int

ooodev.adapter.sheet.spreadsheet_view_settings_comp.get_builder(component, **kwargs)[source]

Get the builder for the component.

Parameters:
  • component (Any) – The component.

  • kwargs (Any) –

Returns:

Builder instance.

Return type:

DefaultBuilder