• Justin Luth's avatar
    tdf#55427 ww8export: treat document-end-footnotes as endnotes · be6534dc
    Justin Luth yazdı
    MSWord has two choices for footnotes - at page-end or page-bottom.
    LO has different choices for footnotes - at document-end or page-bottom.
    Since document-end footnotes act like endnotes,
    convert those footnotes into endnotes during DOC/DOCX/RTF export.
    
    No matter what happens in this situation, some compromises have to be
    made. The main compromise now is that the anchor numbering for endnotes
    defaults to i,ii,iii while footnotes are 1,2,3. The conversion
    obviously will switch to endnote style. This is user adjustable of course
    and will be retained on following round-trips. Also the (footnote)
    paragraph style is retained, but future endnotes will use a potentially
    different endnote paragraph style.
    
    Remedying those perceived deficiency is left as an exercise
    for the motivated reader, who of course will
    take into account the possibility of both endnotes and
    chapter-end footnotes existing in the same document...
    
    The unit tests' primary purpose is to ensure that footnotes following
    down the endnote export path don't cause LO to crash.
    
    Change-Id: I219d499df7981a14f824a664b15051ad10ff6642
    Reviewed-on: https://gerrit.libreoffice.org/38634Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarJustin Luth <justin_luth@sil.org>
    Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
    be6534dc
ooxmlexport_setup.mk 3.27 KB