summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-03-03 15:54:19 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-05-14 11:35:56 +0200
commit7f2fc930474ecc2237d2dc0170d0dddebf7932ba (patch)
treefd7be62e4c2ad5ed396f7ac9068516c3eee65a00 /i18npool
parent2a4e767ea83e49fafb639e66e74403c2ff9270ac (diff)
sw padded numbering: add ODF filter
ODF allows any string as style:num-format="...", go with "01, 02, 03, ...", because that seems to be consistent with both DefaultNumberingProvider::makeNumberingIdentifier()'s fallback mechanism and with OOXML (which uses "001, 002, 003, ..." for the "pad to 3" case). (cherry picked from commit 7a8450c3ecf1a8000cb37981c981fdd55d196df4) Conflicts: sw/qa/extras/odfexport/odfexport.cxx Change-Id: I5c5c7ee5bd61175afc3e682276e69344852106d5
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
index 372837595708..797d7360a283 100644
--- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
+++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
@@ -1039,6 +1039,7 @@ static const Supported_NumberingType aSupportedTypes[] =
{style::NumberingType::CHARS_PERSIAN_WORD, nullptr, LANG_CTL},
{style::NumberingType::CHARS_GREEK_UPPER_LETTER, C_GR_A ", " C_GR_B ", ... (gr)", LANG_ALL},
{style::NumberingType::CHARS_GREEK_LOWER_LETTER, S_GR_A ", " S_GR_B ", ... (gr)", LANG_ALL},
+ {style::NumberingType::ARABIC_ZERO, "01, 02, 03, ...", LANG_ALL},
};
static const sal_Int32 nSupported_NumberingTypes = SAL_N_ELEMENTS(aSupportedTypes);