third argument should be SfxFilterFlags
Change-Id: Id0a73ffbbddc7fd2b2190cc04f59769561f45dd0
This commit is contained in:
@@ -1017,7 +1017,7 @@ void InsertFile(SwUnoCrsr* pUnoCrsr, const OUString& rURL,
|
||||
pMed->GetItemSet()->Put( SfxStringItem( SID_DOC_BASEURL, sBaseURL ) );
|
||||
|
||||
SfxFilterMatcher aMatcher( rFact.GetFilterContainer()->GetName() );
|
||||
ErrCode nErr = aMatcher.GuessFilter( *pMed, &pFilter, sal_False );
|
||||
ErrCode nErr = aMatcher.GuessFilter(*pMed, &pFilter, SFX_FILTER_VERSION_NONE);
|
||||
if ( nErr || !pFilter)
|
||||
DELETEZ(pMed);
|
||||
else
|
||||
|
@@ -729,7 +729,7 @@ bool SwGlossaryHdl::ImportGlossaries( const OUString& rName )
|
||||
boost::scoped_ptr<SfxMedium> pMed(new SfxMedium( rName, STREAM_READ, 0, 0 ));
|
||||
SfxFilterMatcher aMatcher( OUString("swriter") );
|
||||
pMed->UseInteractionHandler( true );
|
||||
if( !aMatcher.GuessFilter( *pMed, &pFilter, sal_False ) )
|
||||
if (!aMatcher.GuessFilter(*pMed, &pFilter, SFX_FILTER_VERSION_NONE))
|
||||
{
|
||||
SwTextBlocks *pGlossary = NULL;
|
||||
pMed->SetFilter( pFilter );
|
||||
|
@@ -2132,7 +2132,7 @@ long SwView::InsertDoc( sal_uInt16 nSlotId, const OUString& rFileName, const OUS
|
||||
pMed = new SfxMedium(rFileName, STREAM_READ, 0, 0 );
|
||||
SfxFilterMatcher aMatcher( rFact.GetFilterContainer()->GetName() );
|
||||
pMed->UseInteractionHandler( true );
|
||||
ErrCode nErr = aMatcher.GuessFilter( *pMed, &pFilter, sal_False );
|
||||
ErrCode nErr = aMatcher.GuessFilter(*pMed, &pFilter, SFX_FILTER_VERSION_NONE);
|
||||
if ( nErr )
|
||||
DELETEZ(pMed);
|
||||
else
|
||||
|
Reference in New Issue
Block a user