I did a function in LibreOffice calc. It works, but I would like to have a conext help/tip capability, like the built in LibreOffice functions.
Example: when I type "=besselk(" it appaears a tip BESSELK(X; N). Using the function wizard a function and arguments description does also appear. Besselk besselk
Let's say I have a function to calculte a rectangle area
function arearect(a, b)
arearect = a * b
end function
I would like to have something like this:
function arearect(a, b)
FUNCTION DESCRIPTION "Compute rectangle area"
ARGUMENT DESCRIPTION "base length"
ARGUMENT DESCRIPTION "height"
arearect = a * b
end function
so, when I type "=arearect(" the argument description would appear and all descriptors would appear on Function Wizard.
thanks
Create the user-defined function as a Spreadsheet Add-In. Then enter the help text in the
Description
node in the .xcu file that defines the add-in.For example, I created a function called REVERSE. Here is my CalcAddIns.xcu file:
An Add-In also requires some other files. Here is my XCalcFunctions.idl:
The actual implementation was simple. I used python:
The result:
EDIT:
There is another piece in Components.py for my extension:
The file is declared in manifest.xml:
The complete extension: https://extensions.libreoffice.org/extensions/lingtools.