I am writing custom functions in LibreOffice Calc. Such functions must be called in Calc as if they were native functions,
e.g. as
EDATE()
,DAYS()
etc.
Upto now what I am doing for each custom function is:
- Define a Python function
- Define a StarBasic function which invokes its Python correspondant
- Call StarBasic function from Calc.
It works, but it is quite impractical to write each function in two languages.
My question is: is it possible to write such kind of functions directly in Python ? Do you have any reference to share ?