Re: Need help in getting the design right with Openoffice.org

2012-12-19 Thread Alexandro Colorado
You can do an add-on that open a socket and read the data from your
application. There are some tutorials on doing this on the development
guide.

Although not very secure, this tutorial tells you the basic of a listener
or deamon that would receive commands from external applications
http://wiki.openoffice.org/wiki/Deamon_in_Python

Although old this is a tutorial on how it works:
http://www.linuxjournal.com/content/starting-stopping-and-connecting-openoffice-python

On Thu, Dec 20, 2012 at 12:33 AM, Shukla, Mangesh <
mangesh.shu...@siemens.com> wrote:

> Hi ,
> I am new to OpenOffice development and need some ideas on the
> following implementation.   I am working on an C++ application which needs
> to interact with OpenOffice.org. The interaction will comprise of
> populating data in the spreadsheet application. The Calc application is
> intended to be used as UI for displaying values to the user, and allowing
> him to make changes. This interaction between the C++ application is
> required on Windows, Linux and Mac as well.
>
> I have the following questions:
> 1] I think I need to implement a UNO component which will implement a
> service to handle the interactions with the OpenOffice Calc application.
> This UNO component will be compiled as a shared library. My question is how
> does a C++ application interact with the shared library of the component.
>
> 2] I also need inputs on how I can pass function pointers (in the C++
> application) during the Add-On menu creation, so that they get called when
> the user clicks on the Add-on menu items.
>
> Please let me know if you need more inputs.
>
> Thanks,
> Mangesh.
>
>


-- 
Alexandro Colorado
Apache OpenOffice Contributor
http://es.openoffice.org


Need help in getting the design right with Openoffice.org

2012-12-19 Thread Shukla, Mangesh
Hi ,
I am new to OpenOffice development and need some ideas on the following 
implementation.   I am working on an C++ application which needs to interact 
with OpenOffice.org. The interaction will comprise of populating data in the 
spreadsheet application. The Calc application is intended to be used as UI for 
displaying values to the user, and allowing him to make changes. This 
interaction between the C++ application is required on Windows, Linux and Mac 
as well.

I have the following questions:
1] I think I need to implement a UNO component which will implement a service 
to handle the interactions with the OpenOffice Calc application. This UNO 
component will be compiled as a shared library. My question is how does a C++ 
application interact with the shared library of the component.

2] I also need inputs on how I can pass function pointers (in the C++ 
application) during the Add-On menu creation, so that they get called when the 
user clicks on the Add-on menu items.

Please let me know if you need more inputs.

Thanks,
Mangesh.