OFFICE-3776 xmloff: adapt ODF import to renamed text:sender-initials

Desktop / LibreOffice - Michael Stahl [cib.de] - 8 May 2018 17:53 EDT

ODF TC decided to rename the element to meta:creator-initials, so adapt the import so it can read this in addition to the 2 element names produced by current and past LO versions.

Also add a test.

Unfortunately it turned out that the ODF validator had a bug in checking character data in foreign elements, which is triggered by the test document, see https://issues.apache.org/jira/browse/ODFTOOLKIT-475 ... so update the validator jar as well.

Change-Id: I1de1e8772b41f8937f043d9a0d150e169f25ffd4 Reviewed-on: https://gerrit.libreoffice.org/53979

b09889a158cb OFFICE-3776 xmloff: adapt ODF import to renamed text:sender-initials
download.lst | 4 +-
include/xmloff/xmltoken.hxx | 2 +
sw/qa/extras/odfexport/data/sender-initials.fodt | 71 ++++++++++++++++++++++++
sw/qa/extras/odfexport/odfexport.cxx | 20 +++++++
xmloff/source/core/xmltoken.cxx | 2 +
xmloff/source/draw/sdxmlexp.cxx | 1 +
xmloff/source/draw/ximppage.cxx | 6 +-
xmloff/source/text/txtflde.cxx | 1 +
xmloff/source/text/txtfldi.cxx | 10 ++--
xmloff/source/text/txtimp.cxx | 1 +
10 files changed, 110 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share