diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 76e9f13d8969..34eaddab5485 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2370,6 +2370,7 @@ sal_Bool SfxObjectShell::ExportTo( SfxMedium& rMedium ) sal_Bool bHasOutputStream = sal_False; sal_Bool bHasStream = sal_False; sal_Bool bHasBaseURL = sal_False; + bool bHasFilterName = false; sal_Int32 i; sal_Int32 nEnd = aOldArgs.getLength(); @@ -2384,6 +2385,8 @@ sal_Bool SfxObjectShell::ExportTo( SfxMedium& rMedium ) bHasStream = sal_True; else if ( pOldValue[i].Name == "DocumentBaseURL" ) bHasBaseURL = sal_True; + else if( pOldValue[i].Name == "FilterName" ) + bHasFilterName = true; } if ( !bHasOutputStream ) @@ -2408,6 +2411,13 @@ sal_Bool SfxObjectShell::ExportTo( SfxMedium& rMedium ) aArgs[nEnd-1].Value <<= rMedium.GetBaseURL( true ); } + if( !bHasFilterName ) + { + aArgs.realloc( ++nEnd ); + aArgs[nEnd-1].Name = "FilterName"; + aArgs[nEnd-1].Value <<= aFilterName; + } + return xFilter->filter( aArgs ); }catch(const uno::Exception&) {} |