summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2018-12-14 11:28:45 +0300
committerMiklos Vajna <vmiklos@collabora.com>2018-12-21 10:54:26 +0100
commit4ce06f8d162a282025cefe14e5684f82e439e01c (patch)
treeba9f462539b44a7904f57d1a63365883b89dc8da /hwpfilter
parentde3c85928c2df1347a93fc7051b73012f87c8bd6 (diff)
sw ooxmlexport: export non-continuous section breaks
I'm amazed at how poorly DOCX section breaks were exported. This is really hard code to understand - jumping around all over, and shared between totally different doc/rtf/docx implementations. This change only affects docx, since .doc SectionBreaks is empty and RTF does nothing in the case of .IsSectionNode(). I THINK that sectionbreaksandframes does this job for DOC (which is empty for DOCX) and RTF does things very differently, so no possibility to piggy-back on existing code. In any case, after a section node, there was NOTHING that looked at the first text node to see if there was a RES_PAGEDESC or a RES_BREAK, so these page breaks were being completely ignored. It took a few days to figure out this very simple solution. A followup commit will fix the import when the follow page is a different orientation. Change-Id: I774e3e64cac9e2d26fdbeb1484266ebb44fac114 Reviewed-on: https://gerrit.libreoffice.org/65155 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'hwpfilter')
0 files changed, 0 insertions, 0 deletions