diff options
Diffstat (limited to 'sw/source/filter/ww8/docxexport.cxx')
-rw-r--r-- | sw/source/filter/ww8/docxexport.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx index c36139ca31ac..6470999120bf 100644 --- a/sw/source/filter/ww8/docxexport.cxx +++ b/sw/source/filter/ww8/docxexport.cxx @@ -865,7 +865,13 @@ void DocxExport::WriteSettings() { pFS->singleElementNS( XML_w, XML_documentProtection, FSNS(XML_w, XML_edit), "forms", FSNS(XML_w, XML_enforcement), "1", FSEND ); } - + // Do not justify lines with manual break + if( m_pDoc->getIDocumentSettingAccess().get( DocumentSettingId::DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK )) + { + pFS->startElementNS( XML_w, XML_compat, FSEND ); + pFS->singleElementNS( XML_w, XML_doNotExpandShiftReturn, FSEND ); + pFS->endElementNS( XML_w, XML_compat ); + } // Automatic hyphenation: it's a global setting in Word, it's a paragraph setting in Writer. // Use the setting from the default style. SwTextFormatColl* pColl = m_pDoc->getIDocumentStylePoolAccess().GetTextCollFromPool(RES_POOLCOLL_STANDARD, /*bRegardLanguage=*/false); @@ -949,7 +955,6 @@ void DocxExport::WriteSettings() FSNS( XML_w, XML_val ), OUStringToOString(aValue, RTL_TEXTENCODING_UTF8).getStr(), FSEND); } - pFS->endElementNS( XML_w, XML_compat ); } } @@ -963,7 +968,6 @@ void DocxExport::WriteSettings() FSNS( XML_w, XML_edit ), "forms", FSEND ); } - pFS->endElementNS( XML_w, XML_settings ); } |