ucbstorage.cxx (046d9d1f) ucbstorage.cxx (d321cf2f)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1862 unchanged lines hidden (view full) ---

1871 // create input stream
1872 SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( aObj.GetMainURL( INetURLObject::NO_DECODE ), STREAM_STD_READ );
1873 // no stream means no manifest.xml
1874 if ( pStream )
1875 {
1876 if ( !pStream->GetError() )
1877 {
1878 ::utl::OInputStreamWrapper* pHelper = new ::utl::OInputStreamWrapper( *pStream );
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1862 unchanged lines hidden (view full) ---

1871 // create input stream
1872 SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( aObj.GetMainURL( INetURLObject::NO_DECODE ), STREAM_STD_READ );
1873 // no stream means no manifest.xml
1874 if ( pStream )
1875 {
1876 if ( !pStream->GetError() )
1877 {
1878 ::utl::OInputStreamWrapper* pHelper = new ::utl::OInputStreamWrapper( *pStream );
1879 com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > xInputStream( pHelper );
1879 com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > xInputStream;
1880 xInputStream = pHelper;
1880
1881 // create a manifest reader object that will read in the manifest from the stream
1882 Reference < ::com::sun::star::packages::manifest::XManifestReader > xReader =
1883 Reference< ::com::sun::star::packages::manifest::XManifestReader >
1884 ( ::comphelper::getProcessServiceFactory()->createInstance(
1885 ::rtl::OUString::createFromAscii( "com.sun.star.packages.manifest.ManifestReader" )), UNO_QUERY) ;
1886 Sequence < Sequence < PropertyValue > > aProps = xReader->readManifestSequence( xInputStream );
1887

--- 1709 unchanged lines hidden ---
1881
1882 // create a manifest reader object that will read in the manifest from the stream
1883 Reference < ::com::sun::star::packages::manifest::XManifestReader > xReader =
1884 Reference< ::com::sun::star::packages::manifest::XManifestReader >
1885 ( ::comphelper::getProcessServiceFactory()->createInstance(
1886 ::rtl::OUString::createFromAscii( "com.sun.star.packages.manifest.ManifestReader" )), UNO_QUERY) ;
1887 Sequence < Sequence < PropertyValue > > aProps = xReader->readManifestSequence( xInputStream );
1888

--- 1709 unchanged lines hidden ---