[sc-dev] Optional argument in Calc Add-in function

2005-07-25 Thread Kohei Yoshida
Hi all,

Here is what I'm trying to do.  I'm trying to create several custom
cell functions via UNO Add-in feature, that is, by creating a UNO
component that supports the com.sun.star.sheet.AddIn service and other
associated interfaces.

All went well, but now I need to make some arguments in some functions
optional, by providing a default value for them.  How do I do that? 
Do I do it in the IDL definition, or in one of those overloaded member
functions of com.sun.star.sheet.XAddIn ?

Thanks,

-- 
Kohei Yoshida
OpenOffice.org Calc contributor
http://kohei.us/ooo/

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



Re: [sc-dev] Optional argument in Calc Add-in function

2005-07-25 Thread Niklas Nebel

Kohei Yoshida wrote:

All went well, but now I need to make some arguments in some functions
optional, by providing a default value for them.  How do I do that? 
Do I do it in the IDL definition, or in one of those overloaded member

functions of com.sun.star.sheet.XAddIn ?


In the IDL. Among an add-in function's allowed types are any for a 
single optional parameter, or sequenceany for varying number of 
parameters. Since any is stated instead of the parameter's type, your 
add-in function must be able to deal with double, string or 
sequence sequence any   parameters passed in that any.


Niklas

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