ooodev.adapter.chart2.data.data_receiver_partial module

class ooodev.adapter.chart2.data.data_receiver_partial.DataReceiverPartial(component, interface=com.sun.star.chart2.data.XDataReceiver)[source]

Bases: object

Partial class for XDataReceiver.

Parameters:
  • component (XDataReceiver) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.chart2.data.XDataReceiver)[source]

Constructor

Parameters:
  • component (XDataReceiver) – UNO Component that implements com.sun.star.chart2.data.XDataReceiver interface.

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

Return type:

None

attach_data_provider(provider)[source]

attaches a component that provides data for the document.

The previously set data provider will be released.

Return type:

None

Parameters:

provider (com.sun.star.chart2.data.XDataProvider) –

attach_number_formats_supplier(supplier)[source]

attaches an XNumberFormatsSupplier to this XDataReceiver.

The given number formats will be used for display purposes.

Return type:

None

Parameters:

supplier (com.sun.star.util.XNumberFormatsSupplier) –

get_popup_request()[source]

A callback object to execute a foreign popup menu window.

since

LibreOffice 5.4

Return type:

XRequestCallback

get_range_highlighter()[source]

Returns a component at which a view representing the data of the attached data provider may listen for highlighting the data ranges used by the currently selected objects in the data receiver component.

This is typically used by a spreadsheet to highlight the ranges used by the currently selected object in a chart.

The range highlighter is optional, i.e., this method may return an empty object.

Return type:

XRangeHighlighter

get_used_data()[source]

Returns the data requested by the most recently attached data provider, that is still used.

Return type:

XDataSource

get_used_range_representations()[source]

returns a list of all range strings for which data has been requested by the most recently attached data provider, and which is still used.

This list may be used by the data provider to swap charts out of memory, but still get informed by changes of ranges while the chart is not loaded.

Return type:

Tuple[str, ...]

set_arguments(*args)[source]
Raises:

com.sun.star.lang.IllegalArgumentExceptionIllegalArgumentException

Return type:

None

Parameters:

args (PropertyValue) –