diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-09-19 16:19:37 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-09-20 18:20:18 +0200 |
commit | 355d25eac764713f4d52eac801ade6e2ff1deab0 (patch) | |
tree | fd1ef9d718460a73fed73c8d641124e5e939ece4 | |
parent | 27ad84a9e75d414e4c5bce6ace5a96dc5af6868f (diff) |
n#779627: added quite some compat options from the ww8 filter on writerfilter
Change-Id: I9e8dee39f63a08517eb654e33747bd8c95d84b59
-rw-r--r-- | writerfilter/source/filter/ImportFilter.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/writerfilter/source/filter/ImportFilter.cxx b/writerfilter/source/filter/ImportFilter.cxx index 4aaab65c7518..2eef1c12c43f 100644 --- a/writerfilter/source/filter/ImportFilter.cxx +++ b/writerfilter/source/filter/ImportFilter.cxx @@ -172,6 +172,20 @@ void WriterFilter::setTargetDocument( const uno::Reference< lang::XComponent >& uno::Reference< lang::XMultiServiceFactory > xFactory( xDoc, uno::UNO_QUERY ); uno::Reference< beans::XPropertySet > xSettings( xFactory->createInstance("com.sun.star.document.Settings"), uno::UNO_QUERY ); + xSettings->setPropertyValue( "AddFrameOffsets", uno::makeAny( sal_True ) ); + xSettings->setPropertyValue( "UseOldNumbering", uno::makeAny( sal_False ) ); + xSettings->setPropertyValue( "IgnoreFirstLineIndentInNumbering", uno::makeAny( sal_False ) ); + xSettings->setPropertyValue( "DoNotResetParaAttrsForNumFont", uno::makeAny( sal_False ) ); + xSettings->setPropertyValue( "UseFormerLineSpacing", uno::makeAny( sal_False ) ); + xSettings->setPropertyValue( "AddParaSpacingToTableCells", uno::makeAny( sal_True ) ); + xSettings->setPropertyValue( "UseFormerObjectPositioning", uno::makeAny( sal_False ) ); + xSettings->setPropertyValue( "ConsiderTextWrapOnObjPos", uno::makeAny( sal_True ) ); + xSettings->setPropertyValue( "UseFormerTextWrapping", uno::makeAny( sal_False ) ); + xSettings->setPropertyValue( "TableRowKeep", uno::makeAny( sal_True ) ); + xSettings->setPropertyValue( "IgnoreTabsAndBlanksForLineCalculation", uno::makeAny( sal_True ) ); + xSettings->setPropertyValue( "InvertBorderSpacing", uno::makeAny( sal_True ) ); + xSettings->setPropertyValue( "CollapseEmptyCellPara", uno::makeAny( sal_True ) ); + xSettings->setPropertyValue( "TabOverflow", uno::makeAny( sal_True ) ); xSettings->setPropertyValue( "UnbreakableNumberings", uno::makeAny( sal_True ) ); // Don't load the default style definitions to avoid weird mix |