From 72dc8d82243806dfe269eea7b7c0b1ac80e452d0 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Fri, 8 Jul 2005 08:28:00 +0000 Subject: INTEGRATION: CWS fwk14 (1.35.12); FILE MERGED 2005/05/19 08:38:48 cd 1.35.12.1: #i40043# Use user default filter for module --- sfx2/source/dialog/mailmodel.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 5eee5b66af..c15bc67637 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -2,9 +2,9 @@ * * $RCSfile: mailmodel.cxx,v $ * - * $Revision: 1.35 $ + * $Revision: 1.36 $ * - * last change: $Author: obo $ $Date: 2005-04-21 11:44:20 $ + * last change: $Author: obo $ $Date: 2005-07-08 09:28:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -286,8 +286,11 @@ SfxMailModel_Impl::SaveResult SfxMailModel_Impl::SaveDocument( String& rFileName sal_Bool bHasFilter = pFilter ? sal_True : sal_False; if ( !pFilter ) { - SfxFilterMatcher aMatcher( String::CreateFromAscii(xDocShell->GetFactory().GetShortName()) ); - pFilter = aMatcher.GetAnyFilter( SFX_FILTER_EXPORT ); + pFilter = SfxFilterContainer::GetDefaultFilter_Impl( String::CreateFromAscii( + xDocShell->GetFactory().GetShortName()) ); + + if ( !pFilter ) + return SAVE_ERROR; } // create temp file name with leading chars and extension -- cgit v1.2.3