summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-03-20 17:54:02 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-04-06 13:46:35 +0200
commitaf32de21ade9d6d3b7a92f5988b4c8074489be14 (patch)
tree214cab8546cd3de0fc49ce435c4cdee232eb4b37 /sw/source
parent0cb3cde0a8aec707e40400befb8d70cf0610e432 (diff)
sw pad-to-4 numbering: add DOCX filter
Now that style::NumberingType::ARABIC_ZERO3 is already handled, this is much easier. (cherry picked from commit d7b6269bd5414ca0aa502a2fef7a838bcfbc1161) Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport14.cxx Change-Id: Ibe76d90253a5bfad84560395502590a380d559d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91639 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 9ae8d551668e..126f366943ff 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -6496,6 +6496,10 @@ static OString impl_LevelNFC(sal_uInt16 nNumberingType, const SfxItemSet* pOutSe
aType = "custom";
rFormat = "001, 002, 003, ...";
break;
+ case style::NumberingType::ARABIC_ZERO4:
+ aType = "custom";
+ rFormat = "0001, 0002, 0003, ...";
+ break;
/*
Fallback the rest to decimal.
case style::NumberingType::NATIVE_NUMBERING: