LibreOffice
LibreOffice 24.2 SDK API Reference
|
This is the server-side interface to a weak adapter. More...
import"XAdapter.idl";
Public Member Functions | |
com::sun::star::uno::XInterface | queryAdapted () |
queries the adapted object if it is alive. More... | |
void | addReference ([in] com::sun::star::uno::XReference xRef) |
adds a reference to the adapter. More... | |
void | removeReference ([in] com::sun::star::uno::XReference xRef) |
removes a reference from the adapter. 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... | |
This is the server-side interface to a weak adapter.
The implementation of XAdapter must know but not hold the adapted object, because it must not affect the lifetime of the adapted object.
void addReference | ( | [in] com::sun::star::uno::XReference | xRef | ) |
adds a reference to the adapter.
All added references are called when the adapted object dies.
com::sun::star::uno::XInterface queryAdapted | ( | ) |
queries the adapted object if it is alive.
void removeReference | ( | [in] com::sun::star::uno::XReference | xRef | ) |
removes a reference from the adapter.