LibreOffice
LibreOffice 24.2 SDK API Reference
Public Member Functions | List of all members
XMultiComponentFactory Interface Referencepublished

Factory interface for creating component instances giving a context from which to retrieve deployment values. More...

import"XMultiComponentFactory.idl";

Inheritance diagram for XMultiComponentFactory:
XInterface XUIControllerFactory MultiServiceFactory CanvasFactory PopupMenuControllerFactory StatusbarControllerFactory thePopupMenuControllerFactory theStatusbarControllerFactory theToolbarControllerFactory ToolbarControllerFactory ChartTypeManager ServiceManager

Public Member Functions

com::sun::star::uno::XInterface createInstanceWithContext ([in] string aServiceSpecifier, [in] com::sun::star::uno::XComponentContext Context) raises (com::sun::star::uno::Exception)
 Creates an instance of a component which supports the services specified by the factory. More...
 
com::sun::star::uno::XInterface createInstanceWithArgumentsAndContext ([in] string ServiceSpecifier, [in] sequence< any > Arguments, [in] com::sun::star::uno::XComponentContext Context) raises (com::sun::star::uno::Exception)
 Creates an instance of a component which supports the services specified by the factory, and initializes the new instance with the given arguments and context. More...
 
sequence< string > getAvailableServiceNames ()
 Gets the names of all supported services. 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

Factory interface for creating component instances giving a context from which to retrieve deployment values.

See also
XInitialization
Developers Guide
Professional UNO - Service Manager and Component Context
First Steps - First Contact - Getting Started
Professional UNO - Java - Getting a Service Manager
Professional UNO - C++ - Establishing Interprocess Connections
Professional UNO - UNO Interprocess Connections
Professional UNO - C++ - Transparent Use of Office UNO Components
Professional UNO - Java - Transparent Use of Office UNO Components

Member Function Documentation

◆ createInstanceWithArgumentsAndContext()

com::sun::star::uno::XInterface createInstanceWithArgumentsAndContext ( [in] string  ServiceSpecifier,
[in] sequence< any >  Arguments,
[in] com::sun::star::uno::XComponentContext  Context 
)
raises (com::sun::star::uno::Exception
)

Creates an instance of a component which supports the services specified by the factory, and initializes the new instance with the given arguments and context.

Parameters
ServiceSpecifierservice name
Argumentsarguments
Contextcontext the component instance gets its deployment values from
Returns
component instance

◆ createInstanceWithContext()

com::sun::star::uno::XInterface createInstanceWithContext ( [in] string  aServiceSpecifier,
[in] com::sun::star::uno::XComponentContext  Context 
)
raises (com::sun::star::uno::Exception
)

Creates an instance of a component which supports the services specified by the factory.

Parameters
aServiceSpecifierservice name
Contextcontext the component instance gets its deployment values from
Returns
component instance

◆ getAvailableServiceNames()

sequence< string > getAvailableServiceNames ( )

Gets the names of all supported services.

Returns
sequence of all service names

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