Kaydet (Commit) 355d25ea authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat Kaydeden (comit) Cédric Bosdonnat

n#779627: added quite some compat options from the ww8 filter on writerfilter

Change-Id: I9e8dee39f63a08517eb654e33747bd8c95d84b59
üst 27ad84a9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment