interface XSelectionSupplier in module com::sun::star::view::

(Global Index)

Syntax

interface XSelectionSupplier : com::sun::star::uno::XInterface ;

Description

makes it possible to access and change the selection in a view.

See also

OfficeDocumentView

Method Summary

select selects the object represented by aInterface if it is known and selectable in this interface.

getSelection

addSelectionChangeListener registers an event listener, which is called when the selection changes.

removeSelectionChangeListener unregisters an event listener which was registered with XSelectionSupplier::addSelectionChangeListener .

Known Services Which Export this Interface

com::sun::star::view::OfficeDocumentView

com::sun::star::form::control::GridControl

com::sun::star::form::component::GridControl

com::sun::star::drawing::DrawingDocumentDrawView

com::sun::star::sheet::SpreadsheetView

Method Details



select

Syntax

boolean select (
any aSelection )
raises ( com::sun::star::lang::IllegalArgumentException );

Description

selects the object represented by aInterface if it is known and selectable in this interface.


getSelection

Syntax

any getSelection ();

Returns

the current selection.

The selection is either specified by an object which is contained in the component to which the view belongs, or it is an interface of a collection which contains such objects.


addSelectionChangeListener

Syntax

void addSelectionChangeListener (
com::sun::star::view::XSelectionChangeListener xListener );

Description

registers an event listener, which is called when the selection changes.


removeSelectionChangeListener

Syntax

void removeSelectionChangeListener (
com::sun::star::view::XSelectionChangeListener xListener );

Description

unregisters an event listener which was registered with XSelectionSupplier::addSelectionChangeListener .

Top of Page