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

interface to get information about the types (usually interface types) supported by an object. More...

import"XTypeProvider.idl";

Inheritance diagram for XTypeProvider:
XInterface

Public Member Functions

sequence< type > getTypes ()
 returns a sequence of all types (usually interface types) provided by the object. More...
 
sequence< byte > getImplementationId ()
 returns a sequence of bytes with length > 0 that is used as an Id to distinguish unambiguously between two sets of types, for example to realise hashing functionality when the object is introspected. 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

interface to get information about the types (usually interface types) supported by an object.

Developers Guide
WritingUNO - Core Interfaces to Implement
AdvUNO - UNO Reflection API
WritingUNO - XTypeProvider

Member Function Documentation

sequence<byte> getImplementationId ( )

returns a sequence of bytes with length > 0 that is used as an Id to distinguish unambiguously between two sets of types, for example to realise hashing functionality when the object is introspected.

Two objects that return the same UUID also have to return the same set of types in getTypes().

If a unique implementation Id cannot be provided this method has to return an empty sequence.

Attention
If the object aggregates other objects the UUID has to be unique for the whole combination of objects.
sequence<type> getTypes ( )

returns a sequence of all types (usually interface types) provided by the object.

Attention
If the object aggregates other objects the sequence also has to contain all types supported by the aggregated objects.

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