ooodev.adapter.sheet.range_selection_partial module

class ooodev.adapter.sheet.range_selection_partial.RangeSelectionPartial(component, interface=com.sun.star.sheet.XRangeSelection)[source]

Bases: object

Partial Class for XRangeSelection.

New in version 0.20.0.

Parameters:
  • component (XRangeSelection) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

abort_range_selection()[source]

Aborts the current range selection.

Return type:

None

add_range_selection_change_listener(listener)[source]

Adds the specified listener to receive events when the selection changes.

Parameters:

listener (XRangeSelectionChangeListener) – The listener to add.

Return type:

None

add_range_selection_listener(listener)[source]

Adds the specified listener to receive events when the selection changes.

Parameters:

listener (XRangeSelectionListener) – The listener to add.

Return type:

None

remove_range_selection_change_listener(listener)[source]

Removes the specified listener so it does not receive events when the selection changes.

Parameters:

listener (XRangeSelectionChangeListener) – The listener to remove.

Return type:

None

remove_range_selection_listener(listener)[source]

Removes the specified listener so it does not receive events when the selection changes.

Parameters:

listener (XRangeSelectionListener) – The listener to remove.

Return type:

None

start_range_selection(args)[source]

Starts a range selection.

Parameters:

args (tuple[PropertyValue, ...]) – Specifies how the range selection is done.

Return type:

None