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 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_packages_PackageStream_idl__ 24#define __com_sun_star_packages_PackageStream_idl__ 25 26 27#ifndef __com_sun_star_container_XNamed_idl__ 28#include <com/sun/star/container/XNamed.idl> 29#endif 30 31#ifndef __com_sun_star_container_XChild_idl__ 32#include <com/sun/star/container/XChild.idl> 33#endif 34 35#ifndef __com_sun_star_beans_XPropertySet_idl__ 36#include <com/sun/star/beans/XPropertySet.idl> 37#endif 38 39#ifndef __com_sun_star_io_XActiveDataSink_idl__ 40#include <com/sun/star/io/XActiveDataSink.idl> 41#endif 42 43//============================================================================= 44 45module com { module sun { module star { module packages { 46 47//============================================================================= 48 49/**This service represents a stream contained within a Package. Instances of 50this class can only be constructed by the implementation of the Package 51service. 52*/ 53published service PackageStream 54{ 55 /** 56 This sets or gets the name of the Stream as contained within its parent 57 PackageFolder. 58 */ 59 interface com::sun::star::container::XNamed; 60 /** 61 getParent returns the PackageFolder that the PackageStream is in. This 62 may be the root PackageFolder. setParent moves a PackageStream. 63 */ 64 interface com::sun::star::container::XChild; 65 /** 66 getInputStream provides read access to the contents of this PackageStream. 67 If this PackageStream was a member of the Package when it was instantiated, 68 the XInputStream returned is a Reference to the stream of the whole Package, 69 with limits set on where it can seek to and read from. If the PackageStream 70 is a new addition to the package, then getInputStream returns a Reference 71 to the XInputStream which was specified with setInputStream. 72 73 setInputStream - provides a stream to the data contained in the PackageStream 74 this must be specified for new PackageStreams added to the Package. If this 75 is called more than once, it will replace the existing stream. 76 */ 77 interface com::sun::star::io::XActiveDataSink; 78 /** 79 This interface provides access to the properties of the package entry. 80 Currently, this supports three entries: 81 82 1. Size, describing the uncompressed size of PackageStream. 83 2. MediaType, a string describing the MIME type of the stream. 84 3. Compress, a boolean flag to specify whether or not to compress 85 this PackageStream. 86 */ 87 interface com::sun::star::beans::XPropertySet; 88}; 89}; }; }; }; 90 91#endif 92