diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2019-09-04 12:27:52 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-09-05 10:18:12 +0200 |
commit | 1f6b7030cbdc81e8e408e3a13bfcd01fcbdd7550 (patch) | |
tree | 4e7fc97a373ce2825a0e0d79fe025a9c67f62c7c /external | |
parent | 276156a882fb5bd5a60411f636ce76f6e46f7bc7 (diff) |
tdf#95848 sw: DOCX export: crude implementation of abstractNum mapping
The abstractNum needs to correspond to a SwList, not to a SwNumRule as
it is currently implemented.
Add a mapping to MSWordExportBase for "overriding" numbering
definitions; these are added to m_pUsedNumTable, which appears to be
necessary to interact with DuplicateNumRule(), but here we just add
nullpointers, because we don't need to modify the SwNumrule, and neither
do we want the vector to double-delete it.
The mapping is created while iterating over the document, in
AttributeOutputBase::ParaNumRule().
It turns out that this approach would work for WW8 too as
DuplicateNumRule() was originally added for that format but it won't
work easily for RTF; in the DOCX case the WriteNumbering() is called
after the main text and footnotes/endnotes, but with RTF it's the
other way around :(
Change-Id: Ia0409f5ad0b2e089005024ef7f61850a06d4dcbe
Reviewed-on: https://gerrit.libreoffice.org/78607
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'external')
0 files changed, 0 insertions, 0 deletions