|
Syntax
- boolean hasLocation
();
Returns
-
true
if the object knows a location where it is persistent.
The object may know the location because it was loaded from there,
or because it is stored there.
Syntax
- string getLocation
();
Returns
-
the URL of the resource which is represented by this object.
After XStorable::storeAsURL it returns the
URL the object was stored to.
Syntax
- boolean isReadonly
();
Returns
-
true
if the data store is readonly or opened readonly.
It is not possible to call store() successfully when the data
store is read-only.
Syntax
- void store
();
- raises ( com::sun::star::io::IOException );
Description
stores the data to the URL from which it was loaded.
Only objects which know their locations can be stored.
Syntax
- void storeAsURL
(
- string aURL,
- sequence< com::sun::star::beans::PropertyValue > aArgs )
- raises ( com::sun::star::io::IOException );
Description
stores the object's persistent data to a URL and
lets the object become the representation of this new URL.
This is the normal behavior for UI's "save-as" feature.
The arguments depend on the object itself. Commonly used are:
- string FilterName
- The programmatic name of the file format filter to be used.
- string FilterFlags
- This string contains flags which depend on the filter.
They describe how the data is to be stored. (E.g., the
field delimitors for text database formats or the
character set.)
- boolean Overwrite
- Overwrites the target file if it exists. Otherwise the
call would result in an exception if the file exists.
- string Password
- This argument specifies the password to be used to
encrypt the document.
See also
- storeTo
-
See also
- MediaDescriptor
-
for more information on values for aArgs .
Syntax
- void storeToURL
(
- string aURL,
- sequence< com::sun::star::beans::PropertyValue > aArgs )
- raises ( com::sun::star::io::IOException );
Description
stores the object's persistent data to a URL and
continues to be a representation of the old URL.
This is the normal behavior for UI's export feature.
See also
- storeAs
-
See also
- MediaDescriptor
-
for more information on values for aArgs .
|