1d1766043SAndrew Rist/**************************************************************
2d1766043SAndrew Rist *
3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5d1766043SAndrew Rist * distributed with this work for additional information
6d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10d1766043SAndrew Rist *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12d1766043SAndrew Rist *
13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14d1766043SAndrew Rist * software distributed under the License is distributed on an
15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17d1766043SAndrew Rist * specific language governing permissions and limitations
18d1766043SAndrew Rist * under the License.
19d1766043SAndrew Rist *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_document_XDocumentProperties_idl__
24cdf0e10cSrcweir#define __com_sun_star_document_XDocumentProperties_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_beans_PropertyValue_idl__
27cdf0e10cSrcweir#include <com/sun/star/beans/PropertyValue.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_util_DateTime_idl__
31cdf0e10cSrcweir#include <com/sun/star/util/DateTime.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_lang_Locale_idl__
35cdf0e10cSrcweir#include <com/sun/star/lang/Locale.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir#ifndef __com_sun_star_beans_NamedValue_idl__
39cdf0e10cSrcweir#include <com/sun/star/beans/NamedValue.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir
42cdf0e10cSrcweir#ifndef __com_sun_star_embed_XStorage_idl__
43cdf0e10cSrcweir#include <com/sun/star/embed/XStorage.idl>
44cdf0e10cSrcweir#endif
45cdf0e10cSrcweir
46cdf0e10cSrcweir#ifndef __com_sun_star_io_IOException_idl__
47cdf0e10cSrcweir#include <com/sun/star/io/IOException.idl>
48cdf0e10cSrcweir#endif
49cdf0e10cSrcweir
50cdf0e10cSrcweir#ifndef __com_sun_star_io_WrongFormatException_idl__
51cdf0e10cSrcweir#include <com/sun/star/io/WrongFormatException.idl>
52cdf0e10cSrcweir#endif
53cdf0e10cSrcweir
54cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__
55cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
56cdf0e10cSrcweir#endif
57cdf0e10cSrcweir
58cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertyContainer_idl__
59cdf0e10cSrcweir#include <com/sun/star/beans/XPropertyContainer.idl>
60cdf0e10cSrcweir#endif
61cdf0e10cSrcweir
62cdf0e10cSrcweir
63cdf0e10cSrcweir//=============================================================================
64cdf0e10cSrcweir
65cdf0e10cSrcweirmodule com {   module sun {   module star {   module document {
66cdf0e10cSrcweir
67cdf0e10cSrcweir//=============================================================================
68cdf0e10cSrcweir/** provides document-specific information such as the author, creation date,
69cdf0e10cSrcweir    and user-defined fields.
70cdf0e10cSrcweir
71cdf0e10cSrcweir    <p>
72cdf0e10cSrcweir    This interface manages access to document meta-data properties.
73cdf0e10cSrcweir    Such properties may be set from the outside via the setter methods
74cdf0e10cSrcweir    (e.g. when importing arbitrary document formats that support
75cdf0e10cSrcweir    document properties), or imported from an ODF package via the methods
76cdf0e10cSrcweir    <member>loadFromStorage</member> and <member>loadFromMedium</member>.
77cdf0e10cSrcweir    The properties may also be stored via the methods
78cdf0e10cSrcweir    <member>storeToStorage</member> and <member>storeToMedium</member>.
79cdf0e10cSrcweir    </p>
80cdf0e10cSrcweir
81*34c958abSJürgen Schmidt    @since OpenOffice 3.0
82cdf0e10cSrcweir
83cdf0e10cSrcweir    @see XDocumentPropertiesSupplier
84cdf0e10cSrcweir            for getting access to an instance from a loaded document
85cdf0e10cSrcweir    @see DocumentProperties     for a service that implements this interface
86cdf0e10cSrcweir */
87cdf0e10cSrcweirpublished interface XDocumentProperties
88cdf0e10cSrcweir{
89cdf0e10cSrcweir    //-------------------------------------------------------------------------
90cdf0e10cSrcweir    /** contains the initial author of the document.
91cdf0e10cSrcweir     */
92cdf0e10cSrcweir
93cdf0e10cSrcweir    [attribute] string Author;
94cdf0e10cSrcweir
95cdf0e10cSrcweir    //-------------------------------------------------------------------------
96cdf0e10cSrcweir    /** identifies which application was used to create or last modify the
97cdf0e10cSrcweir        document.
98cdf0e10cSrcweir        <p>
99cdf0e10cSrcweir        The generating application will set this attribute when it creates a
100cdf0e10cSrcweir        new document or it saves a document. When a document is loaded that
101cdf0e10cSrcweir        itself contains such an attribute it will be preserved until the
102cdf0e10cSrcweir        document is saved again.
103cdf0e10cSrcweir        </p>
104cdf0e10cSrcweir     */
105cdf0e10cSrcweir
106cdf0e10cSrcweir    [attribute] string Generator;
107cdf0e10cSrcweir
108cdf0e10cSrcweir    //-------------------------------------------------------------------------
109cdf0e10cSrcweir    /** contains the date and time when the document was created.
110cdf0e10cSrcweir     */
111cdf0e10cSrcweir
112cdf0e10cSrcweir    [attribute] com::sun::star::util::DateTime CreationDate;
113cdf0e10cSrcweir
114cdf0e10cSrcweir    //-------------------------------------------------------------------------
115cdf0e10cSrcweir    /** contains the title of the document.
116cdf0e10cSrcweir     */
117cdf0e10cSrcweir
118cdf0e10cSrcweir    [attribute] string Title;
119cdf0e10cSrcweir
120cdf0e10cSrcweir    //-------------------------------------------------------------------------
121cdf0e10cSrcweir    /** contains the subject of the document.
122cdf0e10cSrcweir     */
123cdf0e10cSrcweir
124cdf0e10cSrcweir    [attribute] string Subject;
125cdf0e10cSrcweir
126cdf0e10cSrcweir    //-------------------------------------------------------------------------
127cdf0e10cSrcweir    /** contains a multi-line comment describing the document.
128cdf0e10cSrcweir        <p>
129cdf0e10cSrcweir        Line delimiters can be UNIX, Macintosh or DOS style.
130cdf0e10cSrcweir        </p>
131cdf0e10cSrcweir     */
132cdf0e10cSrcweir
133cdf0e10cSrcweir    [attribute] string Description;
134cdf0e10cSrcweir
135cdf0e10cSrcweir    //-------------------------------------------------------------------------
136cdf0e10cSrcweir    /** contains a list of keywords for the document.
137cdf0e10cSrcweir     */
138cdf0e10cSrcweir
139cdf0e10cSrcweir    [attribute] sequence< string > Keywords;
140cdf0e10cSrcweir
141cdf0e10cSrcweir    //-------------------------------------------------------------------------
142cdf0e10cSrcweir    /** contains the default language of the document.
143cdf0e10cSrcweir     */
144cdf0e10cSrcweir
145cdf0e10cSrcweir    [attribute] com::sun::star::lang::Locale Language;
146cdf0e10cSrcweir
147cdf0e10cSrcweir    //-------------------------------------------------------------------------
148cdf0e10cSrcweir    /** contains the name of the person who most recently stored the document.
149cdf0e10cSrcweir     */
150cdf0e10cSrcweir
151cdf0e10cSrcweir    [attribute] string ModifiedBy;
152cdf0e10cSrcweir
153cdf0e10cSrcweir    //-------------------------------------------------------------------------
154cdf0e10cSrcweir    /** contains the date and time of the last time the document was stored.
155cdf0e10cSrcweir        <p>
156cdf0e10cSrcweir        If the document has never been stored, contains a default value.
157cdf0e10cSrcweir        </p>
158cdf0e10cSrcweir     */
159cdf0e10cSrcweir
160cdf0e10cSrcweir    [attribute] com::sun::star::util::DateTime ModificationDate;
161cdf0e10cSrcweir
162cdf0e10cSrcweir    //-------------------------------------------------------------------------
163cdf0e10cSrcweir    /** contains the name of the person who most recently printed the document.
164cdf0e10cSrcweir     */
165cdf0e10cSrcweir
166cdf0e10cSrcweir    [attribute] string PrintedBy;
167cdf0e10cSrcweir
168cdf0e10cSrcweir    //-------------------------------------------------------------------------
169cdf0e10cSrcweir    /** contains the date and time when the document was last printed.
170cdf0e10cSrcweir        <p>
171cdf0e10cSrcweir        If the document has never been printed, contains a default value.
172cdf0e10cSrcweir        </p>
173cdf0e10cSrcweir     */
174cdf0e10cSrcweir
175cdf0e10cSrcweir    [attribute] com::sun::star::util::DateTime PrintDate;
176cdf0e10cSrcweir
177cdf0e10cSrcweir    //-------------------------------------------------------------------------
178cdf0e10cSrcweir    /** contains the name of the template from which the document was created.
179cdf0e10cSrcweir        <p>
180cdf0e10cSrcweir        The value is an empty <atom>string</atom> if the document was not
181cdf0e10cSrcweir        created from a template or if it was detached from the template.
182cdf0e10cSrcweir        </p>
183cdf0e10cSrcweir     */
184cdf0e10cSrcweir
185cdf0e10cSrcweir    [attribute] string TemplateName;
186cdf0e10cSrcweir
187cdf0e10cSrcweir    //-------------------------------------------------------------------------
188cdf0e10cSrcweir    /** contains the URL of the template from which the document was created.
189cdf0e10cSrcweir        <p>
190cdf0e10cSrcweir        The value is an empty <atom>string</atom> if the document was not
191cdf0e10cSrcweir        created from a template or if it was detached from the template.
192cdf0e10cSrcweir        </p>
193cdf0e10cSrcweir     */
194cdf0e10cSrcweir
195cdf0e10cSrcweir    [attribute] string TemplateURL;
196cdf0e10cSrcweir
197cdf0e10cSrcweir    //-------------------------------------------------------------------------
198cdf0e10cSrcweir    /** contains the date and time of when the document
199cdf0e10cSrcweir        was created or updated from the template.
200cdf0e10cSrcweir     */
201cdf0e10cSrcweir
202cdf0e10cSrcweir    [attribute] com::sun::star::util::DateTime TemplateDate;
203cdf0e10cSrcweir
204cdf0e10cSrcweir    //-------------------------------------------------------------------------
205cdf0e10cSrcweir    /** contains the URL to load automatically at a
206cdf0e10cSrcweir        specified time after the document is loaded into a desktop frame.
207cdf0e10cSrcweir        <p>
208cdf0e10cSrcweir        An empty URL is valid and describes a case where the document shall be
209cdf0e10cSrcweir        reloaded from its original loction after some time described by the
210cdf0e10cSrcweir        attribute <member>AutoloadSecs</member>.
211cdf0e10cSrcweir        An empty <atom>string</atom> together with an
212cdf0e10cSrcweir        <member>AutoloadSecs</member> value of 0
213cdf0e10cSrcweir        describes a case where no autoload is specified.
214cdf0e10cSrcweir        </p>
215cdf0e10cSrcweir
216cdf0e10cSrcweir        @see AutoloadSecs
217cdf0e10cSrcweir     */
218cdf0e10cSrcweir
219cdf0e10cSrcweir    [attribute] string AutoloadURL;
220cdf0e10cSrcweir
221cdf0e10cSrcweir    //-------------------------------------------------------------------------
222cdf0e10cSrcweir    /** contains the number of seconds after which a specified
223cdf0e10cSrcweir        URL is to be loaded after the document is loaded into a desktop
224cdf0e10cSrcweir        frame.
225cdf0e10cSrcweir        <p>
226cdf0e10cSrcweir        A value of 0 is valid and describes a redirection.
227cdf0e10cSrcweir        A value of 0 together with an empty <atom>string</atom> as
228cdf0e10cSrcweir        <member>AutoloadURL</member>
229cdf0e10cSrcweir        describes a case where no autoload is specified.
230cdf0e10cSrcweir        </p>
231cdf0e10cSrcweir
232cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
233cdf0e10cSrcweir            if argument is negative
234cdf0e10cSrcweir
235cdf0e10cSrcweir        @see AutoloadURL
236cdf0e10cSrcweir     */
237cdf0e10cSrcweir
238cdf0e10cSrcweir    [attribute] long AutoloadSecs {
239cdf0e10cSrcweir            set raises ( com::sun::star::lang::IllegalArgumentException );
240cdf0e10cSrcweir    };
241cdf0e10cSrcweir
242cdf0e10cSrcweir    //-------------------------------------------------------------------------
243cdf0e10cSrcweir    /** contains the name of the default frame into which
244cdf0e10cSrcweir        links should be loaded if no target is specified.
245cdf0e10cSrcweir        <p>
246cdf0e10cSrcweir        This applies to the autoload feature too, but to others as well.
247cdf0e10cSrcweir        </p>
248cdf0e10cSrcweir     */
249cdf0e10cSrcweir
250cdf0e10cSrcweir    [attribute] string DefaultTarget;
251cdf0e10cSrcweir
252cdf0e10cSrcweir    //-------------------------------------------------------------------------
253cdf0e10cSrcweir    /** contains some statistics about the document.
254cdf0e10cSrcweir        <p>
255cdf0e10cSrcweir        The contained statistics may be specific to the type of the document.
256cdf0e10cSrcweir        </p>
257cdf0e10cSrcweir     */
258cdf0e10cSrcweir
259cdf0e10cSrcweir    [attribute]
260cdf0e10cSrcweir         sequence< com::sun::star::beans::NamedValue > DocumentStatistics;
261cdf0e10cSrcweir
262cdf0e10cSrcweir    //-------------------------------------------------------------------------
263cdf0e10cSrcweir    /** describes how often the document was edited and saved.
264cdf0e10cSrcweir        <p>
265cdf0e10cSrcweir        </p>
266cdf0e10cSrcweir
267cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
268cdf0e10cSrcweir            if argument is negative
269cdf0e10cSrcweir     */
270cdf0e10cSrcweir
271cdf0e10cSrcweir    [attribute] short EditingCycles {
272cdf0e10cSrcweir            set raises ( com::sun::star::lang::IllegalArgumentException );
273cdf0e10cSrcweir    };
274cdf0e10cSrcweir
275cdf0e10cSrcweir    //-------------------------------------------------------------------------
276cdf0e10cSrcweir    /** contains the net time of editing the document (in seconds).
277cdf0e10cSrcweir        <p>
278cdf0e10cSrcweir        </p>
279cdf0e10cSrcweir
280cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
281cdf0e10cSrcweir            if argument is negative
282cdf0e10cSrcweir     */
283cdf0e10cSrcweir
284cdf0e10cSrcweir    [attribute] long EditingDuration {
285cdf0e10cSrcweir            set raises ( com::sun::star::lang::IllegalArgumentException );
286cdf0e10cSrcweir    };
287cdf0e10cSrcweir
288cdf0e10cSrcweir    //-------------------------------------------------------------------------
289cdf0e10cSrcweir    /** resets all attributes that could identify the user.
290cdf0e10cSrcweir        <p>
291cdf0e10cSrcweir        Clears the document properties, such that it apperars the document
292cdf0e10cSrcweir        has just been created.
293cdf0e10cSrcweir        This is a convenience method which resets several attributes at once,
294cdf0e10cSrcweir        as follows:
295cdf0e10cSrcweir        <ul>
296cdf0e10cSrcweir        <li><member>Author</member> is set to the given parameter.</li>
297cdf0e10cSrcweir        <li><member>CreationDate</member> is set to the current date and time.
298cdf0e10cSrcweir        </li>
299cdf0e10cSrcweir        <li><member>ModifiedBy</member> is cleared.</li>
300cdf0e10cSrcweir        <li><member>ModificationDate</member> is cleared.</li>
301cdf0e10cSrcweir        <li><member>PrintedBy</member> is cleared.</li>
302cdf0e10cSrcweir        <li><member>PrintDate</member> is cleared.</li>
303cdf0e10cSrcweir        <li><member>EditingDuration</member> is cleared.</li>
304cdf0e10cSrcweir        <li><member>EditingCycles</member> is set to 1.</li>
305cdf0e10cSrcweir        </ul>
306cdf0e10cSrcweir
307cdf0e10cSrcweir        @param Author
308cdf0e10cSrcweir            the new value of the <member>Author</member> attribute.
309cdf0e10cSrcweir        </p>
310cdf0e10cSrcweir     */
311cdf0e10cSrcweir    void resetUserData( [in] string Author );
312cdf0e10cSrcweir
313cdf0e10cSrcweir    //-------------------------------------------------------------------------
314cdf0e10cSrcweir    /** provides access to a container for user-defined properties.
315cdf0e10cSrcweir        <p>
316cdf0e10cSrcweir        The returned object also implements the interface
317cdf0e10cSrcweir        <type>com::sun::star::beans::XPropertySet</type>.
318cdf0e10cSrcweir        </p>
319cdf0e10cSrcweir        @returns    a container that provides access to user-defined properties
320cdf0e10cSrcweir     */
321cdf0e10cSrcweir
322cdf0e10cSrcweir    com::sun::star::beans::XPropertyContainer getUserDefinedProperties();
323cdf0e10cSrcweir
324cdf0e10cSrcweir    //-------------------------------------------------------------------------
325cdf0e10cSrcweir    /** loads document properties from an ODF package.
326cdf0e10cSrcweir        <p>
327cdf0e10cSrcweir        This method is used for accessing an ODF package that is owned by
328cdf0e10cSrcweir        someone else, e.g., a document.
329cdf0e10cSrcweir        </p>
330cdf0e10cSrcweir
331cdf0e10cSrcweir        @param Storage
332cdf0e10cSrcweir            the <type>com::sun::star::embed::Storage</type> representing the
333cdf0e10cSrcweir            ODF package
334cdf0e10cSrcweir
335cdf0e10cSrcweir        @param Medium
336cdf0e10cSrcweir            the <type>com::sun::star::document::MediaDescriptor</type>
337cdf0e10cSrcweir            representing the source
338cdf0e10cSrcweir            <p>
339cdf0e10cSrcweir            This is unfortunately necessary in order to properly resolve
340cdf0e10cSrcweir            relative URLs in the meta-data.
341cdf0e10cSrcweir            </p>
342cdf0e10cSrcweir
343cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
344cdf0e10cSrcweir                 if argument is <NULL/>
345cdf0e10cSrcweir        @throws com::sun::star::io::WrongFormatException
346cdf0e10cSrcweir                 if parsing the XML document fails
347cdf0e10cSrcweir        @throws com::sun::star::lang::WrappedTargetException
348cdf0e10cSrcweir                 if thrown when trying to open a stream in the given storage
349cdf0e10cSrcweir        @throws com::sun::star::io::IOException
350cdf0e10cSrcweir                 if thrown when trying to open a stream in the given storage
351cdf0e10cSrcweir     */
352cdf0e10cSrcweir
353cdf0e10cSrcweir    void loadFromStorage( [in] com::sun::star::embed::XStorage Storage,
354cdf0e10cSrcweir                [in] sequence < com::sun::star::beans::PropertyValue > Medium )
355cdf0e10cSrcweir        raises( com::sun::star::lang::IllegalArgumentException,
356cdf0e10cSrcweir                com::sun::star::io::WrongFormatException,
357cdf0e10cSrcweir                com::sun::star::lang::WrappedTargetException,
358cdf0e10cSrcweir                com::sun::star::io::IOException );
359cdf0e10cSrcweir
360cdf0e10cSrcweir    //-------------------------------------------------------------------------
361cdf0e10cSrcweir    /** loads document properties from an ODF package or an OLE container.
362cdf0e10cSrcweir
363cdf0e10cSrcweir        @param URL
364cdf0e10cSrcweir            the URL of the source document
365cdf0e10cSrcweir            <p>
366cdf0e10cSrcweir            The URL could be part of the Medium parameter, but because often
367cdf0e10cSrcweir            no other parameters except the URL are needed, providing it
368cdf0e10cSrcweir            separately was added for convenience.
369cdf0e10cSrcweir            </p>
370cdf0e10cSrcweir
371cdf0e10cSrcweir        @param Medium
372cdf0e10cSrcweir            the <type>com::sun::star::document::MediaDescriptor</type>
373cdf0e10cSrcweir            representing the source
374cdf0e10cSrcweir
375cdf0e10cSrcweir        @throws com::sun::star::io::WrongFormatException
376cdf0e10cSrcweir                 if parsing the XML document fails
377cdf0e10cSrcweir        @throws com::sun::star::lang::WrappedTargetException
378cdf0e10cSrcweir                 if thrown when trying to open a stream in the given storage
379cdf0e10cSrcweir        @throws com::sun::star::io::IOException
380cdf0e10cSrcweir                 if thrown when trying to open a stream in the given storage
381cdf0e10cSrcweir     */
382cdf0e10cSrcweir
383cdf0e10cSrcweir    void loadFromMedium( [in] string URL,
384cdf0e10cSrcweir                [in] sequence < com::sun::star::beans::PropertyValue > Medium )
385cdf0e10cSrcweir        raises( com::sun::star::io::WrongFormatException,
386cdf0e10cSrcweir                com::sun::star::lang::WrappedTargetException,
387cdf0e10cSrcweir                com::sun::star::io::IOException );
388cdf0e10cSrcweir
389cdf0e10cSrcweir    //-------------------------------------------------------------------------
390cdf0e10cSrcweir    /** stores document properties to an ODF package.
391cdf0e10cSrcweir        <p>
392cdf0e10cSrcweir        This method is used for accessing an ODF package that is owned by
393cdf0e10cSrcweir        someone else, e.g., a document.
394cdf0e10cSrcweir        Note that the implementation may choose to store the meta-data
395*34c958abSJürgen Schmidt        in either OpenOffice or ODF format, depending on the MediaType property
396cdf0e10cSrcweir        of the given <type>Storage</type> argument.
397cdf0e10cSrcweir        </p>
398cdf0e10cSrcweir
399cdf0e10cSrcweir        @param Storage
400cdf0e10cSrcweir            the <type>com::sun::star::embed::Storage</type> representing the
401cdf0e10cSrcweir            ODF package
402cdf0e10cSrcweir
403cdf0e10cSrcweir        @param Medium
404cdf0e10cSrcweir            the <type>com::sun::star::document::MediaDescriptor</type>
405cdf0e10cSrcweir            representing the source
406cdf0e10cSrcweir            <p>
407cdf0e10cSrcweir            This is unfortunately necessary in order to properly resolve
408cdf0e10cSrcweir            relative URLs in the meta-data.
409cdf0e10cSrcweir            </p>
410cdf0e10cSrcweir
411cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
412cdf0e10cSrcweir                 if argument is <NULL/>
413cdf0e10cSrcweir        @throws com::sun::star::lang::WrappedTargetException
414cdf0e10cSrcweir                 if thrown when trying to open a stream in the given storage
415cdf0e10cSrcweir        @throws com::sun::star::io::IOException
416cdf0e10cSrcweir                 if thrown when writing to the storage
417cdf0e10cSrcweir     */
418cdf0e10cSrcweir
419cdf0e10cSrcweir    void storeToStorage( [in] com::sun::star::embed::XStorage Storage,
420cdf0e10cSrcweir                [in] sequence < com::sun::star::beans::PropertyValue > Medium )
421cdf0e10cSrcweir        raises( com::sun::star::lang::IllegalArgumentException,
422cdf0e10cSrcweir                com::sun::star::lang::WrappedTargetException,
423cdf0e10cSrcweir                com::sun::star::io::IOException );
424cdf0e10cSrcweir
425cdf0e10cSrcweir    //-------------------------------------------------------------------------
426cdf0e10cSrcweir    /** stores document properties to an ODF package or an OLE container.
427cdf0e10cSrcweir
428cdf0e10cSrcweir        @param URL
429cdf0e10cSrcweir            the URL of the target document
430cdf0e10cSrcweir            <p>
431cdf0e10cSrcweir            The URL could be part of the Medium parameter, but because often
432cdf0e10cSrcweir            no other parameters except the URL are needed, providing it
433cdf0e10cSrcweir            separately was added for convenience.
434cdf0e10cSrcweir            </p>
435cdf0e10cSrcweir
436cdf0e10cSrcweir        @param Medium
437cdf0e10cSrcweir            the <type>com::sun::star::document::MediaDescriptor</type>
438cdf0e10cSrcweir            representing the target
439cdf0e10cSrcweir
440cdf0e10cSrcweir        @throws com::sun::star::lang::WrappedTargetException
441cdf0e10cSrcweir                 if thrown when trying to open a stream in the given storage
442cdf0e10cSrcweir        @throws com::sun::star::io::IOException
443cdf0e10cSrcweir                 if thrown when writing to the storage
444cdf0e10cSrcweir     */
445cdf0e10cSrcweir
446cdf0e10cSrcweir    void storeToMedium( [in] string URL,
447cdf0e10cSrcweir                [in] sequence < com::sun::star::beans::PropertyValue > Medium )
448cdf0e10cSrcweir        raises( com::sun::star::lang::WrappedTargetException,
449cdf0e10cSrcweir                com::sun::star::io::IOException );
450cdf0e10cSrcweir};
451cdf0e10cSrcweir
452cdf0e10cSrcweir//=============================================================================
453cdf0e10cSrcweir
454cdf0e10cSrcweir}; }; }; };
455cdf0e10cSrcweir
456cdf0e10cSrcweir#endif
457