From 1a88efa8e02a6d765dab13c7110443bb9e6acecf Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Wed, 10 May 2023 20:39:12 +0300 Subject: tdf#155238: Reimplement how ListAutoFormat is stored to ODF This reimplements commits 6249858a8972aef077e0249bd93cfe8f01bce4d6 (sw: ODT import/export of DOCX's paragraph marker formatting, 2022-12-19) and 209dce614c43f63f63f5b42a746665c0ec1cbfe3 (sw: fix ODT import of paragraph marker formatting, 2022-12-20). Instead of using an empty trailing span for the ListAutoFormat data, introduce a new loext:marker-style-name attribute for text:p element, referencing a text autostyle. The problems with the previous implementation were that (1) it was impossible (or very difficult) to disambiguate several empty trailing spans, in case it was needed; and (2) this was incompatible change, with other ODF implementations treating the trailing span normally. I couldn't manage to incorporate the attribute to paragraph autostyle, because of problems referencing different autostyles one from another, so put it directly to the paragraph attributes. Change-Id: I33473147f1f774c24cbbc57bf0c4f3a1d83ce5bc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151645 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- xmloff/inc/xmlprop.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'xmloff/inc') diff --git a/xmloff/inc/xmlprop.hxx b/xmloff/inc/xmlprop.hxx index b93bf926e569..e2968b688e2c 100644 --- a/xmloff/inc/xmlprop.hxx +++ b/xmloff/inc/xmlprop.hxx @@ -428,6 +428,7 @@ inline constexpr OUStringLiteral PROP_LineTransparence = u"LineTransparence"; inline constexpr OUStringLiteral PROP_LineWidth = u"LineWidth"; inline constexpr OUStringLiteral PROP_Lines = u"Lines"; inline constexpr OUStringLiteral PROP_LinkNumberFormatToSource = u"LinkNumberFormatToSource"; +inline constexpr OUStringLiteral PROP_ListAutoFormat = u"ListAutoFormat"; inline constexpr OUStringLiteral PROP_Logarithmic = u"Logarithmic"; inline constexpr OUStringLiteral PROP_MajorOrigin = u"MajorOrigin"; inline constexpr OUStringLiteral PROP_MarkPosition = u"MarkPosition"; -- cgit