The Free and Open Productivity Suite
QA Volunteers Needed -- Help us test OpenOffice

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for Apache OpenOffice version 3.4.

:: 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 Feather

Copyright & License | Privacy | Contact Us | Donate

Apache, the Apache feather logo, and OpenOffice 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.