From koffice Fri Oct 26 06:07:42 2001 From: Laurent Montel Date: Fri, 26 Oct 2001 06:07:42 +0000 To: koffice Subject: Re: how can I add some functions to kspread? X-MARC-Message: https://marc.info/?l=koffice&m=100407651005317 Le Thursday 25 October 2001 21:38, Dietmar Frohböse a écrit : > Hi, > Hi, > I want to do add some functions to kspread dealing with dates (and > time). (e.g. calculation interest days in some kinds) > > Who is already working on this topic? I work on this topic. > > What can I do, if I have a request to change an existing function > currentDate()? > // now: context.setValue( new > KSValue(KGlobal::locale()->formatDate(QDate::currentDate()))); > // request: context.setValue( new KSValue(QDate::currentDate())); // > store internal date as QDate Sorry don't change this function, but create new function. go to kspread_interpreter.cc, and create function document in extension/builtin.xml, and send me your patch. > > greetings > > Dietmar Frohböse Regards