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_document_XOOXMLDocumentPropertiesImporter_idl__
24#define __com_sun_star_document_XOOXMLDocumentPropertiesImporter_idl__
25
26#ifndef __com_sun_star_document_XDocumentProperties_idl__
27#include <com/sun/star/document/XDocumentProperties.idl>
28#endif
29
30#ifndef __com_sun_star_embed_XStorage_idl__
31#include <com/sun/star/embed/XStorage.idl>
32#endif
33
34#ifndef __com_sun_star_xml_sax_SAXException_idl__
35#include <com/sun/star/xml/sax/SAXException.idl>
36#endif
37
38#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
39#include <com/sun/star/lang/IllegalArgumentException.idl>
40#endif
41
42#ifndef __com_sun_star_uno_Exception_idl__
43#include <com/sun/star/uno/Exception.idl>
44#endif
45
46//=============================================================================
47
48module com { module sun { module star { module document {
49
50//=============================================================================
51/** allows to import the document properties from OOXML fomat
52 */
53interface XOOXMLDocumentPropertiesImporter: com::sun::star::uno::XInterface
54{
55	// -----------------------------------------------------------------------
56	/** allows to import the document properties from OOXML format
57
58		<p>
59        The implementation should parse the document properties from OOXML
60        format storage and set them to the target
61        <type>XDocumentProperties</type> implementation.
62		</p>
63
64		<p>
65        The storage must represent OOXML format and support
66        <type scope="com::sun::star::embed">XRelationshipAccess</type>
67        interface. Please see
68        <type scope="com::sun::star::embed">StorageFactory</type> for details
69        regarding creation of such a storage.
70		</p>
71
72        @param xSource
73            the source storage representing OOXML document
74
75        @param xDocumentProperties
76            the target <type>XDocumentProperties</type> interface implementation
77
78		@throws ::com::sun::star::lang::IllegalArgumentException
79            the exception is thrown in case unexpected arguments are provided
80
81		@throws ::com::sun::star::xml::sax::SAXException
82            the exception is thrown in case of parsing problems
83
84		@throws ::com::sun::star::uno::Exception
85            the exception is thrown in case of other problems during the import
86	 */
87
88    void importProperties(
89        [in] com::sun::star::embed::XStorage xSource,
90        [in] com::sun::star::document::XDocumentProperties xDocumentProperties )
91            raises( com::sun::star::lang::IllegalArgumentException,
92                    com::sun::star::xml::sax::SAXException,
93                    com::sun::star::uno::Exception );
94};
95
96//=============================================================================
97
98}; }; }; };
99
100#endif
101
102