From 18b3feb8bef06bf7b126fd0bc743e19479cb8026 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 12 Sep 2012 09:59:27 +0200 Subject: n#778133 sw: add BackgroundParaOverDrawings compat flag In Word, the layer that contains a background image is behind the layer that contains the paragraph background. In Writer, the paragraph background is painted before the hell layer. Add a compat flag to change the order, so the DOCX importer can trigger that. To reproduce, create an XShape, send it to the background, set some color for a paragraph background, and notice that the background color is missing where the shape is behind the text. Change-Id: I9b1fffd9ac9a6e5a1c3d1f65371440047d125b38 --- writerfilter/source/filter/ImportFilter.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'writerfilter') diff --git a/writerfilter/source/filter/ImportFilter.cxx b/writerfilter/source/filter/ImportFilter.cxx index 576d22508e64..5d7da9935416 100644 --- a/writerfilter/source/filter/ImportFilter.cxx +++ b/writerfilter/source/filter/ImportFilter.cxx @@ -179,6 +179,7 @@ void WriterFilter::setTargetDocument( const uno::Reference< lang::XComponent >& xSettings->setPropertyValue("FloattableNomargins", uno::makeAny( sal_True )); xSettings->setPropertyValue( "ClippedPictures", uno::makeAny( sal_True ) ); + xSettings->setPropertyValue( "BackgroundParaOverDrawings", uno::makeAny( sal_True ) ); } void WriterFilter::setSourceDocument( const uno::Reference< lang::XComponent >& xDoc ) -- cgit