Kaydet (Commit) fab88063 authored tarafından Luboš Luňák's avatar Luboš Luňák

copy document defaults/properties for separate mailmerge result files #2

Another place, sigh.

Change-Id: Id5b73ade2ee5de5d89abf98a0fe2608d5100240b
üst 2ceeee91
......@@ -1088,6 +1088,9 @@ IMPL_LINK(SwMailMergeOutputPage, SendDocumentsHdl_Impl, PushButton*, pButton)
aOpt.SetMerge( false );
pTempView->GetDocShell()->LoadStylesFromFile(
sTargetTempURL, aOpt, true );
pTempView->GetDocShell()->GetDoc()->ReplaceCompatabilityOptions( *pTargetView->GetDocShell()->GetDoc());
pTempView->GetDocShell()->GetDoc()->ReplaceDefaults( *pTargetView->GetDocShell()->GetDoc());
pTempView->GetDocShell()->GetDoc()->ReplaceDocumentProperties( *pTargetView->GetDocShell()->GetDoc(), true );
pTargetView->GetWrtShell().PastePages(pTempView->GetWrtShell(),
(sal_uInt16)rInfo.nStartPageInTarget, (sal_uInt16)rInfo.nEndPageInTarget );
pTargetView->GetWrtShell().EndAction();
......
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