summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objstor.cxx
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2002-05-27 13:02:26 +0000
committerMathias Bauer <mba@openoffice.org>2002-05-27 13:02:26 +0000
commit4bb4ea3ac50fde72eb5fa1e58b1f2f025ae03df8 (patch)
treea31e22f6d17253109e4204d3c522069c85ef5a4b /sfx2/source/doc/objstor.cxx
parentc4bfd8d9e1dfa5e76d54cf369684a7129bb67e9d (diff)
#98405#: Allow registration of external filters for 5.0 formats
Diffstat (limited to 'sfx2/source/doc/objstor.cxx')
-rw-r--r--sfx2/source/doc/objstor.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 5441edc7bf85..105bce5b0bdc 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: objstor.cxx,v $
*
- * $Revision: 1.89 $
+ * $Revision: 1.90 $
*
- * last change: $Author: mav $ $Date: 2002-04-26 11:46:59 $
+ * last change: $Author: mba $ $Date: 2002-05-27 14:02:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -527,7 +527,7 @@ sal_Bool SfxObjectShell::DoLoad( SfxMedium *pMed )
}
}
- if ( bHasStorage )
+ if ( bHasStorage && !( pFilter->GetFilterFlags() & SFX_FILTER_STARONEFILTER ) )
{
SvStorageRef xStor( pMed->GetStorage() );
DBG_ASSERT( pFilter, "No filter for storage found!" );
@@ -808,7 +808,7 @@ sal_Bool SfxObjectShell::SaveTo_Impl
Lock_Impl( this, sal_True );
sal_Bool bOk = sal_False;
- if( IsOwnStorageFormat_Impl(rMedium) )
+ if( IsOwnStorageFormat_Impl(rMedium) && !(pFilter->GetFilterFlags() & SFX_FILTER_STARONEFILTER))
{
SvStorageRef aMedRef = rMedium.GetStorage();
if ( !aMedRef.Is() )
@@ -1395,7 +1395,7 @@ sal_Bool SfxObjectShell::ImportFrom( SfxMedium& rMedium )
if ( !bHasInputStream )
{
pNewValue[i].Name = sInputStream;
- pNewValue[i].Value <<= Reference < com::sun::star::io::XInputStream > ( new utl::OInputStreamWrapper ( *rMedium.GetInStream() ) );
+ pNewValue[i].Value <<= Reference < com::sun::star::io::XInputStream > ( new utl::OSeekableInputStreamWrapper ( *rMedium.GetInStream() ) );
}
else
aArgs.realloc ( i-1 );