• Justin Luth's avatar
    tdf#118361 sw ooxmlimport: set footnote separator alignment · 139750d7
    Justin Luth yazdı
    If RTL is defined in the default (Normal) paragraph style,
    then the footnote separator should be right-aligned.
    In MSWORD, the alignment is not a property that is stored
    with the footnote separator definition, and it is not a
    page property like it is in LO.
    The reverse needs to happen for LTR default paragraph style.
    
    Based on my MSWORD observations, the only place where you can
    indirectly set RightToLeft is in the "Normal" paragraph style.
    That option is disabled in all of the other styles.
    
    In LibreOffice, this is typically handled by the locale properties.
    The default PAGE style's Footnotes - Position is RIGHT for
    RTL locales, but LEFT for LTR locales.
    
    It is kinda interesting that no one from a RTL locale complained
    about wrongly-right-aligned footnote separator
    from imported LTR .docx's.
    
    None of this belongs in export code, since MSO doesn't support
    specifying the location - it is just a consequence of the
    RTL/LTR settings.
    
    Change-Id: I07d26640116cb12cb9157cd1d902b4c774dbba26
    Reviewed-on: https://gerrit.libreoffice.org/56532
    Tested-by: Jenkins
    Reviewed-by: 's avatarJustin Luth <justin_luth@sil.org>
    139750d7
PropertyIds.cxx 25.6 KB