Writer: extending the integrated calculation function list, eg: ln(x)

I would like to extend the list of integrated calculation functions in Writer. Some very basic functions needed, for example ln(x). I am interested even in SDK solution too, but in this case, please provide your help in a “tutorial for dummies” style. Any Idee?

May I suggest you file an enhancement request on the bug report site?