ooodev.adapter.sheet.view_splitable_partial module

class ooodev.adapter.sheet.view_splitable_partial.ViewSplitablePartial(component, interface=com.sun.star.sheet.XViewSplitable)[source]

Bases: object

Partial Class for XViewSplitable.

New in version 0.20.0.

Parameters:
  • component (XViewSplitable) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

get_is_window_split()[source]

Gets whether the window is split.

Return type:

bool

get_split_column()[source]

Gets the column where the window is split.

Return type:

int

get_split_horizontal()[source]

Gets the horizontal position in pixels where the view is split.

Return type:

int

get_split_row()[source]

Gets the row where the window is split.

Return type:

int

get_split_vertical()[source]

Gets the vertical position in pixels where the view is split.

Return type:

int

split_at_position(x, y)[source]

Splits the window at the specified position.

Parameters:
  • x (int, UnitT) – The horizontal position in pixels or UnitT where the view is split.

  • y (int, UnitT) – The vertical position in pixels or UnitT where the view is split.

Return type:

None