/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XOOXMLDocumentPropertiesImporter.idl,v $ * $Revision: 1.2 $ * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org 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 version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef __com_sun_star_document_XOOXMLDocumentPropertiesImporter_idl__ #define __com_sun_star_document_XOOXMLDocumentPropertiesImporter_idl__ #ifndef __com_sun_star_document_XDocumentProperties_idl__ #include #endif #ifndef __com_sun_star_embed_XStorage_idl__ #include #endif #ifndef __com_sun_star_xml_sax_SAXException_idl__ #include #endif #ifndef __com_sun_star_lang_IllegalArgumentException_idl__ #include #endif #ifndef __com_sun_star_uno_Exception_idl__ #include #endif //============================================================================= module com { module sun { module star { module document { //============================================================================= /** allows to import the document properties from OOXML fomat */ interface XOOXMLDocumentPropertiesImporter: com::sun::star::uno::XInterface { // ----------------------------------------------------------------------- /** allows to import the document properties from OOXML format

The implementation should parse the document properties from OOXML format storage and set them to the target XDocumentProperties implementation.

The storage must represent OOXML format and support XRelationshipAccess interface. Please see StorageFactory for details regarding creation of such a storage.

@param xSource the source storage representing OOXML document @param xDocumentProperties the target XDocumentProperties interface implementation @throws ::com::sun::star::lang::IllegalArgumentException the exception is thrown in case unexpected arguments are provided @throws ::com::sun::star::xml::sax::SAXException the exception is thrown in case of parsing problems @throws ::com::sun::star::uno::Exception the exception is thrown in case of other problems during the import */ void importProperties( [in] com::sun::star::embed::XStorage xSource, [in] com::sun::star::document::XDocumentProperties xDocumentProperties ) raises( com::sun::star::lang::IllegalArgumentException, com::sun::star::xml::sax::SAXException, com::sun::star::uno::Exception ); }; //============================================================================= }; }; }; }; #endif