« Return to Thread: How-to extension with Python & NetBeans & .jar

Re: How-to extension with Python & NetBeans & .jar

by Juergen Schmidt-3 :: Rate this Message:

Reply to Author | View in Thread

Jan Holst Jensen wrote:

> Sergio Corato wrote:
>>>> - can I use more than one language in the same .oxt?
>>> yes, in general you can combine all supported languages in one oxt
>>> package.
>>>
>> Sorry, I haven't specified programming languages, like Python &
>> OOoBasic together (or you understood so?)
>
> Hi Sergio.
>
> I am currently developing an extension that uses Python to implement a
> UNO component and I use Basic for the GUI interface (dialogs and
> high-level code), calling into the Python code via UNO interfaces. Works
> fine. Haven't integrated the Basic parts into the .oxt yet (the Python
> stuff is there) but I don't expect it to present problems. If I get into
> trouble then you will sure see me asking about it here :-).
i would use only the dialog editor to design the dialogs and export the
xdl files. Use the DialogProvider2 to instantiate a dialog based on the
exported xdl etc.

It's probably the better approach when your logic is the component and
in Python anyway. And of course you hide the dialog library and use it
in your extension only.

Well both ways are possible but i prefer the later one ;-)

Juergen



>
> A shameless plug for the Python-based Calc extension example that I did:
>
> http://wiki.services.openoffice.org/wiki/Calc/Add-In/Python_How-To
>
> Cheers
> -- Jan Holst Jensen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: How-to extension with Python & NetBeans & .jar