interface XSourceInitialization in module com::sun::star::ucb::

(Global Index)

Syntax

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

Description

provides the initialization of a component with any source object.

Method Summary

setSource provides the initialization of a component with any source object.

Known Services Which Export this Interface

com::sun::star::ucb::CachedDynamicResultSet

com::sun::star::ucb::CachedDynamicResultSetStub

Method Details



setSource

Syntax

void setSource (
com::sun::star::uno::XInterface Source )
raises ( com::sun::star::ucb::AlreadyInitializedException );

Description

provides the initialization of a component with any source object.

The service description has to specify which type of interface must be set as parameter.

Hopefully you will only use this, when Source is an XComponent and this is an XEventListener . Than you should call XComponent::addEventListener() from inside the implementation of this method.

Parameter Source

the source.

Throws

AlreadyInitializedException if this method is called more than once during the lifetime of the object implementing this interface.
Top of Page