Hi Javier, On Wed, Apr 27, 2005 at 09:05:30 +0700, Javier SOLA wrote:
> [... FormatElement usage ...] > > If I understand well what you have told me, I could add some more > formats here, of the type: Yes, you can add format codes. But the formatindex=... values from 0..49 are reserved and must not be reused for other purposes than lined out in the locale.dtd, the following would use duplicated formatindex values (6 and 7) that would not be correct. > <FormatElement msgid="FixedFormatskey7" default="false" type="medium" > usage="FIXED_NUMBER" formatindex="6"> > <FormatCode>[NatNum1]General</FormatCode> > <DefaultName></DefaultName> > <FormatElement msgid="FixedFormatskey8" default="false" type="medium" > usage="FIXED_NUMBER" formatindex="7"> > <FormatCode>[NatNum1]#.###,00</FormatCode> > <DefaultName></DefaultName> > . > . > . > > And maybe I could even do something so that not all the mandatory > formats show in the cell-->format-->number--> menu of available format > options (again, would this create any problems?) You can't suppress defined formats from showing up in the dialog. But you could even redefine the reserved format codes to use [NatNum1], however, it might not be a good idea to do that in the formatindex="0" format, as the >General< keyword which is defined there may get reused in other subformats under certain conditions, I'm not sure whether prefixing it with some [NatNum1] could have any negative impact somewhere, I would have to read the code again. > The same could apply to date and curency formats, right? Yes. Be sure that the constraints lined out in the locale.dtd regarding the editable date format and such still apply. Eike -- OOo/SO Calc core developer. Number formatter bedevilled I18N transpositionizer. GnuPG key 0x293C05FD: 997A 4C60 CE41 0149 0DB3 9E96 2F1A D073 293C 05FD --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]