Aaron Digulla wrote:
Hello,

I'm trying to figure out how the various objects in the UNO class model are related to each other but I can't find a way to list all interfaces (i.e. all those classes for which UnoRuntime.queryInterface() would return non-null).

My solution was to collect all classes in the UNO jars and then simply call queryInterface() for each of them. Is there a better way?

The intention is that every UNO object supports the com.sun.star.lang.XTypeProvider interface, and that its getTypes method returns all the interfaces supported by the given object. However, note that some objects (erroneously) do not support XTypeProvider, and that the vague definition of getTypes leaves it open whether an implementation returns only most derived types or all types (or something in between).

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to