diff options
author | Rüdiger Timm <rt@openoffice.org> | 2003-09-19 06:59:40 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2003-09-19 06:59:40 +0000 |
commit | 42125c479bcd41425256d178dfbb69e6a12f21d0 (patch) | |
tree | 10c19ce442e7af7b3374ba19149054a2de421de4 /sfx2 | |
parent | c6c9621b3f749227bcd20d3d0ee254311623835b (diff) |
INTEGRATION: CWS fwkq1 (1.21.54); FILE MERGED
2003/07/14 18:00:13 mba 1.21.54.1: #110843#: get rid of factories
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/mailmodel.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 8188a9823e51..718028e69b86 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -2,9 +2,9 @@ * * $RCSfile: mailmodel.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: vg $ $Date: 2003-04-17 16:09:52 $ + * last change: $Author: rt $ $Date: 2003-09-19 07:59:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -320,10 +320,7 @@ SfxMailModel_Impl::SaveResult SfxMailModel_Impl::SaveDocument( String& rFileName const SfxFilter* pFilter = xDocShell->GetMedium()->GetFilter(); sal_Bool bHasFilter = pFilter ? sal_True : sal_False; if ( !pFilter ) - { - SfxFilterMatcher aFilterMatcher( xDocShell->GetFactory().GetFilterContainer() ); - pFilter = aFilterMatcher.GetDefaultFilter(); - } + pFilter = xDocShell->GetFactory().GetFilterContainer()->GetFilter(0); // create temp file name with leading chars and extension sal_Bool bHasName = xDocShell->HasName(); @@ -419,7 +416,7 @@ SfxMailModel_Impl::SaveResult SfxMailModel_Impl::SaveDocAsPDF( String& rFileName pDisp->Execute( SID_MAIL_PREPAREEXPORT, SFX_CALLMODE_SYNCHRON ); // Get PDF Filter from container - SfxFactoryFilterContainer* pFilterContainer = xDocShell->GetFactory().GetFilterContainer(); + SfxFilterContainer* pFilterContainer = xDocShell->GetFactory().GetFilterContainer(); if ( pFilterContainer ) { String aPDFExtension = String::CreateFromAscii( ".pdf" ); |