Kay Ramme - Sun Germany - Hamburg schrieb:
Thanks for any information - there's lots of documentation out there,
but it
does seem to be difficult to get the correct one.
Just let me know if you need assistance ....
Now the difficulties are starting (at least with the OLE bridge):
- Reflection -
OpenOffice seems to have various reflection APIs - this is indeed very
strange. The easiest one
was "CoreReflection", which I used and which was very useful and offers
a structure, which
is pretty obvious and can be used quite easily.
BUT "CoreReflection" can be used to query information about interfaces,
structs and enums, BUT
not for const ? Why not ? Nowhere documented ? What can be queried via
"CoreReflection" ?
And "CoreReflection" can not be used to query some special services,
singletons or whatever that
is: the best example is: "CoreReflection" can not be asked about
"CoreReflection" That is very
strange ?
The other way - which I have not managed yet - is to go via
"TypeDescriptionManager <cid:[email protected]>" or
"TypeDescriptionProvider <cid:[email protected]>".
I do not know, what the differences are between them - and the
documentation is pretty unclear about them.
If one goes via "TypeDescriptionManager
<cid:[email protected]>" one has to work with a
singleton - how the hell does
one get a singleton in the OLE bridge? Via CreateInstance of the
ServiceManager ? I did it that
way and I got a value returned.
I asked that object via "getByHierarchicalName:" for an information
about any class and I
get an internal exception with information like.
'com.sun.star.container.NoSuchElementException:
com.sun.star.util.XSortable'
(as an example for "com.sun.star.util.XSortable").
Any ideas ?
Marten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]