/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
*
This service may be represented by a
Note:
Loading a component of type "template" creates a new untitled document
by default, but setting the "AsTemplate" property to
Only for storing versions in components supporting versioning:
author of version.
Defines the character set for document formats that contain single
byte characters (if necessary).
Only for storing versions in components supporting versioning:
comment (description) for stored version.
This is a parameter that can be used for any properties specific
for a special component type. Format of that depends from real
type of addressed component.
For extensibility, it is recommended to use values of type
sequence
This parameter can be used to specify a title for a document.
It contains the necessary information for encryption/decryption of
a component (if necessary).
If neither password nor encryption data is specified, loading of
a password protected document will fail, storing will be done without
encryption. If both are provided, the encryption data is used
( if the filter supports it ).
The encryption data is generated based on the password.
It will be supported for compatibility reasons only.
Name of a filter that should be used for loading or storing the component.
Names must match the names of the
It will be supported for compatibility reasons only.
Some filters need additional parameters; use only together with property
This is a parameter that can be used for any properties specific
for a special filter type. It should be used if
Defines if the loaded component is made visible. If this property is not
specified, the component is made visible by default.
If used when storing a document: writing must be done using this stream.
If no stream is provided, the loader will create a stream by itself using
the other properties. It is not allowed to keep a reference to this
OutputStream after storing the component.
If used when loading a document: reading must be done using this stream.
If no stream is provided, the loader will create a stream by itself using
the other properties. It is not allowed to keep a reference to this
InputStream after loading the component, and it would be useless, because
in general an InputStream is usable for reading only once, except when it
also implements the
Object implementing the
This is the same as the text behind a "#" in a http URL. But
this syntax with a "#" is not specified in most URL schemas.
Type of the medium to load, that must match to one of the types defined
in the
String that summarizes some flags for loading. The string contains capital
letters for the flags:
It's not allowed to hold member of this descriptor by references longer than they
will be used (especially a possible stream). It's allowed to use it directly
or by copying it only.
flag
value
replacement
ReadOnly
R
Preview
B
AsTemplate
T
Hidden
H
Setting this to
For storing only: overwrite any existing file, default is
It contains a password for loading or storing a component (if necessary). If neither password nor encryption data is specified, loading of a password protected document will fail, storing will be done without encryption. If both are provided, the encryption data is used ( if the filter supports it ).
*/ [optional,property] string Password; //------------------------------------------------------------------------- /** contains the data for HTTP post method as a sequence of bytes.Data to send to a location described by the media descriptor to get a result in return that will be loaded as a component (usually in webforms). Default is: no PostData.
*/ [optional,property] sequence< byte > PostData; //------------------------------------------------------------------------- /** useSame as PostData, but the data is transferred as a string (just for compatibility).
@deprecated */ [optional,property] string PostString; //------------------------------------------------------------------------- /** show preview
Setting this to
Tells whether a document should be loaded in a (logical) readonly or in read/write mode. If opening in the desired mode is impossible, an error occurs. By default the loaded content decides what to do: if its UCB content supports a "readonly" property, the logical open mode depends on that, otherwise it will be read/write. This is only a UI related property, opening a document in read only mode will not prevent the component from being modified by API calls, but all modifying functionality in the UI will be disabled or removed.
*/ [optional,property] boolean ReadOnly; //------------------------------------------------------------------------- /** start presentation from a documentTells the component loading the document that a presentation that is in the document is to be started right away.
*/ [optional,property] boolean StartPresentation; //------------------------------------------------------------------------- /** name of document referrer
A URL describing the environment of the request; e.g. a referrer may be a
URL of a document, if a hyperlink inside this document is clicked to load
another document. The referrer may be evaluated by the addressed UCB content
or the loaded document. Without a referrer the processing of URLs that
needs security checks will be denied, e.g. "macro:" URLs.
Don't be confused about the wrong spelling; it is kept for compatibility reasons.
For loading of corrupted zip packages: Setting this to
Object implementing the
If the parameter is specified, the URL will be used by SaveAs dialog next time as target folder.
*/ [optional,property] string SuggestedSaveAsDir; //------------------------------------------------------------------------- /** allows to specify the suggested file name that is used next time SaveAs dialog is openedIf the parameter is specified, the file name will be suggested by SaveAs dialog next time.
*/ [optional,property] string SuggestedSaveAsName; //------------------------------------------------------------------------- /** name of the template instead of the URL
The logical name of a template to load. Together with the
The logical name of a template to load. Together with the
For storing: Setting this to
The location of the component in URL syntax. It must be the full qualified URL and
*/ [optional,property] string URL; //------------------------------------------------------------------------- /** storage versionFor components supporting versioning: the number of the version to be loaded or saved. Default is zero and means: no version is created or loaded, the "main" document is processed.
*/ [optional,property] short Version; //------------------------------------------------------------------------- /** set special view state
Data to set a special view state after loading. The type depends on
the component and is usually retrieved from a
For components supporting different views: a number to define the view that should be constructed after loading. Default is: zero, and this should be treated by the component as the default view.
*/ [optional,property] short ViewId; //------------------------------------------------------------------------- /** should the macro be executed. the value should be one fromIf this property is used when loading a document into a frame, then it
specifies the name of the view controller to create. That is, the property
is passed to the document's
If the loaded document does not support the XModel2
interface,
the property is ignored.