Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

interface XSelectionSupplier
Description
makes it possible to access and change the selection in a view.
See also
OfficeDocumentView
Developers Guide
OfficeDev - Component - Controllers - XSelectionSupplier
Drawings - Setting the Current Page
Text - 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

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.