summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui/mmlayoutpage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/dbui/mmlayoutpage.cxx')
-rw-r--r--sw/source/ui/dbui/mmlayoutpage.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/ui/dbui/mmlayoutpage.cxx b/sw/source/ui/dbui/mmlayoutpage.cxx
index d98509fa6a45..3984af74545c 100644
--- a/sw/source/ui/dbui/mmlayoutpage.cxx
+++ b/sw/source/ui/dbui/mmlayoutpage.cxx
@@ -30,6 +30,7 @@
#include <view.hxx>
#include <swundo.hxx>
#include <sfx2/docfilt.hxx>
+#include <sfx2/fcontnr.hxx>
#include <svtools/unitconv.hxx>
#include <com/sun/star/view/XViewSettingsSupplier.hpp>
#include <com/sun/star/view/DocumentZoomType.hpp>
@@ -83,9 +84,10 @@ SwMailMergeLayoutPage::SwMailMergeLayoutPage(weld::Container* pPage, SwMailMerge
, m_xDownPB(m_xBuilder->weld_button("down"))
, m_xZoomLB(m_xBuilder->weld_combo_box("zoom"))
{
- std::shared_ptr<const SfxFilter> pSfxFlt = SwIoSystem::GetFilterOfFormat(
- FILTER_XML,
- SwDocShell::Factory().GetFilterContainer() );
+ std::shared_ptr<const SfxFilter> pSfxFlt =
+ SwDocShell::Factory().GetFilterContainer()->
+ GetFilter4FilterName("writer8");
+
//save the current document into a temporary file
{
//temp file needs its own block