sw pad-to-3 numbering: add DOCX filter

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 19 March 2020 20:28 EDT

There is no NS_ooxml::LN_Value_ST_NumberFormat_foo code for this on the import side, rather the number format code is set to NS_ooxml::LN_Value_ST_NumberFormat_custom, then a separate NS_ooxml::LN_CT_NumFmt_format contains the number format string.

Declare w14 as an XML namespace on the export side, even if we write no elements. This is needed by , which refers to an XML namespace in the OOXML markup. (Interestingly officeotron doesn't check for this, though.)

Change-Id: If5fbcea4f163bd4d1a1ed820e15ceb61dc9c0519 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90761

52ed1091be05 sw pad-to-3 numbering: add DOCX filter
.../ooxmlexport/data/arabic-zero3-numbering.docx | Bin 0 -> 5934 bytes
sw/qa/extras/ooxmlexport/ooxmlexport14.cxx | 13 +++++++++
sw/source/filter/ww8/docxattributeoutput.cxx | 30 ++++++++++++++++++---
sw/source/filter/ww8/docxexport.cxx | 5 +++-
writerfilter/source/dmapper/ConversionHelper.cxx | 12 +++++++++
writerfilter/source/dmapper/ConversionHelper.hxx | 1 +
writerfilter/source/dmapper/NumberingManager.cxx | 25 ++++++++++++++---
writerfilter/source/dmapper/NumberingManager.hxx | 3 +++
8 files changed, 82 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share