A Word comment whose w:commentReference sits inside <m:oMath> was lost on
DOCX import: OOXMLFastContextHandlerLinear/Math buffers every child of the
formula and never routes commentReference to handleComment, so comments.xml
was never resolved and no annotation was created.
Intercept w:commentReference in OOXMLFastContextHandlerLinear: collect its
id and resolve it via the existing resolveComment() path once the formula
object has been emitted (in OOXMLFastContextHandlerMath::process). The tag
is never buffered into the formula, so the Starmath buffer stays balanced
and formula import is unaffected.
Signed-off-by: Dmitry Kulikov <dkul@altlinux.org>
Change-Id: I9b0dccc79d5a7da9294b18f0cb58776a2bd8b553
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207888
Tested-by: Jenkins
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Problem: the number format language of a date field was not written to
DOCX, so on reload the month name fell back to the paragraph language.
Two date fields of different languages in one paragraph then collapsed
to a single locale.
Fix: on export write the field's number-format locale as the run's
w:lang; on import take the locale from the field's own run instead of
the paragraph default.
Signed-off-by: Dmitry Kulikov <dkul@altlinux.org>
Change-Id: Ie0c76b9d421b7340349011641f5fbb9be6792641
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208515
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>