interface XAdapter in module com::sun::star::uno::

(Global Index)

Syntax

interface XAdapter : com::sun::star::uno::XInterface ;

Description

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.

See also

XWeak
for decription af concepts.

Method Summary

queryAdapted queries the adapted object if it is alive.

addReference adds a reference to the adapter.

removeReference removes a reference from the adapter.

Method Details



queryAdapted

Syntax

com::sun::star::uno::XInterface queryAdapted ();

Description

queries the adapted object if it is alive.


addReference

Syntax

void addReference (
com::sun::star::uno::XReference xRef );

Description

adds a reference to the adapter.

All added references are called when the adapted object dies.


removeReference

Syntax

void removeReference (
com::sun::star::uno::XReference xRef );

Description

removes a reference from the adapter.

Top of Page