ooodev.adapter.sheet.view_freezable_partial module

class ooodev.adapter.sheet.view_freezable_partial.ViewFreezablePartial(component, interface=com.sun.star.sheet.XViewFreezable)[source]

Bases: object

Partial Class for XViewFreezable .

New in version 0.20.0.

Parameters:
  • component (XViewFreezable) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

freeze_at_position(col, row)[source]

Freezes panes with the specified number of columns and rows.

To freeze only horizontally, specify rows as 0. To freeze only vertically, specify col as 0.

Parameters:
  • col (int) – The column to freeze.

  • row (int) – The row to freeze.

Return type:

None

has_frozen_panes()[source]

Gets whether the view has frozen panes.

Return type:

bool