How-to extension with Python & NetBeans & .jar

View: New views
5 Messages — Rating Filter:   Alert me  

How-to extension with Python & NetBeans & .jar

by Sergio Corato :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Although I'm a beginner, I'm planning to make an extension and, as I'm
willing to study hard, I would know if I am in a wrong direction.

The extension will provide some little functionality to manage a
warehouse and do invoice, adding some CRM functions.

I'd like to use this software:
- NetBeans
- Python
- jar libraries (ODFDOM)
- MySQL

I have some questions:
- can I use Python and jar libraries together?
- is it correct to use the OpenOffice.org Client Application of OO.o
plugin for NetBeans?
- can I use more than one language in the same .oxt?

Thanks all and sorry for my bad english.
Sergio

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


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

by Juergen Schmidt-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Sergio,

Sergio Corato wrote:

> Although I'm a beginner, I'm planning to make an extension and, as I'm
> willing to study hard, I would know if I am in a wrong direction.
>
> The extension will provide some little functionality to manage a
> warehouse and do invoice, adding some CRM functions.
>
> I'd like to use this software:
> - NetBeans
> - Python
> - jar libraries (ODFDOM)
> - MySQL
>
> I have some questions:
> - can I use Python and jar libraries together?
yes, it should be possible in some way but i never tried it on my own.

> - is it correct to use the OpenOffice.org Client Application of OO.o
> plugin for NetBeans?
no or better it depends what exactly you want to achieve. If you want to
integrate your stuff in some way in the office directly you need an
add-on or a general UNO component project. The OOo API plugin supports
Java only at the moment.

In case of odfdom you don't need an office, the NB OOo API plugin or the
office API. If you plan to generate documents standalone without further
office interaction you need only a Python or Java project and the odfdom
jars.


> - can I use more than one language in the same .oxt?
yes, in general you can combine all supported languages in one oxt package.


I hope this helps a little bit. Otherwise feel free to ask again.

Juergen

>
> Thanks all and sorry for my bad english.
> Sergio
>
> ---------------------------------------------------------------------
> 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@...


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

by Sergio Corato :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Juergen Schmidt ha scritto:
> Hi Sergio,
>
Thank you very much for your response,
> 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?)
>
> I hope this helps a little bit. Otherwise feel free to ask again.
>
> Juergen
>
>
It helps!
Sergio

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


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

by Jan Holst Jensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 :-).

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@...


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

by Juergen Schmidt-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...