summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-01-15 17:54:52 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-05-04 11:55:36 +0200
commiteca5e17c62a04fc941ca237799fd6e931be87308 (patch)
treef7ab150724753d2c16e3f7c77487143f91260df2 /solenv
parent072af1b01c783b4ee7c9005ac2c15355e8a2f74d (diff)
DOCX import: improve support for headers/footers from cont sect break
A continuous section break in a DOCX file can set new headers/footers which start appearing from the next page. In general, this is not something Writer supports, but commit 08f13ab85b5c65b5dc8adfa15918fb3e426fcc3c (tdf#112202 writerfilter,sw: fix loss of headers, 2019-12-16) improved the situation significantly here. Build on top of that and add support for a few more cases: 1) When checking for the last paragraph of the previous section, detect when that last paragraph is so small so in practice that's not the last one. 2) Handle when the text node in question has no explicit break type set, only a SwFormatPageDesc (which implicitly causes a page break). 3) When setting the page style to show the correct header/footer, don't set the page style on the previous paragraph directly, rather update the "next style" of the already set page style. (This is safe, as we never reuse the same Writer page style for multiple Word sections.) Change-Id: Iede196b864af5123c5637f82432ed6e0f7e7241a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86870 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins (cherry picked from commit 9a50e8f2bcde95233e4b38707c521ada90fcd6af)
Diffstat (limited to 'solenv')
0 files changed, 0 insertions, 0 deletions