(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: 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 OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.