Hi Jorge,

Alle 20:13, domenica 16 ottobre 2005, [EMAIL PROTECTED] ha scritto:
> Hi, all!
>
> I would like to know if it is possible to develop UNO components in Python
> (using the usual helpers) implementing interfaces in my own IDL files, as
> trivial in e.g. C++. I am using OOo version 1.1.4.
>
> I got to the point of compiling my rdb file, but just packing it together
> with the .py file (which contains the correct import statement) doesn't
> seem to work. The component cannot even be installed because the python
> loader complains that my interface type is not known.

This happens if you're deriving your class from unohelper.Base
If you want to implement interfaces from your own IDL files you must implement 
yourself all methods for all necessary "base" interfaces as well as 
TypeProvider, XServiceName, XServiceInfo.

See for example my PyUno projects:

- PyInLettere (Add-In for Calc)
- PyAnyContainer (generic collection objects for Starbasic developers)

at
http://www.paolo-mantovani.org/

regards
Paolo Mantovani


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

Reply via email to