summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-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 );