Hi Rony, I don't know, what you are looking exactly for, but try that link and see if it is something in the direction you want:
http://www.tugm.de/Projekte/TCLUNO/index.html It is an Introspection Tool using tcluno, written in Tcl together with the libtcluno.so. It has not yet been tested very well, but you can give it a try, if you want. tugm is the Tcl User Group Munich Arnulf Am Freitag, 5. August 2005 18:51 schrieb Rony G. Flatscher: > Hi Jürgen, > > >> * a) use "theTypeDescriptionManager.getByHierarchicalName( > >> strClassName )"; e.g. receiving an exception > >> "<com.sun.star.container.NoSuchElementException: > >> com.sun.star.comp.helper.Bootstrap>", if using > >> "com.sun.star.comp.helper.Bootstrap" as the class name. > > > > com.sun.star.comp.helper.Bootstrap is an Java UNO helper class and is > > not available over the type description manager (tdmgr). The tdmgr > > supports only IDL types. And you should take into account that the > > normal type library of an office installation doesn't contain type > > info for old style service types. > > Oh, wasn't aware of that, just tested with other classes, and it works, > thank you very much! > > >> * b) using > >> "XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration()" > >> yields always an empty "XTypeDescriptionEnumeration". > > > > mmh, that is maybe a bug but i am not sure and have to take a closer > > look into the code. > > Hoping it is not a bug, but something I am doing wrong. (But if a bug, > maybe there is a workaround?) > > Did try it to no avail with: > > strClass="com.sun.star.comp.helper.Bootstrap"; > strClass="com.sun.star.reflection.XTypeDescription"; > strClass="com.sun.star.uno.XInterface"; > strClass="com.sun.star.frame.Desktop"; > strClass="com.sun.star.text.XTextViewCursorSupplier"; > > They all return an enumeration which returns false on "hasMoreElements();". > > After all, it seems that I really need to use the XTypeDescription* > infrastructure to get at all the information at runtime that I need to > make the scripting language support even more flexible (although the > present support looks nice and simple enough and runs stable on 1.1.4, > 1.9, with the latter even pluggable into the scripting framework). > > Still looking forward to any hints, insights ... > > Regards, > > ---rony > > > > --------------------------------------------------------------------- > 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]
