Hi.

I can add OOo Basic functions to the "Standard" library and use those as sheet functions without problems. Now, when I want to deploy the functions packaged as an extension I run into problems.

As far as I can see an extension (an .oxt package) is not able to install functions into the "Standard" library. At least trying to do so gives me a non-function .oxt package, and of course the proper way is to put my stuff in its own namespace. So I create the "OtherModule" module in the "OtherLibrary" library having this function:

 Function OtherFunc(X As Integer)
   OtherFunc = X * 5
 End Function

But the only way I have been able to access that as a sheet function, e.g. having the following in cell B1

 =OTHERFUNC(A1)

is to add this wrapper function to (one of the modules in) the "Standard" library:

 Function OtherFunc(X As Integer)
   OtherFunc = OtherLibrary.OtherFunc(X)
 End Function

So I am still stuck with modifying the "Standard" library - which I can't seem to do in the process of installing my .oxt file (?). I could actually live with having to add a module to the "Standard" library...

Is there a good solution to this ? Or will I have to use Python or Java instead of OOo Basic to do this (a shame since OOo Basic does the job really nice) ?

Cheers
-- Jan Holst Jensen, Denmark


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to