LibreOffice
LibreOffice 24.2 SDK API Reference
Loading...
Searching...
No Matches
XSelectionSupplier Interface Reference

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

import <XSelectionSupplier.idl;

Inheritance diagram for XSelectionSupplier:
XInterface DrawingDocumentDrawView XDrawSubController GridControl GridControl Controller DefaultViewController SpreadsheetView OfficeDocumentView XMultiSelectionSupplier

Public Member Functions

boolean select ([in] any xSelection) raises ( com::sun::star::lang::IllegalArgumentException )
 selects the object represented by xSelection if it is known and selectable in this object.
 
any getSelection ()
 
void addSelectionChangeListener ([in] com::sun::star::view::XSelectionChangeListener xListener)
 registers an event listener, which is called when the selection changes.
 
void removeSelectionChangeListener ([in] com::sun::star::view::XSelectionChangeListener xListener)
 unregisters an event listener which was registered with XSelectionSupplier::addSelectionChangeListener().
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object.
 
void acquire ()
 increases the reference counter by one.
 
void release ()
 decreases the reference counter by one.
 

Detailed Description

Member Function Documentation

◆ addSelectionChangeListener()

void addSelectionChangeListener ( [in] com::sun::star::view::XSelectionChangeListener xListener)

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

◆ getSelection()

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.

◆ removeSelectionChangeListener()

void removeSelectionChangeListener ( [in] com::sun::star::view::XSelectionChangeListener xListener)

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

◆ select()

boolean select ( [in] any xSelection)
raises (com::sun::star::lang::IllegalArgumentException )

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


The documentation for this interface was generated from the following files: