1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com
{ module sun
{ module star
{ module document
{
23 /** allows to import the document properties from OOXML format
25 interface XOOXMLDocumentPropertiesImporter
: com
::sun
::star
::uno
::XInterface
27 /** allows to import the document properties from OOXML format
30 The implementation should parse the document properties from OOXML
31 format storage and set them to the target
32 XDocumentProperties implementation.
36 The storage must represent OOXML format and support
37 com::sun::star::embed::XRelationshipAccess
39 com::sun::star::embed::StorageFactory for details
40 regarding creation of such a storage.
44 the source storage representing OOXML document
46 @param xDocumentProperties
47 the target XDocumentProperties interface implementation
49 @throws ::com::sun::star::lang::IllegalArgumentException
50 the exception is thrown in case unexpected arguments are provided
52 @throws ::com::sun::star::xml::sax::SAXException
53 the exception is thrown in case of parsing problems
55 @throws ::com::sun::star::uno::Exception
56 the exception is thrown in case of other problems during the import
59 void importProperties
(
60 [in] com
::sun
::star
::embed
::XStorage xSource
,
61 [in] com
::sun
::star
::document
::XDocumentProperties xDocumentProperties
)
62 raises
( com
::sun
::star
::lang
::IllegalArgumentException
,
63 com
::sun
::star
::xml
::sax
::SAXException
,
64 com
::sun
::star
::uno
::Exception
);
66 /** find and get core properties stream
68 (usually it is docProps\core.xml)
69 @since LibreOffice 7.3
72 com
::sun
::star
::io
::XInputStream getCorePropertiesStream
([in] com
::sun
::star
::embed
::XStorage xSource
);
74 /** find and get extended properties stream
76 (usually it is docProps/app.xml)
77 @since LibreOffice 7.3
80 com
::sun
::star
::io
::XInputStream getExtendedPropertiesStream
([in] com
::sun
::star
::embed
::XStorage xSource
);
82 /** find and get custom properties streams
84 (usually it is customXml\*.xml)
85 @since LibreOffice 7.3
88 sequence
< com
::sun
::star
::io
::XInputStream
> getCustomPropertiesStreams
([in] com
::sun
::star
::embed
::XStorage xSource
);
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */