Hi Stephan, Am Mittwoch, 7. September 2005 14:51 schrieb Stephan Bergmann: > Arnulf Wiedemann wrote: > > Hi, > > using XInvocation2 method getMemberNames I can get all the methods and > > properties of an object. Using XInvocation hasMethod and hasProperty I > > can distinguish between methods and properties. > > I don't know XInvocation in detail, but from looking at the > documentation, XInvocation2.getInfo() seems to be your friend here. >
sorry, that does not help, there is a lot of information available in InvocationInfo, but nothing which tells me, if that is a service. > > In the list of properties there > > > > are sometimes service names. > > Can you give an example of that (what kind of object did you inspect)? > This sounds like an error to me. the object is a com.sun.star.frame.Desktop, created with a createInstanceWithContext. The "funny" property is: DispatchRecorderSupplier It is in the list returned from getMemberNames and hasProperty returns true for that member name, whereas hasMethod returns false (which is correct). If I use the Desktop object and call getPropertyValue with parameter DispatchRecorderSupplier I get the strange object index back. Arnulf > > -Stephan > > > How can I find out, that a property is a service > > > > name? I only found out the using getPropertyValue on a service I get an > > empty object id and an object cache index 0xffff directly from the urp > > protocol. Are that the criteria for a service? > > > > Arnulf > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
