diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2014-10-09 17:47:42 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2014-10-09 17:48:20 +0200 |
commit | fab88063281761dbdac7ea550072660fe0f8c863 (patch) | |
tree | e2915e5b2693a329d4edfeb9a292544befba2a27 /sw/source/ui/dbui | |
parent | 2ceeee914e3ff69811ca04ecccf30a582c58b34a (diff) |
copy document defaults/properties for separate mailmerge result files #2
Another place, sigh.
Change-Id: Id5b73ade2ee5de5d89abf98a0fe2608d5100240b
Diffstat (limited to 'sw/source/ui/dbui')
-rw-r--r-- | sw/source/ui/dbui/mmoutputpage.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/ui/dbui/mmoutputpage.cxx b/sw/source/ui/dbui/mmoutputpage.cxx index ba2aa1e228d5..369d41f4197c 100644 --- a/sw/source/ui/dbui/mmoutputpage.cxx +++ b/sw/source/ui/dbui/mmoutputpage.cxx @@ -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(); |