I want to get a list of all services a particular object supports so that I
can later recognize it by calling 'supportsService'.
I am using OOo basic.
When using obj.dbg_supportedInterfaces for an object I get a string that at
the top says "com.sun.star.comp.forms.ODatabaseForm". My guess was that
this was the name of a service, but apparently is it not, since
supportsService("com.sun.star.comp.forms.ODatabaseForm") on it does not
return true. Also, I cannot find "com.sun.star.comp.forms.ODatabaseForm" in
the API reference.
What I am trying to achive with this is to handle the form-event "Before
record action" different with different types of event-object sources. It
get called twice. The first time
event-object.Source.DBG_supportetInterfaces mentions
"com.sun.star.form.FmXFormController" at the top, the second time,
"com.sun.star.comp.forms.ODatabaseForm".
Maybe there is a better way to distinguish between these two cases - please
tell me if you have a better idea!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]