diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index b546b37ed426..4ee565631954 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -599,15 +599,15 @@ void DocxAttributeOutput::WriteCollectedParagraphProperties() m_pSerializer->singleElementNS( XML_w, XML_spacing, xAttrList ); } - - // Merge the marks for the ordered elements - m_pSerializer->mergeTopMarks( ); } void DocxAttributeOutput::EndParagraphProperties() { WriteCollectedParagraphProperties(); + // Merge the marks for the ordered elements + m_pSerializer->mergeTopMarks( ); + // insert copy of <rPr> m_pSerializer->copyTopMarkPop(); @@ -1153,9 +1153,6 @@ void DocxAttributeOutput::WriteCollectedRunProperties() m_pSerializer->singleElementNS( XML_w, XML_lang, xAttrList ); } - - // Merge the marks for the ordered elements - m_pSerializer->mergeTopMarks(); } void DocxAttributeOutput::EndRunProperties( const SwRedlineData* pRedlineData ) @@ -1166,6 +1163,9 @@ void DocxAttributeOutput::EndRunProperties( const SwRedlineData* pRedlineData ) WriteCollectedRunProperties(); + // Merge the marks for the ordered elements + m_pSerializer->mergeTopMarks(); + m_pSerializer->endElementNS( XML_w, XML_rPr ); // Clone <rPr>...</rPr> for later re-use, in pPr @@ -1518,6 +1518,7 @@ void DocxAttributeOutput::Redline( const SwRedlineData* pRedline) } m_pSerializer->endElementNS( XML_w, XML_rPrChange ); + break; default: SAL_WARN("sw.ww8", "Unhandled redline type for export " << pRedline->GetType()); @@ -3889,11 +3890,19 @@ void DocxAttributeOutput::EndStyleProperties( bool bParProp ) if ( bParProp ) { WriteCollectedParagraphProperties(); + + // Merge the marks for the ordered elements + m_pSerializer->mergeTopMarks( ); + m_pSerializer->endElementNS( XML_w, XML_pPr ); } else { WriteCollectedRunProperties(); + + // Merge the marks for the ordered elements + m_pSerializer->mergeTopMarks(); + m_pSerializer->endElementNS( XML_w, XML_rPr ); } } |