Re: [api-dev] Re: installing ooSetupConnectionURL through UNO package

2006-11-02 Thread Matthias B.

On 11/1/06, Knut Olav Bøhmer [EMAIL PROTECTED] wrote:

Hi is it possible to make a uno package that can be installed or
uninsulated with unopkg, and installs:

prop oor:name=ooSetupConnectionURL oor:type=xs:string
   valuesocket,host=localhost,port=2002;urp;/value
/prop



I wonder if you are aware that this change is not required for
connecting to OpenOffice, at least from a Java program.

Matthias

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



Re: [api-dev] Re: installing ooSetupConnectionURL through UNO package

2006-11-02 Thread Knut Olav Bøhmer

Yes,
we have our own wrapper program that acts as a bridge between  our
application and OpenOffice.org. But maybe we can remove that part also
at some point. I have not looked in to that so I don't know what it's
doing at all. But I think it recievs DDE (windows) requests from the
application, and kicks off the correct macro in OpenOffice.org. Maybe
the only thing we need to do is make OpenOffice.org listen for DDE
requests.

On 11/2/06, Matthias B. [EMAIL PROTECTED] wrote:

On 11/1/06, Knut Olav Bøhmer [EMAIL PROTECTED] wrote:
 Hi is it possible to make a uno package that can be installed or
 uninsulated with unopkg, and installs:

 prop oor:name=ooSetupConnectionURL oor:type=xs:string
valuesocket,host=localhost,port=2002;urp;/value
 /prop


I wonder if you are aware that this change is not required for
connecting to OpenOffice, at least from a Java program.

Matthias

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





--
Knut Olav Bøhmer

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



[api-dev] Re: installing ooSetupConnectionURL through UNO package

2006-11-01 Thread Knut Olav Bøhmer

Hi is it possible to make a uno package that can be installed or
uninsulated with unopkg, and installs:

prop oor:name=ooSetupConnectionURL oor:type=xs:string
  valuesocket,host=localhost,port=2002;urp;/value
/prop

Under node oor:name=Office/
in the file: OfficePath/share/registry/data/org/openoffice/Setup.xcu

Or do something that gives the same effect.

--
Knut Olav Bøhmer

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



Re: [api-dev] Re: installing ooSetupConnectionURL through UNO package

2006-11-01 Thread Tabish F. Mufti

Just few days back Tobias on the mailing list referred me to the following
link for package installation. You might wanna look at it as well. It helped
me like anything.

http://kingyo.tutms.tut.ac.jp/~toshi/StarSuite/Chap4/http://kingyo.tutms.tut.ac.jp/%7Etoshi/StarSuite/Chap4/

By the way what are you trying to do ?

On 11/1/06, Knut Olav Bøhmer [EMAIL PROTECTED] wrote:


Hi is it possible to make a uno package that can be installed or
uninsulated with unopkg, and installs:

prop oor:name=ooSetupConnectionURL oor:type=xs:string
   valuesocket,host=localhost,port=2002;urp;/value
/prop

Under node oor:name=Office/
in the file: OfficePath/share/registry/data/org/openoffice/Setup.xcu

Or do something that gives the same effect.

--
Knut Olav Bøhmer

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




Re: [api-dev] Re: installing ooSetupConnectionURL through UNO package

2006-11-01 Thread Knut Olav Bøhmer

On 11/1/06, Tabish F. Mufti [EMAIL PROTECTED] wrote:

Just few days back Tobias on the mailing list referred me to the following
link for package installation. You might wanna look at it as well. It helped
me like anything.

http://kingyo.tutms.tut.ac.jp/~toshi/StarSuite/Chap4/http://kingyo.tutms.tut.ac.jp/%7Etoshi/StarSuite/Chap4/


I did not find anything that helped me there. Maybe there is something
that I don't understand..


By the way what are you trying to do ?



I'm trying to modify /share/registry/data/org/openoffice/Setup.xcu
from a unopkg.

--
Knut Olav Bøhmer

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



Re: [api-dev] Re: installing ooSetupConnectionURL through UNO package

2006-11-01 Thread Marc Santhoff
Am Mittwoch, den 01.11.2006, 14:29 +0100 schrieb Knut Olav Bøhmer:
 On 11/1/06, Tabish F. Mufti [EMAIL PROTECTED] wrote:
  Just few days back Tobias on the mailing list referred me to the following
  link for package installation. You might wanna look at it as well. It helped
  me like anything.
 
  http://kingyo.tutms.tut.ac.jp/~toshi/StarSuite/Chap4/http://kingyo.tutms.tut.ac.jp/%7Etoshi/StarSuite/Chap4/
 
 I did not find anything that helped me there. Maybe there is something
 that I don't understand..
 
  By the way what are you trying to do ?
 
 
 I'm trying to modify /share/registry/data/org/openoffice/Setup.xcu
 from a unopkg.

If you don't mind translating some BASIC to the language of your choice
(and fiddle the node path into shape ;), here is an example:

sub testConfig
Dim aNodePath(0) as new com.sun.star.beans.PropertyValue

Globalscope.BasicLibraries.Loadlibrary(Tools)

oConfigProvider = 
createUnoService(com.sun.star.configuration.ConfigurationProvider)
aNodePath(0).Name = nodepath
aNodePath(0).Value = org.openoffice.Office.Calc/Layout'/Line
Cnf_zweig = 
oConfigProvider.createInstanceWithArguments(com.sun.star.configuration.ConfigurationUpdateAccess,
 aNodePath())

Wert = Cnf_zweig.getByName(Line)
ShowPropertyValues(Wert)

Wert.GridLine = FALSE
Cnf_zweig.commitChanges

end sub

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



Re: [api-dev] Re: installing ooSetupConnectionURL through UNO package

2006-11-01 Thread Mathias Bauer
Knut Olav Bøhmer wrote:

 Hi is it possible to make a uno package that can be installed or
 uninsulated with unopkg, and installs:
 
 prop oor:name=ooSetupConnectionURL oor:type=xs:string
valuesocket,host=localhost,port=2002;urp;/value
 /prop
 
 Under node oor:name=Office/
 in the file: OfficePath/share/registry/data/org/openoffice/Setup.xcu
 
 Or do something that gives the same effect.

Yes, that's possible. Create a Setup.xcu files containing all necessary
data (see below), put it into a zip file and install it with pckchk.exe.
Or better (but more work) make it a .uno.pkg file and install it with
unopkg.exe. In both cases you can decide to install it per user or for
all users of that installation.

Without guarantee (not tested) the Setup.xcu file should be:

 ?xml version=1.0 encoding=UTF-8?
 oor:component-data xmlns:oor=http://openoffice.org/2001/registry; 
 xmlns:xs=http://www.w3.org/2001/XMLSchema; oor:name=Setup 
 oor:package=org.openoffice
  node oor:name=Office
   prop oor:name=ooSetupConnectionURL oor:type=xs:string
   prop oor:name= oor:type=xs:string
valuesocket,host=localhost,port=2002;urp;/value
   /prop
  /node
 /oor:component-data

(qoute signs used as they prevent line wrapping.)

Ciao,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.

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