summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-03-09 14:21:07 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-03-12 18:42:33 +0100
commit03f9b6bebc0ca77021be46664c7bcbe4cb297503 (patch)
tree942a7af20a3ba7f8993037c6f8fcea20737f2025 /sw
parent11059331718fb8faab483c75633b4e80d8028b7d (diff)
DocxAttributeOutput: implement contextual spacing
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 1b1de4f6f1a8..77da6da5aef1 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -4007,6 +4007,10 @@ void DocxAttributeOutput::FormatULSpace( const SvxULSpaceItem& rULSpace )
OString::valueOf( (sal_Int32)rULSpace.GetUpper() ) );
m_pParagraphSpacingAttrList->add( FSNS( XML_w, XML_after ),
OString::valueOf( (sal_Int32)rULSpace.GetLower() ) );
+ if (rULSpace.GetContext())
+ m_pSerializer->singleElementNS( XML_w, XML_contextualSpacing, FSEND );
+ else
+ m_pSerializer->singleElementNS( XML_w, XML_contextualSpacing, FSNS( XML_w, XML_val ), "false", FSEND );
}
}