Re: [api-dev] OOoBean: possible Bug with OOoBean.loadFromURL()

2009-10-29 Thread Stephan Bergmann
On 10/29/09 14:59, Steffen Boersig wrote: I didn't know if loadFromURL can handle E:/Test.ods as well since my converting function adds file:/// and gets rid of backslashes to get a valid file URL ( file:///E:/Test.ods ). But tested it and at least there it throws an error and does not open in

Re: [api-dev] OOoBean: possible Bug with OOoBean.loadFromURL()

2009-10-29 Thread Steffen Boersig
Stephan Bergmann schrieb: is not a valid URL to denote Windows pathname E:\Test.ods ( would be correct). I vaguely remember that the implementation of loadComponentFromURL indeed does somewhat strange things upon such invalid input (which would explain the read-only status; maybe there is al

Re: [api-dev] OOoBean: possible Bug with OOoBean.loadFromURL()

2009-10-29 Thread Stephan Bergmann
On 10/29/09 13:14, Steffen Boersig wrote: If I'm changing the code to //fileURL = E:\Test.ods String fileURL = file.getAbsolutePath(); URL = file:/// + fileURL; try { PropertyValue[] loadProperties = new PropertyValue[1];

Re: [api-dev] OOoBean: possible Bug with OOoBean.loadFromURL()

2009-10-29 Thread Juergen Schmidt
Hi Steffen, it is no specific problem of the bean. The bean calls internally loadComponentFromURL(...) and there is no difference. The behaviour sounds indeed strange and maybe somebody can comment it. Anyway using a valid and correct Url is always a good idea. Juergen Steffen Boersig wrot

[api-dev] OOoBean: possible Bug with OOoBean.loadFromURL()

2009-10-29 Thread Steffen Boersig
Hey guys, OOoBean.loadFromURL() is acting strange for different URL formats. //fileURL = E:\Test.ods String fileURL = file.getAbsolutePath(); URL = Tools.convertToFileURL(fileURL); try { PropertyValue[] loadProperties = new Pr

Re: [api-dev] BASIC: Change toolbar button icon ?

2009-10-29 Thread Fernand Vanrie
Carsten, Thanks for this cool peace of code, very usefull ! But :-) My button installs fine but the macro behind the button (located in a document) is not working, i supose there is something wrong with the commandUIRL The test() macro is located in a document in a "Toolbarlib" Library, in

Re: [api-dev] Bootstrap OpenOffice on a Mac

2009-10-29 Thread Juergen Schmidt
Hi Daniel, it is a known problem on the Mac and the InstallationFinder have to be extended for some Mac specific code. But we simply forgot it.-( Feel free to submit an issue for this problem. Juergen Daniel Käfer wrote: Hello, I am trying to bootstrap OpenOffice on a Mac (with Java). On

[api-dev] Bootstrap OpenOffice on a Mac

2009-10-29 Thread Daniel Käfer
Hello, I am trying to bootstrap OpenOffice on a Mac (with Java). On Linux it works perfect. On the Mac appear the Error "no office executable found!" I looked at the Source from InstallationFinder.java (from the Netbeans Plugin) and found no special code for Mac. Should this work on a Mac o

Re: [api-dev] Optional Parameters in NetBeans

2009-10-29 Thread Irné Barnard
Juergen Schmidt wrote: i tried it with a OOo 3.1.1 and a development build dev300m61. Both works as expected. Have you used the NB plugin wizard to create your project? How does your CalcAddins.xcu looks like? Well i have no real idea what's going wrong in your case. Juergen Thanks, I'v

Re: [api-dev] BASIC: Change toolbar button icon ?

2009-10-29 Thread Paolo Mantovani
Hello Carsten, Just for let you know that almost all your posts in d...@api are labeled as "important" in my local archive :-) Thanks for sharing. Keep it up!! ciao Paolo M Carsten Driesner ha scritto: > Jan Holst Jensen wrote: >> Hi all. >> >> I am trying to emulate a togglebutton/checkbox in a

Re: [api-dev] BASIC: Change toolbar button icon ?

2009-10-29 Thread Carsten Driesner
Jan Holst Jensen wrote: Hi all. I am trying to emulate a togglebutton/checkbox in a custom toolbar. Right now I have settled for having two toolbar buttons with different icons. Only one of them is visible and when it's pressed it toggles the visibility of both buttons using the code below (w

Re: [api-dev] Possible bug with MySQL and OOo ResultSet

2009-10-29 Thread Alex Thurgood
Hi Frank, Sergio, It would appear that the 3.51 ODBC driver only supports dynamic cursors in FORWARD_ONLY and STATIC modes if this page is correct : http://www.verbose.fr/mysql_5.0/mysql-connectors.html 25.1.14.2. Est-ce que MyODBC accepte les curseurs dynamiques? Oui. MyODBC 3.51 supporte le

Re: [api-dev] Possible bug with MySQL and OOo ResultSet

2009-10-29 Thread Frank Schoenheit, Sun Microsystems Germany
Hi Sergio, > oStmt = oConn.createStatement() > oStmt.setPropertyValue("ResultSetType", > com.sun.star.sdbc.ResultSetType.SCROLL_INSENSITIVE) > oStmt.setPropertyValue("ResultSetConcurrency", > com.sun.star.sdbc.ResultSetConcurrency.READ_ONLY) > oRs = oStmt.executeQuery(sql_string) > oRs.next > c