diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-02-05 17:27:26 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-02-06 15:16:38 +0100 |
commit | faf0635def4ef603563f7288cb29d24e3f2ce1e3 (patch) | |
tree | 4a10ec120eefeacfe4ddfcb273da925f9b30d9ee /sw/source/filter/ww8 | |
parent | e1d217b086e8c47efc5ced4c490062956d564e3f (diff) |
tdf#91920 sw page gutter margin, from top: add RTF export
The documentation for \gutterprl is "Parallel gutter.", but it seems
that's what Word use to convert between RTF and DOCX's <w:gutterAtTop/>.
Change-Id: I06d80f234c6f52950db8a047bfc88910b808977d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110484
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r-- | sw/source/filter/ww8/rtfexport.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx index 7f4ceb97dd5f..616f28ab0aa7 100644 --- a/sw/source/filter/ww8/rtfexport.cxx +++ b/sw/source/filter/ww8/rtfexport.cxx @@ -726,6 +726,13 @@ ErrCode RtfExport::ExportDocument_Impl() // Mirror margins? if ((UseOnPage::Mirror & m_rDoc.GetPageDesc(0).ReadUseOn()) == UseOnPage::Mirror) Strm().WriteCharPtr(OOO_STRING_SVTOOLS_RTF_MARGMIRROR); + + // Gutter at top? + if (m_rDoc.getIDocumentSettingAccess().get(DocumentSettingId::GUTTER_AT_TOP)) + { + Strm().WriteCharPtr(LO_STRING_SVTOOLS_RTF_GUTTERPRL); + } + // Init sections m_pSections = new MSWordSections(*this); |