summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorAdam Co <rattles2013@gmail.com>2013-12-02 18:04:46 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-12-11 08:14:31 +0000
commita8c378805a5b384e46bd0fd292fb6f7142aca2dc (patch)
tree3ab22f96bb217f1ec560abc08c32252933cc9988 /sw
parent9e99728b4ebedc0185f7226776bcfd15f3309d44 (diff)
moved 'mergeTopMarks' out of 'WriteCollectedRunProperties'
The reason for this - is that the function 'WriteCollectedRunProperties' needs to be used by the redline exporter (to export collected 'redlined' properties) - and the 'mergeTopMarks' is not needed there. Change-Id: I10063b2f28adab53949b4d9de8acd0dab66553b0 Reviewed-on: https://gerrit.libreoffice.org/6899 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx21
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 );
}
}