Re: [dev] UNO IDL and java.util.Date

2005-05-30 Thread Jürgen Schmidt
Ary Junior wrote: Hi Kohei Yoshida, if I try to declare the date argument date as a com.sun.star.util.Date like this: (In my .idl file) string test(...[in] com::sun::start::util::Date date, ...); (In my Java class implementation) public String test(... com.sun.star.util.Date date, ...) {... M

Re: [dev] UNO IDL and java.util.Date

2005-05-30 Thread Niklas Nebel
Kohei Yoshida wrote: Now, as Niklas said, a date value is just a number of days since the "NullDate", and this "NullDate" thingy is not guaranteed to be a constant forever between different versions of OO.o. So, you need to first get this value from your com.sun.star.sheet.SpreadsheetDocument ob

Re: [dev] UNO IDL and java.util.Date

2005-05-30 Thread Niklas Nebel
Ary Junior wrote: public String test(com.sun.star.beans.XPropertySet xOptions, double date) { try { Date d = (Date)xOptions.getPropertyValue("NullDate"); return "The 'nullDate' is: "+d.Year+"-"+d.Month+"-"+d.Day+", and the value is:"+String.valueOf(date);

Re: [dev] UNO IDL and java.util.Date

2005-05-27 Thread Kohei Yoshida
On 5/27/05, Ary Junior <[EMAIL PROTECTED]> wrote: > Hi Kohei Yoshida, if I try to declare the date argument date as a > com.sun.star.util.Date like this: > > (In my .idl file) > string test(...[in] com::sun::start::util::Date date, ...); This should probably be string test(...[in] double date, ..

Re: [dev] UNO IDL and java.util.Date

2005-05-27 Thread Ary Junior
Hi Kohei Yoshida, if I try to declare the date argument date as a com.sun.star.util.Date like this: (In my .idl file) string test(...[in] com::sun::start::util::Date date, ...); (In my Java class implementation) public String test(... com.sun.star.util.Date date, ...) {... My function don't ap

Re: [dev] UNO IDL and java.util.Date

2005-05-27 Thread Ary Junior
Hi Niklas, see the code below: public String test(com.sun.star.beans.XPropertySet xOptions, double date) { try { Date d = (Date)xOptions.getPropertyValue("NullDate"); return "The 'nullDate' is: "+d.Year+"-"+d.Month+"-"+d.Day+", and the value is:"+String.valueOf(

Re: [dev] UNO IDL and java.util.Date

2005-05-27 Thread Kohei Yoshida
On 5/27/05, Ary Junior <[EMAIL PROTECTED]> wrote: > Hello, I have a Spreadsheet cell formated with the date type. I'm > implementing a add-in function with Java and this function have an > java.util.Date argument. Whitch UNO IDL type I can use to map this > argument and send the data value of the c

Re: [dev] UNO IDL and java.util.Date

2005-05-27 Thread Niklas Nebel
Ary Junior wrote: Hello, I have a Spreadsheet cell formated with the date type. I'm implementing a add-in function with Java and this function have an java.util.Date argument. Whitch UNO IDL type I can use to map this argument and send the data value of the cell to my function as a java.util.D

[dev] UNO IDL and java.util.Date

2005-05-27 Thread Ary Junior
Hello, I have a Spreadsheet cell formated with the date type. I'm implementing a add-in function with Java and this function have an java.util.Date argument. Whitch UNO IDL type I can use to map this argument and send the data value of the cell to my function as a java.util.Date? []s Ary Jun