diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-08-27 13:07:05 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-09-28 14:43:19 +0200 |
commit | 681fbb8eb275db4fd2bf7357819e8a991b734109 (patch) | |
tree | fd054b4b9d717b264ebfb0e0c60d7ec8c7cd22b8 /writerfilter/source/filter | |
parent | cbf529659b1aaa9f4806462d5ea5ac8db1c876c2 (diff) |
n#775899 docx import: set PrinterIndependentLayout like ww8 does
(cherry picked from commit 926fe8298be1a2d4a22277a5e9ecf4e2582b0b21)
Conflicts:
writerfilter/source/filter/ImportFilter.cxx
Change-Id: I32869aa3d7b6b25c7eb9756d79ea7126130afc4b
Diffstat (limited to 'writerfilter/source/filter')
-rw-r--r-- | writerfilter/source/filter/ImportFilter.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/writerfilter/source/filter/ImportFilter.cxx b/writerfilter/source/filter/ImportFilter.cxx index 55febf6758fd..2b20cf80d71b 100644 --- a/writerfilter/source/filter/ImportFilter.cxx +++ b/writerfilter/source/filter/ImportFilter.cxx @@ -32,6 +32,7 @@ #include <com/sun/star/drawing/XDrawPageSupplier.hpp> #include <com/sun/star/io/XInputStream.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> +#include <com/sun/star/document/PrinterIndependentLayout.hpp> #include <comphelper/mediadescriptor.hxx> #include <oox/core/filterdetect.hxx> #include <dmapper/DomainMapper.hxx> @@ -184,6 +185,7 @@ void WriterFilter::setTargetDocument( const uno::Reference< lang::XComponent >& xSettings->setPropertyValue( rtl::OUString::createFromAscii( "UnbreakableNumberings" ), uno::makeAny( sal_True ) ); xSettings->setPropertyValue(rtl::OUString::createFromAscii("FloattableNomargins"), uno::makeAny( sal_True )); + xSettings->setPropertyValue(rtl::OUString::createFromAscii("PrinterIndependentLayout"), uno::makeAny(document::PrinterIndependentLayout::DISABLED)); } void WriterFilter::setSourceDocument( const uno::Reference< lang::XComponent >& xDoc ) |