diff -urNpw offapi.old/com/sun/star/embed/OLESimpleStorage.idl offapi.new/com/sun/star/embed/OLESimpleStorage.idl --- offapi.old/com/sun/star/embed/OLESimpleStorage.idl 1970-01-01 08:00:00.000000000 +0800 +++ offapi.new/com/sun/star/embed/OLESimpleStorage.idl 2007-06-18 14:33:42.000000000 +0800 @@ -0,0 +1,89 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: ,v $ + * + * $Revision: $ + * + * last change: $Author: $ $Date: $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ +#ifndef __com_sun_star_embed_OLESimpleStorage_idl__ +#define __com_sun_star_embed_OLESimpleStorage_idl__ + +#ifndef __com_sun_star_embed_XOLESimpleStorage_idl__ +#include +#endif + +#ifndef __com_sun_star_io_XInputStream_idl__ +#include +#endif + +#ifndef __com_sun_star_io_XStream_idl__ +#include +#endif + +//============================================================================ +module com { module sun { module star { module embed { +//============================================================================ +/** This service provides a simple functionality to allow + read/write the storages in OLE storage format. +*/ +service OLESimpleStorage: XOLESimpleStorage +{ + //CONSTRUCTORS + // + /** is used to initialize the object on it's creation. + + @param xInputStream + [in] the InputStream that contains data in OLE storage format. + + @param bNoTempCopy + [in] specifies whether a temporary copy should be created during + substreams opening. + + */ + createFromInputStream ([in] ::com::sun::star::io::XInputStream xInputStream, [in] boolean bNoTempCopy); + /** is used to initialize the object on it's creation. + + @param xStream + [in] the Stream that contains data in OLE storage format. + + @param bNoTempCopy + [in] specifies whether a temporary copy should be created during + substreams opening. + + */ + createFromStream ([in] ::com::sun::star::io::XStream xStream, [in] boolean bNoTempCopy); + +}; + +//============================================================================ + +}; }; }; }; + +#endif diff -urNpw offapi.old/com/sun/star/embed/XOLESimpleStorage.idl offapi.new/com/sun/star/embed/XOLESimpleStorage.idl --- offapi.old/com/sun/star/embed/XOLESimpleStorage.idl 1970-01-01 08:00:00.000000000 +0800 +++ offapi.new/com/sun/star/embed/XOLESimpleStorage.idl 2007-06-18 16:08:14.000000000 +0800 @@ -0,0 +1,108 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: ,v $ + * + * $Revision: $ + * + * last change: $Author: $ $Date: $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ +#ifndef __com_sun_star_embed_XOLESimpleStorage_idl__ +#define __com_sun_star_embed_XOLESimpleStorage_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include +#endif + +#ifndef __com_sun_star_container_XNameContainer_idl__ +#include +#endif + +#ifndef __com_sun_star_lang_XComponent_idl__ +#include +#endif + +#ifndef __com_sun_star_embed_XTransactedObject_idl__ +#include +#endif + +#ifndef __com_sun_star_embed_XClassifiedObject_idl__ +#include +#endif + + +//============================================================================ +module com { module sun { module star { module embed { +//============================================================================ +/** This interface allows to access and change contents of OLE storages. +*/ +interface XOLESimpleStorage +{ + //INTERFACES + // + //------------------------------------------------------------------------ + /** interface XNameContainer is the generic interface for + supporting the insertion and removal of named elements. + +

The access to the elements is provided though + XNameContainer methods.

+ */ + interface ::com::sun::star::container::XNameContainer; + + //------------------------------------------------------------------------ + /** interface XComponent allows to exclicitly free resources + and break cyclic references. + */ + interface ::com::sun::star::lang::XComponent; + + //------------------------------------------------------------------------ + /** interface XTransactedObject allows transacted access to + an object. + +

The storages are always opened in transdacted mode, the + XTransactedObject interface allows to commit the storage. +

+ */ + interface XTransactedObject; + + //------------------------------------------------------------------------ + /** interface XClassifiedObject represents common + functionality for embedded objects + +

the XClassifiedObject interface allows to set/get the + ClassID of the storage.

+ */ + interface XClassifiedObject; + +}; + +//============================================================================ + +}; }; }; }; + +#endif diff -urNpw offapi.old/com/sun/star/embed/makefile.mk offapi.new/com/sun/star/embed/makefile.mk --- offapi.old/com/sun/star/embed/makefile.mk 2007-06-20 10:52:30.000000000 +0800 +++ offapi.new/com/sun/star/embed/makefile.mk 2007-06-20 10:58:38.000000000 +0800 @@ -114,6 +114,8 @@ IDLFILES=\ LinkageMisuseException.idl\ NeedsRunningStateException.idl\ StorageWrappedTargetException.idl\ + OLESimpleStorage.idl\ + XOLESimpleStorage.idl # ------------------------------------------------------------------