| LibreOffice
    LibreOffice 25.2 SDK API Reference | 
makes it possible to append and remove objects from a selection. More...
import "XMultiSelectionSupplier.idl";
 
  
| Public Member Functions | |
| boolean | addSelection ([in] any Selection) raises ( com::sun::star::lang::IllegalArgumentException ) | 
| adds the object or the objects represented by Selection to the selection of this XMultiSelectionSupplier. | |
| void | removeSelection ([in] any Selection) raises ( com::sun::star::lang::IllegalArgumentException ) | 
| remove the object or objects represented by Selection from the selection of this XMultiSelectionSupplier. | |
| void | clearSelection () | 
| clears the selection of this XMultiSelectionSupplier. | |
| long | getSelectionCount () | 
| returns the number of selected objects of this XMultiSelectionSupplier. | |
| com::sun::star::container::XEnumeration | createSelectionEnumeration () | 
| com::sun::star::container::XEnumeration | createReverseSelectionEnumeration () | 
| Public Member Functions inherited from XSelectionSupplier | |
| boolean | select ([in] any xSelection) raises ( com::sun::star::lang::IllegalArgumentException ) | 
| selects the object represented by xSelection if it is known and selectable in this object. | |
| any | getSelection () | 
| void | addSelectionChangeListener ([in] com::sun::star::view::XSelectionChangeListener xListener) | 
| registers an event listener, which is called when the selection changes. | |
| void | removeSelectionChangeListener ([in] com::sun::star::view::XSelectionChangeListener xListener) | 
| unregisters an event listener which was registered with XSelectionSupplier::addSelectionChangeListener(). | |
| Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) | 
| queries for a new interface to an existing UNO object. | |
| void | acquire () | 
| increases the reference counter by one. | |
| void | release () | 
| decreases the reference counter by one. | |
makes it possible to append and remove objects from a selection.
The method XSelectionSupplier::setSelection() for an instance that also supports XMultiSelectionSupplier should be implemented that it also takes either a selectable object or a sequence of selectable objects.
Adding an object more than once to a selection should not toggle the selection for that object but only select it once
| boolean addSelection | ( | [in] any | Selection | ) | ||
| raises | ( | com::sun::star::lang::IllegalArgumentException ) | ||||
adds the object or the objects represented by Selection to the selection of this XMultiSelectionSupplier.
| Selection | either an Object that is selectable or a sequence of objects that are selectable. | 
| com::sun::star::lang::IllegalArgumentException | If Selection is not a selectable object for this XMultiSelectionSupplier. | 
Adding an object to the selection that is already part of the selection should not raise this exception
| void clearSelection | ( | ) | 
clears the selection of this XMultiSelectionSupplier.
| com::sun::star::container::XEnumeration createReverseSelectionEnumeration | ( | ) | 
| com::sun::star::container::XEnumeration createSelectionEnumeration | ( | ) | 
| long getSelectionCount | ( | ) | 
returns the number of selected objects of this XMultiSelectionSupplier.
| void removeSelection | ( | [in] any | Selection | ) | ||
| raises | ( | com::sun::star::lang::IllegalArgumentException ) | ||||
remove the object or objects represented by Selection from the selection of this XMultiSelectionSupplier.
| Selection | either an Object that is selectable or a sequence of objects that are selectable. | 
| com::sun::star::lang::IllegalArgumentException | If Selection is not a selectable object for this XMultiSelectionSupplier. | 
Removing an object from the selection that is not part of the selection should not raise this exception