LibreOffice
LibreOffice 24.2 SDK API Reference
|
makes it possible to control an active data source. More...
import"XActiveDataControl.idl";
Public Member Functions | |
void | addListener ([in] com::sun::star::io::XStreamListener aListener) |
registers an object to receive events from this data source. More... | |
void | removeListener ([in] com::sun::star::io::XStreamListener aListener) |
unregisters an object to receive events from this data source. More... | |
void | start () |
starts I/O. More... | |
void | terminate () |
does a weak abort. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
makes it possible to control an active data source.
This interface should be supported by objects which implement XActiveDataSource or XActiveDataSink.
void addListener | ( | [in] com::sun::star::io::XStreamListener | aListener | ) |
registers an object to receive events from this data source.
It is suggested to allow multiple registration of the same listener, thus for each time a listener is added, it has to be removed.
void removeListener | ( | [in] com::sun::star::io::XStreamListener | aListener | ) |
unregisters an object to receive events from this data source.
It is suggested to allow multiple registration of the same listener, thus for each time a listener is added, it has to be removed.
void start | ( | ) |
starts I/O.
Either XActiveDataControl::setInputStream() or XActiveDataControl::setOutputStream() must be called beforehand.
This method does not block the thread, so reading is generally not finished when the method returns.
void terminate | ( | ) |
does a weak abort.
It closes all connected resources and calls XInputStream::close() or XOutputStream::close() and fires the XStreamListener::terminated()-event.