summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-01-28 18:16:21 +0000
committerKurt Zenker <kz@openoffice.org>2004-01-28 18:16:21 +0000
commit72217b5bbcc784fdf317fa43b1e5a8d28729f989 (patch)
tree4786484bd42a88890e5b6dfe9cfcd57b1fe2edd2
parent7565a1be9273c3a83037d35dabb77d7a283c04af (diff)
INTEGRATION: CWS filtercfg (1.36.6); FILE MERGED
2004/01/13 19:53:48 as 1.36.6.3: RESYNC: (1.37-1.38); FILE MERGED 2003/12/08 09:10:14 as 1.36.6.2: RESYNC: (1.36-1.37); FILE MERGED 2003/10/30 16:38:11 mba 1.36.6.1: #102620#: create SfxFilters on demand
-rw-r--r--sfx2/source/view/viewsh.cxx19
1 files changed, 8 insertions, 11 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index c8b9ede2cc4f..d9ab7286dafc 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewsh.cxx,v $
*
- * $Revision: 1.38 $
+ * $Revision: 1.39 $
*
- * last change: $Author: vg $ $Date: 2004-01-06 16:39:21 $
+ * last change: $Author: kz $ $Date: 2004-01-28 19:16:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -334,15 +334,12 @@ void SfxViewShell::GetState_Impl( SfxItemSet &rSet )
SfxObjectShellRef xDocShell = GetViewFrame()->GetObjectShell();
if ( xDocShell.Is() )
{
- // Get PDF Filter from container
- SfxFilterContainer* pFilterContainer = xDocShell->GetFactory().GetFilterContainer();
- if ( pFilterContainer )
- {
- String aPDFExtension = String::CreateFromAscii( ".pdf" );
- const SfxFilter* pFilter = pFilterContainer->GetFilter4Extension( aPDFExtension, SFX_FILTER_EXPORT );
- if ( pFilter != NULL )
- break;
- }
+ // Get PDF Filter
+ String aPDFExtension = String::CreateFromAscii( ".pdf" );
+ const SfxFilter* pFilter =
+ SfxFilterMatcher( String::CreateFromAscii( xDocShell->GetFactory().GetShortName()) ).GetFilter4Extension( aPDFExtension, SFX_FILTER_EXPORT );
+ if ( pFilter != NULL )
+ break;
}
rSet.DisableItem( nSID );