diff options
author | Eike Rathke <erack@redhat.com> | 2013-06-15 16:27:05 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-06-15 16:40:00 +0200 |
commit | e7d73b42bd71aaab862c3e519348507a84f74754 (patch) | |
tree | 76e4f43580eb98afaed07a05b835657bc0faaa16 /include | |
parent | prevent increase indent from running outside the cell (diff) | |
download | core-e7d73b42bd71aaab862c3e519348507a84f74754.tar.gz core-e7d73b42bd71aaab862c3e519348507a84f74754.zip |
use proper offset for additional locale data formats, fdo#64947 related
Old number formats had predefined formats from 0..49, locale data could
define additional formats from index 50 on. Internal (fractional)
formats were added to the number formatter, shifting the number of
predefined entries NF_INDEX_TABLE_ENTRIES by two that was also used as
an offset to determine whether a format needed to be added additionally.
As a consequece, formats defined with index values 50 and 51 in locale
data were ignored and not available in the dialog.
Introduced a new enum constant NF_INDEX_TABLE_LOCALE_DATA_DEFAULTS to
use as the old offset value for not having to change all locale data
definitions everytime an internally generated format is added.
Change-Id: I94bdaabf360f7b9c253b1e3f5b73087f0c45fb44
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/zforlist.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx index a18f8f25dac0..311e01369ad5 100644 --- a/include/svl/zforlist.hxx +++ b/include/svl/zforlist.hxx @@ -176,10 +176,12 @@ enum NfIndexTableOffset NF_BOOLEAN, // BOOLEAN NF_TEXT, // @ + NF_INDEX_TABLE_LOCALE_DATA_DEFAULTS, // old number of predefined entries, locale data additions start after this + // From here on are values of new built-in formats that are not in the // original NumberFormatIndex.idl - NF_FRACTION_3, // # ?/4 + NF_FRACTION_3 = NF_INDEX_TABLE_LOCALE_DATA_DEFAULTS, // # ?/4 NF_FRACTION_4, // # ?/100 NF_INDEX_TABLE_ENTRIES |