diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-05-10 20:39:12 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-05-11 18:06:02 +0200 |
commit | 1a88efa8e02a6d765dab13c7110443bb9e6acecf (patch) | |
tree | fcefc280189d41ff6b6277017232085bfe334743 /xmloff/source/core | |
parent | abd630e81bc150d05e4129cc22752ecf461777c7 (diff) |
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'xmloff/source/core')
-rw-r--r-- | xmloff/source/core/xmltoken.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx index e0189451803b..b35fa86b9ef3 100644 --- a/xmloff/source/core/xmltoken.cxx +++ b/xmloff/source/core/xmltoken.cxx @@ -1222,6 +1222,7 @@ namespace xmloff::token { TOKEN( "linked-cell", XML_LINKED_CELL ), TOKEN( "link-to-source-data", XML_LINK_TO_SOURCE_DATA ), TOKEN( "list", XML_LIST ), + TOKEN( "marker-style-name", XML_MARKER_STYLE_NAME ), TOKEN( "list-block", XML_LIST_BLOCK ), TOKEN( "list-header", XML_LIST_HEADER ), TOKEN( "list-info", XML_LIST_INFO ), |