LibreOffice
LibreOffice 6.2 SDK API Reference
Public Member Functions | List of all members
XSourceInitialization Interface Referencepublished

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

import"XSourceInitialization.idl";

Inheritance diagram for XSourceInitialization:
XInterface CachedDynamicResultSet CachedDynamicResultSetStub

Public Member Functions

void setSource ([in] com::sun::star::uno::XInterface Source) raises (AlreadyInitializedException)
 provides the initialization of a component with any source object. 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...
 

Detailed Description

provides the initialization of a component with any source object.

Member Function Documentation

void setSource ( [in] com::sun::star::uno::XInterface  Source)
raises (AlreadyInitializedException
)

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 com::sun::star::lang::XComponent and this is an com::sun::star::lang::XEventListener. Then you should call com::sun::star::lang::XComponent::addEventListener() from inside the implementation of this method.

Parameters
Sourcethe source.
Exceptions
AlreadyInitializedExceptionif this method is called more than once during the lifetime of the object implementing this interface.

The documentation for this interface was generated from the following file: