You are viewing a plain text version of this content. The canonical link for it is here.
Posted to api@openoffice.apache.org by Jürgen Schmidt <jo...@gmail.com> on 2012/12/13 11:34:35 UTC

Re: Single Instance OpenOffice Calc in Listening Mode

On 11/28/12 10:53 PM, Steele, Raymond wrote:
> Is it possible to open a single instance of calc via loadComponentFromURL() in listening mode.  The instructions here, http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Starting_OpenOffice.org_in_Listening_Mode, define editing a Setup.xcu file, but the information here, https://issues.apache.org/ooo/show_bug.cgi?id=117803, says that Setup.xcu no longer exist in version 3.3. Apparently, I could update the main.xcd file, but I only want listening mode when a specific application opens calc because another application will  need to close that instance.  I'd prefer not use a script to launch soffice -accept=socket,host=0,port=2002;urp;.
> 

sorry for the late response, I think the only way to achieve this is by
using the command line parameters.

But starting the same office will delegate parameters to the already
running process. Means if your application start the office in listen
mode it is shared as long as the office is running.

Juergen

RE: EXTERNAL: Re: Single Instance OpenOffice Calc in Listening Mode

Posted by "Steele, Raymond" <ra...@lmco.com>.
Thanks for the response. This is kind of what I thought, but I wanted to confirm. 

Raymond

-----Original Message-----
From: Jürgen Schmidt [mailto:jogischmidt@gmail.com] 
Sent: Thursday, December 13, 2012 3:35 AM
To: api@openoffice.apache.org
Subject: EXTERNAL: Re: Single Instance OpenOffice Calc in Listening Mode

On 11/28/12 10:53 PM, Steele, Raymond wrote:
> Is it possible to open a single instance of calc via loadComponentFromURL() in listening mode.  The instructions here, http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Starting_OpenOffice.org_in_Listening_Mode, define editing a Setup.xcu file, but the information here, https://issues.apache.org/ooo/show_bug.cgi?id=117803, says that Setup.xcu no longer exist in version 3.3. Apparently, I could update the main.xcd file, but I only want listening mode when a specific application opens calc because another application will  need to close that instance.  I'd prefer not use a script to launch soffice -accept=socket,host=0,port=2002;urp;.
> 

sorry for the late response, I think the only way to achieve this is by using the command line parameters.

But starting the same office will delegate parameters to the already running process. Means if your application start the office in listen mode it is shared as long as the office is running.

Juergen