1d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
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_MediaDescriptor_idl__
24cdf0e10cSrcweir#define __com_sun_star_document_MediaDescriptor_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_io_XOutputStream_idl__
27cdf0e10cSrcweir#include <com/sun/star/io/XOutputStream.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_io_XInputStream_idl__
31cdf0e10cSrcweir#include <com/sun/star/io/XInputStream.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_awt_Rectangle_idl__
35cdf0e10cSrcweir#include <com/sun/star/awt/Rectangle.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_util_URL_idl__
43cdf0e10cSrcweir#include <com/sun/star/util/URL.idl>
44cdf0e10cSrcweir#endif
45cdf0e10cSrcweir
46cdf0e10cSrcweir#ifndef __com_sun_star_task_XInteractionHandler_idl__
47cdf0e10cSrcweir#include <com/sun/star/task/XInteractionHandler.idl>
48cdf0e10cSrcweir#endif
49cdf0e10cSrcweir
50cdf0e10cSrcweir#ifndef __com_sun_star_task_XStatusIndicator_idl__
51cdf0e10cSrcweir#include <com/sun/star/task/XStatusIndicator.idl>
52cdf0e10cSrcweir#endif
53cdf0e10cSrcweir
54cdf0e10cSrcweir#ifndef __com_sun_star_frame_XFrame_idl__
55cdf0e10cSrcweir#include <com/sun/star/frame/XFrame.idl>
56cdf0e10cSrcweir#endif
57cdf0e10cSrcweir
58cdf0e10cSrcweir//=============================================================================
59cdf0e10cSrcweir
60cdf0e10cSrcweirmodule com { module sun { module star { module document {
61cdf0e10cSrcweir
62cdf0e10cSrcweir//=============================================================================
63cdf0e10cSrcweir/** describes properties of a document, regarding the relationship
64cdf0e10cSrcweir	between the loaded document and the resource the document is
65cdf0e10cSrcweir	loaded from / stored to.
66cdf0e10cSrcweir
67cdf0e10cSrcweir    <p>
68cdf0e10cSrcweir    This service may be represented by a
69cdf0e10cSrcweir    <type scope="com::sun::star::beans" dim="[]">PropertyValue</type>.
70cdf0e10cSrcweir    Such descriptors will be passed to different functions, included into possible
71cdf0e10cSrcweir    load/save proccesses. Every member of such process can use this descriptor
72cdf0e10cSrcweir    and may change it if to actualize the informations about the document.
73cdf0e10cSrcweir    So this descriptor should be used as an in/out parameter.
74cdf0e10cSrcweir    </p>
75cdf0e10cSrcweir
76cdf0e10cSrcweir    <p>
77cdf0e10cSrcweir    Note:<br>
78cdf0e10cSrcweir    It's not allowed to hold member of this descriptor by references longer the they
79cdf0e10cSrcweir    will be used (especialy a possible stream). It's allowed to use it directly
80cdf0e10cSrcweir    or by copying it only.
81cdf0e10cSrcweir    </p>
82cdf0e10cSrcweir
83cdf0e10cSrcweir	@see com::sun::star::beans::PropertyValue
84cdf0e10cSrcweir */
85cdf0e10cSrcweirpublished service MediaDescriptor
86cdf0e10cSrcweir{
87cdf0e10cSrcweir    //-------------------------------------------------------------------------
88cdf0e10cSrcweir    /** May be set by filters or detection services if user has choosen to
89cdf0e10cSrcweir        abort loading/saving, e.g. while entering a password.
90cdf0e10cSrcweir     */
91cdf0e10cSrcweir    [optional,property] boolean Aborted;
92cdf0e10cSrcweir
93cdf0e10cSrcweir	//-------------------------------------------------------------------------
94cdf0e10cSrcweir    /** document is a template
95cdf0e10cSrcweir
96cdf0e10cSrcweir        <p>
97cdf0e10cSrcweir        Loading a component of type "template" creates a new untitled document
98cdf0e10cSrcweir        by default, but setting the "AsTemplate" property to <FALSE/> loads the
99cdf0e10cSrcweir        template document for editing. Setting "AsTemplate" to <TRUE/> creates a
100cdf0e10cSrcweir        new untitled document out of the loaded document, even if it has not
101cdf0e10cSrcweir        a "template" type.
102cdf0e10cSrcweir        </p>
103cdf0e10cSrcweir     */
104cdf0e10cSrcweir	[optional,property] boolean AsTemplate;
105cdf0e10cSrcweir
106cdf0e10cSrcweir	//-------------------------------------------------------------------------
107cdf0e10cSrcweir    /** the author of the document
108cdf0e10cSrcweir
109cdf0e10cSrcweir        <p>
110cdf0e10cSrcweir        Only for storing versions in components supporting versioning:
111cdf0e10cSrcweir        author of version.
112cdf0e10cSrcweir        </p>
113cdf0e10cSrcweir     */
114cdf0e10cSrcweir    [optional,property] string Author;
115cdf0e10cSrcweir
116cdf0e10cSrcweir	//-------------------------------------------------------------------------
117cdf0e10cSrcweir    /** identifier of used character set
118cdf0e10cSrcweir
119cdf0e10cSrcweir        <p>
120cdf0e10cSrcweir        Defines the character set for document formats that contain single
121cdf0e10cSrcweir        byte characters (if necessary).
122cdf0e10cSrcweir        </p>
123cdf0e10cSrcweir     */
124cdf0e10cSrcweir	[optional,property] string CharacterSet;
125cdf0e10cSrcweir
126cdf0e10cSrcweir	//-------------------------------------------------------------------------
127cdf0e10cSrcweir    /** description of document
128cdf0e10cSrcweir
129cdf0e10cSrcweir        <p>
130cdf0e10cSrcweir        Only for storing versions in components supporting versioning:
131cdf0e10cSrcweir        comment (description) for stored version.
132cdf0e10cSrcweir        </p>
133cdf0e10cSrcweir     */
134cdf0e10cSrcweir    [optional,property] string Comment;
135cdf0e10cSrcweir
136cdf0e10cSrcweir	//-------------------------------------------------------------------------
137cdf0e10cSrcweir    /** pack specific properties of caller
138cdf0e10cSrcweir
139cdf0e10cSrcweir        <p>
140cdf0e10cSrcweir        This is a parameter that can be used for any properties specific
141cdf0e10cSrcweir        for a special component type. Format of that depends from real
142cdf0e10cSrcweir        type of adressed component.
143cdf0e10cSrcweir        </p>
144cdf0e10cSrcweir
145cdf0e10cSrcweir        <p>
146cdf0e10cSrcweir        For extensibility, it is recommended to use values of type
147cdf0e10cSrcweir        sequence<com.sun.star.beans.NamedValue> with this property.
148cdf0e10cSrcweir        </p>
149cdf0e10cSrcweir     */
150cdf0e10cSrcweir    [optional,property] any ComponentData;
151cdf0e10cSrcweir
152cdf0e10cSrcweir	//-------------------------------------------------------------------------
153cdf0e10cSrcweir	/** The base URL of the document to be used to resolve relative links.
154cdf0e10cSrcweir	 */
155cdf0e10cSrcweir	[optional,property] string DocumentBaseURL;
156cdf0e10cSrcweir
157cdf0e10cSrcweir	//-------------------------------------------------------------------------
158cdf0e10cSrcweir    /** document title
159cdf0e10cSrcweir
160cdf0e10cSrcweir        <p>
161cdf0e10cSrcweir		This parameter can be used to specify a title for a document.
162cdf0e10cSrcweir		</p>
163cdf0e10cSrcweir	 */
164cdf0e10cSrcweir	[optional,property] string DocumentTitle;
165cdf0e10cSrcweir
166cdf0e10cSrcweir	//-------------------------------------------------------------------------
167cdf0e10cSrcweir    /** encryption information for encryption/decryption of documents
168cdf0e10cSrcweir
169cdf0e10cSrcweir        <p>
170cdf0e10cSrcweir        It contains the necessary information for encryption/decryption of
171cdf0e10cSrcweir        a component (if necessary).
172cdf0e10cSrcweir        If neither password nor encryption data is specified, loading of
173cdf0e10cSrcweir        a password protected document will fail, storing will be done without
174cdf0e10cSrcweir        encryption. If both are provided, the encryption data is used
175cdf0e10cSrcweir        ( if the filter supports it ).
176cdf0e10cSrcweir        </p>
177cdf0e10cSrcweir        <p>
178cdf0e10cSrcweir        The encryption data is generated based on the password.
179cdf0e10cSrcweir        </p>
180cdf0e10cSrcweir     */
181cdf0e10cSrcweir    [optional,property] sequence< ::com::sun::star::beans::NamedValue > EncryptionData;
182cdf0e10cSrcweir
183cdf0e10cSrcweir	//-------------------------------------------------------------------------
184cdf0e10cSrcweir    /** same as <member>MediaDescriptor::URL</member>
185cdf0e10cSrcweir
186cdf0e10cSrcweir        <p>
187cdf0e10cSrcweir        It will be supported for compatibility reasons only.
188cdf0e10cSrcweir        </p>
189cdf0e10cSrcweir
190cdf0e10cSrcweir        @deprecated
191cdf0e10cSrcweir     */
192cdf0e10cSrcweir    [optional,property] string FileName;
193cdf0e10cSrcweir
194cdf0e10cSrcweir	//-------------------------------------------------------------------------
195cdf0e10cSrcweir    /** internal filter name
196cdf0e10cSrcweir
197cdf0e10cSrcweir        <p>
198cdf0e10cSrcweir        Name of a filter that should be used for loading or storing the component.
199cdf0e10cSrcweir        Names must match the names of the <type>TypeDetection</type> configuration,
200cdf0e10cSrcweir        invalid names are ignored. If a name is specified on loading,
201cdf0e10cSrcweir        it still will be verified by a filter detection, but in case of doubt
202cdf0e10cSrcweir        it will be preferred.
203cdf0e10cSrcweir        </p>
204cdf0e10cSrcweir	 */
205cdf0e10cSrcweir	[optional,property] string FilterName;
206cdf0e10cSrcweir
207cdf0e10cSrcweir	//-------------------------------------------------------------------------
208cdf0e10cSrcweir    /** same as <member>MediaDescriptor::FilterOptions</member>
209cdf0e10cSrcweir
210cdf0e10cSrcweir        <p>
211cdf0e10cSrcweir        It will be supported for compatibility reasons only.
212cdf0e10cSrcweir        </p>
213cdf0e10cSrcweir
214cdf0e10cSrcweir        @deprecated
215cdf0e10cSrcweir     */
216cdf0e10cSrcweir    [optional,property] string FilterFlags;
217cdf0e10cSrcweir
218cdf0e10cSrcweir	//-------------------------------------------------------------------------
219cdf0e10cSrcweir    /** additional properties for filter
220cdf0e10cSrcweir
221cdf0e10cSrcweir        <p>
222cdf0e10cSrcweir        Some filters need additional parameters; use only together with property
223cdf0e10cSrcweir        <member>MediaDescriptor::FilterName</member>. Details must be documented
224cdf0e10cSrcweir        by the filter. This is an old format for some filters. If a string is not
225cdf0e10cSrcweir        enough, filters can use the property <member>MediaDescriptor::FilterData</member>.
226cdf0e10cSrcweir        </p>
227cdf0e10cSrcweir     */
228cdf0e10cSrcweir    [optional,property] string FilterOptions;
229cdf0e10cSrcweir
230cdf0e10cSrcweir        //-------------------------------------------------------------------------
231cdf0e10cSrcweir    /** additional properties for filter
232cdf0e10cSrcweir
233cdf0e10cSrcweir        <p>
234cdf0e10cSrcweir        This is a parameter that can be used for any properties specific
235cdf0e10cSrcweir        for a special filter type. It should be used if
236cdf0e10cSrcweir        <member>MediaDescriptor::FilterOptions</member> isn't enough.
237cdf0e10cSrcweir        </p>
238cdf0e10cSrcweir     */
239cdf0e10cSrcweir    [optional,property] any FilterData;
240cdf0e10cSrcweir
241cdf0e10cSrcweir	//-------------------------------------------------------------------------
242cdf0e10cSrcweir    /** load document invisible
243cdf0e10cSrcweir
244cdf0e10cSrcweir        <p>
245cdf0e10cSrcweir        Defines if the loaded component is made visible. If this property is not
246cdf0e10cSrcweir        specified, the component is made visible by default.
247cdf0e10cSrcweir        </p>
248cdf0e10cSrcweir	 */
249cdf0e10cSrcweir    [optional,property] boolean Hidden;
250cdf0e10cSrcweir
251cdf0e10cSrcweir	//-------------------------------------------------------------------------
252cdf0e10cSrcweir	/** The hierarchical path to the embedded document from topmost container.
253cdf0e10cSrcweir	 */
254cdf0e10cSrcweir	[optional,property] string HierarchicalDocumentName;
255cdf0e10cSrcweir
256cdf0e10cSrcweir	//-------------------------------------------------------------------------
257cdf0e10cSrcweir    /** a stream to receive the document data.
258cdf0e10cSrcweir
259cdf0e10cSrcweir        <p>
260cdf0e10cSrcweir        If used when storing a document: writing must be done using this stream.
261cdf0e10cSrcweir        If no stream is provided, the loader will create a stream by itself using
262cdf0e10cSrcweir        the other properties. It is not allowed to keep a reference to this
263cdf0e10cSrcweir        OutputStream after storing the component.
264cdf0e10cSrcweir        </p>
265cdf0e10cSrcweir	 */
266cdf0e10cSrcweir    [optional,property] com::sun::star::io::XOutputStream OutputStream;
267cdf0e10cSrcweir
268cdf0e10cSrcweir	//-------------------------------------------------------------------------
269cdf0e10cSrcweir    /** content of document
270cdf0e10cSrcweir
271cdf0e10cSrcweir        <p>
272cdf0e10cSrcweir        If used when loading a document: reading must be done using this stream.
273cdf0e10cSrcweir        If no stream is provided, the loader will create a stream by itself using
274cdf0e10cSrcweir        the other properties. It is not allowed to keep a reference to this
275cdf0e10cSrcweir        InputStream after loading the component, and it would be useless, because
276cdf0e10cSrcweir        in general an InputStream is usable for readong only once, except when it
277cdf0e10cSrcweir        also implements the <type scope="com::sun::star::io">XSeekable</type> interface.
278cdf0e10cSrcweir        </p>
279cdf0e10cSrcweir	 */
280cdf0e10cSrcweir    [optional,property] com::sun::star::io::XInputStream InputStream;
281cdf0e10cSrcweir
282cdf0e10cSrcweir	//-------------------------------------------------------------------------
283cdf0e10cSrcweir    /** handle exceptional situations
284cdf0e10cSrcweir
285cdf0e10cSrcweir        <p>
286cdf0e10cSrcweir        Object implementing the <type scope="com::sun::star::task">InteractionHandler</type>
287cdf0e10cSrcweir        service that is used to handle exceptional situations where proceeding with the task
288cdf0e10cSrcweir        is impossible without additional information or impossible at all.
289cdf0e10cSrcweir        The implemented api provides a default implementation for it that can handle many situations.
290cdf0e10cSrcweir        If no InteractionHandler is set, a suitable exception is thrown.
291cdf0e10cSrcweir        It is not allowed to keep a reference to this object, even not in the loaded
292cdf0e10cSrcweir        or stored components' copy of the MediaDescriptor provided by its arguments attribute.
293cdf0e10cSrcweir        </p>
294cdf0e10cSrcweir     */
295cdf0e10cSrcweir    [optional,property] com::sun::star::task::XInteractionHandler InteractionHandler;
296cdf0e10cSrcweir
297cdf0e10cSrcweir	//-------------------------------------------------------------------------
298cdf0e10cSrcweir    /** jump to a marked position after loading
299cdf0e10cSrcweir
300cdf0e10cSrcweir        <p>
301cdf0e10cSrcweir        This is the same as the text behind a '#' in a http URL. But
302cdf0e10cSrcweir        this syntax with a '#' is not specified in most URL schemas.
303cdf0e10cSrcweir		</p>
304cdf0e10cSrcweir	 */
305cdf0e10cSrcweir	[optional,property] string JumpMark;
306cdf0e10cSrcweir
307cdf0e10cSrcweir	//-------------------------------------------------------------------------
308cdf0e10cSrcweir    /** specify mime type of content
309cdf0e10cSrcweir
310cdf0e10cSrcweir        <p>
311cdf0e10cSrcweir        Type of the medium to load, that must match to one of the types defined
312cdf0e10cSrcweir        in the <type>TypeDetection</type> configuration (otherwise it's ignored).
313cdf0e10cSrcweir        This bypasses the type detection of the <type scope="com::sun::star::frame">Desktop</type> environment,
314cdf0e10cSrcweir        so passing a wrong MediaType will cause failure of loading.
315cdf0e10cSrcweir        </p>
316cdf0e10cSrcweir	 */
317cdf0e10cSrcweir	[optional,property] string MediaType;
318cdf0e10cSrcweir
319cdf0e10cSrcweir	//-------------------------------------------------------------------------
320cdf0e10cSrcweir    /** please use the corresponding parameters of this descriptor instead
321cdf0e10cSrcweir
322cdf0e10cSrcweir        <p>
323cdf0e10cSrcweir        String that summarizes some flags for loading. The string contains capital
324cdf0e10cSrcweir        letters for the flags:<br>
325cdf0e10cSrcweir        <table border=1>
326cdf0e10cSrcweir            <tr>
327cdf0e10cSrcweir                <td><strong>flag</strong></td>
328cdf0e10cSrcweir                <td><strong>value</strong></td>
329cdf0e10cSrcweir                <td><strong>replacement</strong></td>
330cdf0e10cSrcweir            </tr>
331cdf0e10cSrcweir            <tr>
332cdf0e10cSrcweir                <td><em>ReadOnly</em></td>
333cdf0e10cSrcweir                <td>R</td>
334cdf0e10cSrcweir                <td><member>MediaDescriptor::ReadOnly</member></td>
335cdf0e10cSrcweir            </tr>
336cdf0e10cSrcweir            <tr>
337cdf0e10cSrcweir                <td><em>Preview</em></td>
338cdf0e10cSrcweir                <td>B</td>
339cdf0e10cSrcweir                <td><member>MediaDescriptor::Preview</member></td>
340cdf0e10cSrcweir            </tr>
341cdf0e10cSrcweir            <tr>
342cdf0e10cSrcweir                <td><em>AsTemplate</em></td>
343cdf0e10cSrcweir                <td>T</td>
344cdf0e10cSrcweir                <td><member>MediaDescriptor::AsTemplate</member></td>
345cdf0e10cSrcweir            </tr>
346cdf0e10cSrcweir            <tr>
347cdf0e10cSrcweir                <td><em>Hidden</em></td>
348cdf0e10cSrcweir                <td>H</td>
349cdf0e10cSrcweir                <td><member>MediaDescriptor::Hidden</member></td>
350cdf0e10cSrcweir            </tr>
351cdf0e10cSrcweir        </table>
352cdf0e10cSrcweir        </p>
353cdf0e10cSrcweir
354cdf0e10cSrcweir        @deprecated
355cdf0e10cSrcweir     */
356cdf0e10cSrcweir    [optional,property] string OpenFlags;
357cdf0e10cSrcweir
358cdf0e10cSrcweir	//-------------------------------------------------------------------------
359cdf0e10cSrcweir    /** opens a new view for an already loaded document
360cdf0e10cSrcweir
361cdf0e10cSrcweir        <p>
362cdf0e10cSrcweir        Setting this to <TRUE/> forces the component to create a new window on loading
363cdf0e10cSrcweir        in any case. If the component supports multiple views, a second view is
364cdf0e10cSrcweir        opened, if not, the component is loaded one more time. Otherwise the behavior
365cdf0e10cSrcweir        depends on the default window handling of the <type scope="com::sun::star::frame">Desktop</type> environment.
366cdf0e10cSrcweir        </p>
367cdf0e10cSrcweir	 */
368cdf0e10cSrcweir	[optional,property] boolean OpenNewView;
369cdf0e10cSrcweir
370cdf0e10cSrcweir
371cdf0e10cSrcweir	//-------------------------------------------------------------------------
372cdf0e10cSrcweir    /** overwrite any existing file
373cdf0e10cSrcweir
374cdf0e10cSrcweir        <p>
375cdf0e10cSrcweir        For storing only: overwrite any existing file, default is <FALSE/>,
376cdf0e10cSrcweir        so an error occurs if the target file already exists.
377cdf0e10cSrcweir        </p>
378cdf0e10cSrcweir     */
379cdf0e10cSrcweir    [optional,property] boolean Overwrite;
380cdf0e10cSrcweir
381cdf0e10cSrcweir	//-------------------------------------------------------------------------
382cdf0e10cSrcweir    /** pasword for loading storing documents
383cdf0e10cSrcweir
384cdf0e10cSrcweir        <p>
385cdf0e10cSrcweir        It contains a password for loading or storing a component (if necessary).
386cdf0e10cSrcweir        If neither password nor encryption data is specified, loading of
387cdf0e10cSrcweir        a password protected document will fail, storing will be done without
388cdf0e10cSrcweir        encryption. If both are provided, the encryption data is used
389cdf0e10cSrcweir        ( if the filter supports it ).
390cdf0e10cSrcweir        </p>
391cdf0e10cSrcweir     */
392cdf0e10cSrcweir    [optional,property] string Password;
393cdf0e10cSrcweir
394cdf0e10cSrcweir	//-------------------------------------------------------------------------
395cdf0e10cSrcweir	/** contains the data for HTTP post method as a sequence of bytes.
396cdf0e10cSrcweir
397cdf0e10cSrcweir        <p>
398cdf0e10cSrcweir        Data to send to a location described by the media descriptor to get
399cdf0e10cSrcweir        a result in return that will be loaded as a component
400cdf0e10cSrcweir        (usually in webforms). Default is: no PostData.
401cdf0e10cSrcweir        </p>
402cdf0e10cSrcweir	 */
403cdf0e10cSrcweir    [optional,property] sequence< byte > PostData;
404cdf0e10cSrcweir
405cdf0e10cSrcweir	//-------------------------------------------------------------------------
406cdf0e10cSrcweir    /** use <member>MediaDescriptor::PostData</member> instead of this
407cdf0e10cSrcweir
408cdf0e10cSrcweir        <p>
409cdf0e10cSrcweir        Same as PostData, but the data is transferred as a string
410cdf0e10cSrcweir        (just for compatibility).
411cdf0e10cSrcweir        </p>
412cdf0e10cSrcweir
413cdf0e10cSrcweir        @deprecated
414cdf0e10cSrcweir	 */
415cdf0e10cSrcweir	[optional,property] string PostString;
416cdf0e10cSrcweir
417cdf0e10cSrcweir	//-------------------------------------------------------------------------
418cdf0e10cSrcweir    /** show preview
419cdf0e10cSrcweir
420cdf0e10cSrcweir        <p>
421cdf0e10cSrcweir        Setting this to <TRUE/> tells the a loaded component that it is loaded as
422cdf0e10cSrcweir        a preview, so it can optimize loading and viewing for this special purpose.
423cdf0e10cSrcweir        Default is <FALSE/>.
424cdf0e10cSrcweir        </p>
425cdf0e10cSrcweir	 */
426cdf0e10cSrcweir    [optional,property] boolean Preview;
427cdf0e10cSrcweir
428cdf0e10cSrcweir	//-------------------------------------------------------------------------
429cdf0e10cSrcweir    /** open document readonly
430cdf0e10cSrcweir
431cdf0e10cSrcweir        <p>
432cdf0e10cSrcweir        Tells whether a document should be loaded in a (logical) readonly or in
433cdf0e10cSrcweir        read/write mode. If opening in the desired mode is impossible, an error occurs.
434cdf0e10cSrcweir        By default the loaded content decides what to do: if its UCB content supports
435cdf0e10cSrcweir        a "readonly" property, the logical open mode depends on that, otherwise
436cdf0e10cSrcweir        it will be read/write. This is only a UI related property, opening a
437cdf0e10cSrcweir        document in read only mode will not prevent the component from being
438cdf0e10cSrcweir        modified by API calls, but all modifying functionality in the UI will
439cdf0e10cSrcweir        be disabled or removed.
440cdf0e10cSrcweir        </p>
441cdf0e10cSrcweir	 */
442cdf0e10cSrcweir	[optional,property] boolean ReadOnly;
443cdf0e10cSrcweir
444cdf0e10cSrcweir	//-------------------------------------------------------------------------
445cdf0e10cSrcweir    /** start presentation from a document
446cdf0e10cSrcweir
447cdf0e10cSrcweir        <p>
448cdf0e10cSrcweir        Tells the component loading the document that a presentation that is in the
449cdf0e10cSrcweir        document is to be started right away.
450cdf0e10cSrcweir        </p>
451cdf0e10cSrcweir    */
452cdf0e10cSrcweir    [optional,property] boolean StartPresentation;
453cdf0e10cSrcweir
454cdf0e10cSrcweir    //-------------------------------------------------------------------------
455cdf0e10cSrcweir    /** name of document referrer
456cdf0e10cSrcweir
457cdf0e10cSrcweir        <p>
458cdf0e10cSrcweir        A URL describing the environment of the request; f.e. a referrer may be a
459cdf0e10cSrcweir        URL of a document, if a hyperlink inside this document is clicked to load
460cdf0e10cSrcweir        another document. The referrer may be evaluated by the addressed UCB content
461cdf0e10cSrcweir        or the loaded document. Without a referrer the processing of URLs that
462cdf0e10cSrcweir        needs security checks will be denied, f.e. "macro:" URLs.
463cdf0e10cSrcweir        <br>
464cdf0e10cSrcweir        Don't be confused about the wrong spelling; is kept for compatibility reasons.
465cdf0e10cSrcweir        </p>
466cdf0e10cSrcweir	 */
467cdf0e10cSrcweir	[optional,property] string Referer;
468cdf0e10cSrcweir
469cdf0e10cSrcweir	//-------------------------------------------------------------------------
470cdf0e10cSrcweir    /** let the document be opened in repair mode
471cdf0e10cSrcweir
472cdf0e10cSrcweir        <p>
473cdf0e10cSrcweir        For loading of corrupted zip packages: Setting this to <TRUE/> let the document
474cdf0e10cSrcweir		be opened in repair mode, so as much as possible information will be retrieved.
475cdf0e10cSrcweir        </p>
476cdf0e10cSrcweir
477*34c958abSJürgen Schmidt	 @since OpenOffice 1.1.2
478cdf0e10cSrcweir	 */
479cdf0e10cSrcweir	[optional,property] boolean RepairPackage;
480cdf0e10cSrcweir
481cdf0e10cSrcweir	//-------------------------------------------------------------------------
482cdf0e10cSrcweir    /** can be used for status informations
483cdf0e10cSrcweir
484cdf0e10cSrcweir        <p>
485cdf0e10cSrcweir        Object implementing the <type scope="com::sun::star::task">XStatusIndicator</type>
486cdf0e10cSrcweir        interface that can be used to give status information (text or progress) for the task.
487cdf0e10cSrcweir        The office provides a default implementation for it. It is not allowed to keep
488cdf0e10cSrcweir        a reference to this object, even not in the loaded or stored components'
489cdf0e10cSrcweir        copy of the MediaDescriptor provided by its arguments attribute.
490cdf0e10cSrcweir        </p>
491cdf0e10cSrcweir     */
492cdf0e10cSrcweir    [optional,property] com::sun::star::task::XStatusIndicator StatusIndicator;
493cdf0e10cSrcweir
494cdf0e10cSrcweir    //-------------------------------------------------------------------------
495cdf0e10cSrcweir    /** allows to specify the URL that is used next time SaveAs dialog is opened
496cdf0e10cSrcweir
497cdf0e10cSrcweir        <p>
498cdf0e10cSrcweir        If the parameter is specified, the URL will be used by SaveAs dialog
499cdf0e10cSrcweir        next time as target folder.
500cdf0e10cSrcweir        </p>
501cdf0e10cSrcweir     */
502cdf0e10cSrcweir    [optional,property] string SuggestedSaveAsDir;
503cdf0e10cSrcweir
504cdf0e10cSrcweir    //-------------------------------------------------------------------------
505cdf0e10cSrcweir    /** allows to specify the suggested file name that is used next time SaveAs
506cdf0e10cSrcweir        dialog is opened
507cdf0e10cSrcweir
508cdf0e10cSrcweir        <p>
509cdf0e10cSrcweir        If the parameter is specified, the file name will be suggested by
510cdf0e10cSrcweir        SaveAs dialog next time.
511cdf0e10cSrcweir        </p>
512cdf0e10cSrcweir     */
513cdf0e10cSrcweir    [optional,property] string SuggestedSaveAsName;
514cdf0e10cSrcweir
515cdf0e10cSrcweir    //-------------------------------------------------------------------------
516cdf0e10cSrcweir    /** name of the template instead of the URL
517cdf0e10cSrcweir
518cdf0e10cSrcweir        <p>
519cdf0e10cSrcweir        The logical name of a template to load. Together with the <member>MediaDescriptor::TemplateRegion</member>
520cdf0e10cSrcweir        property it can be used instead of the URL of the template. Use always in conjunction with
521cdf0e10cSrcweir        <member>MediaDescriptor::TemplateRegionName</member>.
522cdf0e10cSrcweir        </p>
523cdf0e10cSrcweir	 */
524cdf0e10cSrcweir    [optional,property] string TemplateName;
525cdf0e10cSrcweir
526cdf0e10cSrcweir    //-------------------------------------------------------------------------
527cdf0e10cSrcweir    /** name of the template instead of the URL
528cdf0e10cSrcweir
529cdf0e10cSrcweir        <p>
530cdf0e10cSrcweir        The logical name of a template to load. Together with the <member>MediaDescriptor::TemplateRegion</member>
531cdf0e10cSrcweir        property it can be used instead of the URL of the template. Use always in conjunction with
532cdf0e10cSrcweir        <member>MediaDescriptor::TemplateRegionName</member>.
533cdf0e10cSrcweir        </p>
534cdf0e10cSrcweir	 */
535cdf0e10cSrcweir    [optional,property] string TemplateRegionName;
536cdf0e10cSrcweir
537cdf0e10cSrcweir    //-------------------------------------------------------------------------
538cdf0e10cSrcweir    /** regulate using of compressing
539cdf0e10cSrcweir
540cdf0e10cSrcweir        <p>
541cdf0e10cSrcweir        For storing: Setting this to <TRUE/> means, don't use a zip file to save
542cdf0e10cSrcweir        the document, use a folder instead (only usable for UCB contents, that
543cdf0e10cSrcweir        support folders). Default is <FALSE/>.
544cdf0e10cSrcweir        </p>
545cdf0e10cSrcweir     */
546cdf0e10cSrcweir    [optional,property] boolean Unpacked;
547cdf0e10cSrcweir
548cdf0e10cSrcweir    //-------------------------------------------------------------------------
549cdf0e10cSrcweir    /** URL of the document
550cdf0e10cSrcweir
551cdf0e10cSrcweir        <p>
552cdf0e10cSrcweir        The location of the component in URL syntax. It must be the full qualified URL and
553cdf0e10cSrcweir        must include f.e. an optional <member>MediaDescriptor::JumpMark</member> too.
554cdf0e10cSrcweir        </p>
555cdf0e10cSrcweir	 */
556cdf0e10cSrcweir    [optional,property] string URL;
557cdf0e10cSrcweir
558cdf0e10cSrcweir	//-------------------------------------------------------------------------
559cdf0e10cSrcweir    /** storage version
560cdf0e10cSrcweir
561cdf0e10cSrcweir        <p>
562cdf0e10cSrcweir        For components supporting versioning: the number of the version to be
563cdf0e10cSrcweir        loaded or saved. Default is zero and means: no version is created or
564cdf0e10cSrcweir        loaded, the "main" document is processed.
565cdf0e10cSrcweir        </p>
566cdf0e10cSrcweir	 */
567cdf0e10cSrcweir	[optional,property] short Version;
568cdf0e10cSrcweir
569cdf0e10cSrcweir    //-------------------------------------------------------------------------
570cdf0e10cSrcweir    /** set special view state
571cdf0e10cSrcweir        <p>
572cdf0e10cSrcweir        Data to set a special view state after loading. The type depends on
573cdf0e10cSrcweir        the component and is usually retrieved from a <type scope="com::sun::star::frame">Controller</type>
574cdf0e10cSrcweir        object by its <type scope="com::sun::star::frame">XController</type>
575cdf0e10cSrcweir        interface. Default is: no view data.
576cdf0e10cSrcweir        </p>
577cdf0e10cSrcweir	 */
578cdf0e10cSrcweir    [optional,property] any ViewData;
579cdf0e10cSrcweir
580cdf0e10cSrcweir	//-------------------------------------------------------------------------
581cdf0e10cSrcweir    /** id of the initial view
582cdf0e10cSrcweir
583cdf0e10cSrcweir        <p>
584cdf0e10cSrcweir        For components supporting different views: a number to define the view
585cdf0e10cSrcweir        that should be constructed after loading. Default is: zero, and this
586cdf0e10cSrcweir        should be treated by the component as the default view.
587cdf0e10cSrcweir        </p>
588cdf0e10cSrcweir	 */
589cdf0e10cSrcweir	[optional,property] short ViewId;
590cdf0e10cSrcweir
591cdf0e10cSrcweir	//-------------------------------------------------------------------------
592cdf0e10cSrcweir	/** should the macro be executed.
593cdf0e10cSrcweir		the value should be one from <type scope="com::sun::star::document">MacroExecMode</type>
594cdf0e10cSrcweir		constant list.
595cdf0e10cSrcweir
596*34c958abSJürgen Schmidt	    @since OpenOffice 1.1.2
597cdf0e10cSrcweir	 */
598cdf0e10cSrcweir	[optional,property] short MacroExecutionMode;
599cdf0e10cSrcweir
600cdf0e10cSrcweir	//-------------------------------------------------------------------------
601cdf0e10cSrcweir	/** can the document be updated depending from links.
602cdf0e10cSrcweir		the value should be one from <type scope="com::sun::star::document">UpdateDocMode</type>
603cdf0e10cSrcweir		constant list.
604cdf0e10cSrcweir
605*34c958abSJürgen Schmidt	    @since OpenOffice 1.1.2
606cdf0e10cSrcweir	 */
607cdf0e10cSrcweir	[optional,property] short UpdateDocMode;
608cdf0e10cSrcweir
609cdf0e10cSrcweir	//-------------------------------------------------------------------------
610cdf0e10cSrcweir	/** specifies the name of the view controller to create when loading a document
611cdf0e10cSrcweir
612cdf0e10cSrcweir        <p>If this property is used when loading a document into a frame, then it
613cdf0e10cSrcweir        specifies the name of the view controller to create. That is, the property
614cdf0e10cSrcweir        is passed to the document's <member scope="com::sun::star::frame">XModel2::createViewController</member>
615cdf0e10cSrcweir        method.<br/>
616cdf0e10cSrcweir        If the loaded document does not support the <code>XModel2</code> interface,
617cdf0e10cSrcweir        the property is ignored.</p>
618cdf0e10cSrcweir
619cdf0e10cSrcweir        @see ::com::sun::star::frame::XModel2::createViewController
620cdf0e10cSrcweir        @see ::com::sun::star::frame::XController2::ViewControllerName
621cdf0e10cSrcweir
622*34c958abSJürgen Schmidt	    @since OpenOffice 3.0
623cdf0e10cSrcweir	 */
624cdf0e10cSrcweir	[optional,property] string ViewControllerName;
625cdf0e10cSrcweir	//-------------------------------------------------------------------------
626cdf0e10cSrcweir
627cdf0e10cSrcweir	/** specifies the frame containing the document. May be empty.
628cdf0e10cSrcweir	 */
629cdf0e10cSrcweir	[optional,property] com::sun::star::frame::XFrame Frame;
630cdf0e10cSrcweir};
631cdf0e10cSrcweir
632cdf0e10cSrcweir//=============================================================================
633cdf0e10cSrcweir
634cdf0e10cSrcweir}; }; }; };
635cdf0e10cSrcweir
636cdf0e10cSrcweir#endif
637