Hello Irné, On Thursday 22 October 2009, 13:00, Irné Barnard wrote: > > The API specification is that, an specification, and so abstract. But > > it you go > > to the specification for example > > http://api.openoffice.org/docs/common/ref/com/sun/star/util/NumberFormats > >.html you'll find links to the Developer's Guide > > > > http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev > >/Number_Formats > > > > where things are explained in detail (at least on this case) > > > >> It appears to be impossible to add another number format type. > > > > yes, it is possible (but at document level, as stated in the Dev's > > Guide). > > Thanks for the extra info. So you're saying
I'm just saying "go study the Developer's Guide!"... no, just kidding (though hope you study it) > the only way would be to > create a custom format in the ODS file itself? custom number formats are stored inside the document (that's all I know from the Dev's Guide, and AFAIK that hasn't changed) > In which case, does the > extended format also need to be an embedded macro? no, no marco needed; but you need a way to store the format in every OOo document you want to use that format. One way could be to develop a css.task.Job that will be invoked onDocumentOpened (== OnNew + OnLoad), check if the document already has the num. format, and if not then add it. Regards -- Ariel Constenla-Haile La Plata, Argentina --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org