LibreOffice
LibreOffice 5.3 SDK API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
XComponentContext Interface Referencepublished

Component context to be passed to a component via com::sun::star::lang::XSingleComponentFactory. More...

import "XComponentContext.idl";

Inheritance diagram for XComponentContext:
XInterface BootstrapContext

Public Member Functions

any getValueByName ([in] string Name)
 Gets a value from the context. More...
 
com::sun::star::lang::XMultiComponentFactory getServiceManager ()
 Gets the service manager instance to be used from key /singletons/com.sun.star.lang.theServiceManager. 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

Component context to be passed to a component via com::sun::star::lang::XSingleComponentFactory.

Arbitrary values (e.g. deployment values) can be retrieved from the context.

Developers Guide
ProUNO - Service Manager and Component Context
FirstSteps - First Contact - Getting Started
ProUNO - Java - Getting a Service Manager
ProUNO - C++ - Establishing Interprocess Connections
ProUNO - UNO Interprocess Connections
ProUNO - C++ - Transparent Use of Office UNO Components
ProUNO - Java - Transparent Use of Office UNO Components

Member Function Documentation

Gets the service manager instance to be used from key /singletons/com.sun.star.lang.theServiceManager.

This method has been added for convenience, because the service manager is used very often.

Returns
service manager; throws DeploymentException in case service manager is null
any getValueByName ( [in] string  Name)

Gets a value from the context.

Parameters
Namename of value
Returns
value

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