Overview | Module | Use | Devguide | Index

Methods' Summary | Methods' Details | Attributes' Summary | Attributes' Details

:: com :: sun :: star :: view ::
interface XSelectionSupplier
  Base Hierarchy
      ::com::sun::star::uno::XInterface
       |
       +-XSelectionSupplier
Description makes it possible to access and change the selection in a view. See also OfficeDocumentView Developers Guide 9.7.1 Drawing Documents and Presentation Documents - Drawing and Presentation Document Controller - Setting the Current Page, Using the Selection 6.1.3 Office Development - OpenOffice.org Application Environment - Using the Component Framework - Controllers - XSelectionSupplier 7.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 raises( | xSelection ) ::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

Copyright © 2003 Sun Microsystems, Inc.