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

interface XSelectionSupplier
Description
makes it possible to access and change the selection in a view.
See also
OfficeDocumentView
Developers Guide
10.7.1 Drawing Documents and Presentation Documents - Drawing and Presentation Document Controller - Setting the Current Page, Using the Selection
7.1.3 Office Development - OpenOffice.org Application Environment - Using the Component Framework - Controllers - XSelectionSupplier
8.5.1 Text Documents - Text Document Controller - TextView

Methods' Summary
select selects the object represented by xSelection if it is known and selectable in this object.  
getSelection  
addSelectionChangeListener registers an event listener, which is called when the selection changes.  
removeSelectionChangeListener unregisters an event listener which was registered with XSelectionSupplier::addSelectionChangeListener .  
Methods' Details
select
boolean
select( [in] any  xSelection )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
selects the object represented by xSelection if it is known and selectable in this object.
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.

addSelectionChangeListener
void
addSelectionChangeListener( [in] XSelectionChangeListener  xListener );

Description
registers an event listener, which is called when the selection changes.
removeSelectionChangeListener
void
removeSelectionChangeListener( [in] XSelectionChangeListener  xListener );

Description
unregisters an event listener which was registered with XSelectionSupplier::addSelectionChangeListener .
Top of Page