Kaydet (Commit) 3ba82371 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

CWS-TOOLING: integrate CWS impress157_DEV300

üst 7fdbe1dd
......@@ -16,7 +16,7 @@
</simple-license>
</registration>
<version value="0.3" />
<version value="0.3.2" />
<platform value="UPDATED_SUPPORTED_PLATFORM" />
......
......@@ -99,15 +99,18 @@ sal_Bool SAL_CALL PDFIHybridAdaptor::filter( const uno::Sequence< beans::Propert
bool bAddPwdProp = false;
if( ! xSubStream.is() )
{
uno::Reference< io::XInputStream > xInput;
for( sal_Int32 i = 0; i < nAttribs; i++ )
{
if( pAttribs[i].Name.equalsAscii( "Stream" ) )
pAttribs[i].Value >>= xSubStream;
if( pAttribs[i].Name.equalsAscii( "InputStream" ) )
{
pAttribs[i].Value >>= xInput;
break;
}
}
if( xSubStream.is() )
if( xInput.is() )
{
// TODO(P2): extracting hybrid substream twice - once during detection, second time here
uno::Reference< io::XInputStream > xInput( xSubStream->getInputStream() );
uno::Reference< io::XSeekable > xSeek( xInput, uno::UNO_QUERY );
if( xSeek.is() )
xSeek->seek( 0 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment