INTEGRATION: CWS fwkbugfix02 (1.89.12); FILE MERGED

2004/04/27 10:58:22 mav 1.89.12.4: RESYNC: (1.89-1.90); FILE MERGED
2004/03/24 07:49:06 mav 1.89.12.3: #115974# use seekable wrapper from comphelper
2004/03/23 15:42:24 mav 1.89.12.2: #115974# use seekable wrapper from comphelper
2004/03/17 11:39:25 mav 1.89.12.1: #115957# Extend the cloning functionality
This commit is contained in:
Jens-Heiner Rechtien 2004-05-10 16:29:23 +00:00
parent ed12b4e6be
commit 94ea9bcb20

View file

@ -2,9 +2,9 @@
*
* $RCSfile: ZipPackage.cxx,v $
*
* $Revision: 1.90 $
* $Revision: 1.91 $
*
* last change: $Author: hr $ $Date: 2004-04-13 12:22:22 $
* last change: $Author: hr $ $Date: 2004-05-10 17:29:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -175,6 +175,7 @@
#include <ucbhelper/contentbroker.hxx>
#include <ucbhelper/fileidentifierconverter.hxx>
#include <comphelper/seekableinput.hxx>
using namespace rtl;
using namespace ucb;
@ -577,9 +578,13 @@ void SAL_CALL ZipPackage::initialize( const Sequence< Any >& aArguments )
{
if (xContentStream.is())
{
// the stream must be seekable, if it is not it will be wrapped
xContentStream = ::comphelper::OSeekableInputWrapper::CheckSeekableCanWrap( xContentStream, xFactory );
xContentSeek = Reference < XSeekable > ( xContentStream, UNO_QUERY );
if ( ! xContentSeek.is() )
throw com::sun::star::uno::Exception ( OUString( RTL_CONSTASCII_USTRINGPARAM ( "The package component _requires_ an XSeekable interface!" ) ),
throw com::sun::star::uno::Exception (
OUString( RTL_CONSTASCII_USTRINGPARAM (
"The package component _requires_ an XSeekable interface!" ) ),
static_cast < ::cppu::OWeakObject * > ( this ) );
if ( !xContentSeek->getLength() )