Hi Andrea,
i would suggest that you use our NB plugin to create a new simple Calc
Add-in. Take a look into the generated code. We generate a xcu file
where the add-in function is defined also and where you can directly
manage localized strings for the function and parameter names as well as
for descriptions. And when you take a look at the generated skeleton you
will notice that code becomes much simpler ...
The IDL can be seen as an necessary implementation detail to invoke the
the function later on easily and independent of the used programming
language ...
I agree that there is still some redundancy but i think it's much
simpler as before. First of all when you use our plugin ;-) A further
advantage is that we can read the info about new add-in function without
loading the whole component.
Juergen
Andrea wrote:
Hi,
I've create a calc addin.
I would like to get the names of the arguments of my functions directly from
the idl files.
I don't want to rewrite the same information in getDisplayArgumentName
The information is definitely present in the idl
method 1:
documentation: ""
flags: synchronous
name: "projection"
return type name: "[][]double"
parameter count: 3
parameter 0:
flags: in
name: "x"
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< argument 1
type name: "[][]double"
parameter 1:
flags: in
name: "a"
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< argument 2
type name: "[][]double"
parameter 2:
flags: in
name: "b"
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< argument 3
type name: "[][]double"
Which is the same place where Openoffice gets the function name from.
Any idea?
Andrea
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]