From 2356a480fea6cac8cccaae85c9a2b6a312a9048c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 30 Jan 2013 17:46:38 +0100 Subject: API CHANGE: Make TypeDescriptionManager/Provider more consistent ...by letting their getByHierarchicalName methods return information about UNO constants as X(Constant)TypeDescription values, just as for (alomst -- see the odd enum member case) all other entities. This will make future changes in this area easier. The only affected client I could find so far is the core reflection service, but there might be more that I overlooked. Change-Id: I6731f2914773d49e33eeaec6e256ff2e5409ad2d --- .../com/sun/star/reflection/TypeDescriptionManager.idl | 16 +++++++++++----- .../com/sun/star/reflection/TypeDescriptionProvider.idl | 13 +++++++++---- 2 files changed, 20 insertions(+), 9 deletions(-) (limited to 'udkapi') diff --git a/udkapi/com/sun/star/reflection/TypeDescriptionManager.idl b/udkapi/com/sun/star/reflection/TypeDescriptionManager.idl index 597dda266ceb..467047a61e6b 100644 --- a/udkapi/com/sun/star/reflection/TypeDescriptionManager.idl +++ b/udkapi/com/sun/star/reflection/TypeDescriptionManager.idl @@ -47,9 +47,18 @@ published service TypeDescriptionManager { /** Interface to retrieve type descriptions. + In addition to the semantics specified for the corresponding interface + of the TypeDescriptionProvider service (which changed + slightly for LibreOffice 4.1; see there), this interface allows to + retrieve the following entities: -

The returned values are of interface type - XTypeDescription.

-

Even though the name of this interface suggests that the used type names are hierarchic, this need not be the case. (For example, consider the names of instantiated polymorphic struct types, like diff --git a/udkapi/com/sun/star/reflection/TypeDescriptionProvider.idl b/udkapi/com/sun/star/reflection/TypeDescriptionProvider.idl index 672274b8d163..af84f3cff577 100644 --- a/udkapi/com/sun/star/reflection/TypeDescriptionProvider.idl +++ b/udkapi/com/sun/star/reflection/TypeDescriptionProvider.idl @@ -39,11 +39,16 @@ published service TypeDescriptionProvider /** Interface to retrieve type descriptions.

Names are given in dotted notation, for example - "com.sun.star.uno.XInterface". The returned values are of - interface type XTypeDescription.

+ "com.sun.star.uno.XInterface".

-

Even though the name of this interface suggests that the used type - names are hierarchic, this need not be the case.

+

The returned values are generally non-null references of type + XTypeDescription. However, before LibreOffice 4.1, + the value returned for a UNO constant was the value of the constant, + rather than a reference to an XConstantTypeDescription + object. (It also appears that some implementations return values for + individual UNO enum members, e.g. + "com.sun.star.uno.TypeClass.VOID", though this is probably + best treated as an implementation obscurity.)

*/ interface com::sun::star::container::XHierarchicalNameAccess; -- cgit