• Justin Luth's avatar
    tdf121374 ooxmlexport: export H/F to default section · 8c8c65c8
    Justin Luth yazdı
    It wouldn't be terrible to duplicate headers/footers
    unnecessarily, but it is terrible to have them disappear.
    If the last SectPr has no idea about the section start,
    it can't know whether it is continuous or started with
    a page break. In that case, just ensure that the
    header and footer are explicitly written out.
    
    This seems to be a DOCX problem only. I think that
    doc and rtf both write the section information at the
    BEGINNING of the section, but DOCX writes it at the END.
    So, sharing code between these two opposite approaches
    is difficult.
    
    A followup commit can try to make it smarter about
    knowing the start of the section (because usually
    pPDNd is zero).
    
    Another followup commit can add the missing page breaks.
    
    Change-Id: Iff54ed097b4f8692d7d7764089002b00fbde4f51
    Reviewed-on: https://gerrit.libreoffice.org/64821
    Tested-by: Jenkins
    Reviewed-by: 's avatarJustin Luth <justin_luth@sil.org>
    Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
    8c8c65c8
CppunitTest_sw_ooxmlexport13.mk 537 Bytes