1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27#ifndef __com_sun_star_document_XOOXMLDocumentPropertiesImporter_idl__ 28#define __com_sun_star_document_XOOXMLDocumentPropertiesImporter_idl__ 29 30#ifndef __com_sun_star_document_XDocumentProperties_idl__ 31#include <com/sun/star/document/XDocumentProperties.idl> 32#endif 33 34#ifndef __com_sun_star_embed_XStorage_idl__ 35#include <com/sun/star/embed/XStorage.idl> 36#endif 37 38#ifndef __com_sun_star_xml_sax_SAXException_idl__ 39#include <com/sun/star/xml/sax/SAXException.idl> 40#endif 41 42#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ 43#include <com/sun/star/lang/IllegalArgumentException.idl> 44#endif 45 46#ifndef __com_sun_star_uno_Exception_idl__ 47#include <com/sun/star/uno/Exception.idl> 48#endif 49 50//============================================================================= 51 52module com { module sun { module star { module document { 53 54//============================================================================= 55/** allows to import the document properties from OOXML fomat 56 */ 57interface XOOXMLDocumentPropertiesImporter: com::sun::star::uno::XInterface 58{ 59 // ----------------------------------------------------------------------- 60 /** allows to import the document properties from OOXML format 61 62 <p> 63 The implementation should parse the document properties from OOXML 64 format storage and set them to the target 65 <type>XDocumentProperties</type> implementation. 66 </p> 67 68 <p> 69 The storage must represent OOXML format and support 70 <type scope="com::sun::star::embed">XRelationshipAccess</type> 71 interface. Please see 72 <type scope="com::sun::star::embed">StorageFactory</type> for details 73 regarding creation of such a storage. 74 </p> 75 76 @param xSource 77 the source storage representing OOXML document 78 79 @param xDocumentProperties 80 the target <type>XDocumentProperties</type> interface implementation 81 82 @throws ::com::sun::star::lang::IllegalArgumentException 83 the exception is thrown in case unexpected arguments are provided 84 85 @throws ::com::sun::star::xml::sax::SAXException 86 the exception is thrown in case of parsing problems 87 88 @throws ::com::sun::star::uno::Exception 89 the exception is thrown in case of other problems during the import 90 */ 91 92 void importProperties( 93 [in] com::sun::star::embed::XStorage xSource, 94 [in] com::sun::star::document::XDocumentProperties xDocumentProperties ) 95 raises( com::sun::star::lang::IllegalArgumentException, 96 com::sun::star::xml::sax::SAXException, 97 com::sun::star::uno::Exception ); 98}; 99 100//============================================================================= 101 102}; }; }; }; 103 104#endif 105 106