(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: document ::

unpublished interface XStorageBasedDocument
Usage Restrictions
not published
Description
allows to initialize document with a storage, to store document to a storage, and to set document to be based on provided storage.

Methods' Summary
loadFromStorage lets the document load itself using provided storage.  
storeToStorage lets the document store itself to the provided storage.  
switchToStorage allows to switch the document to the provided storage.  
getDocumentStorage allows to get the storage the document is based on.  
addStorageChangeListener allows to register a listener that will be notified when another storage is set to the document.  
removeStorageChangeListener allows to deregister the listener.  
Methods' Details
loadFromStorage
void
loadFromStorage( [in] ::com::sun::star::embed::XStorage  xStorage,
[in] sequence< ::com::sun::star::beans::PropertyValue >  aMediaDescriptor )
raises( ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::frame::DoubleInitializationException,
::com::sun::star::io::IOException,
::com::sun::star::uno::Exception );

Description
lets the document load itself using provided storage.
storeToStorage
void
storeToStorage( [in] ::com::sun::star::embed::XStorage  xStorage,
[in] sequence< ::com::sun::star::beans::PropertyValue >  aMediaDescriptor )
raises( ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::io::IOException,
::com::sun::star::uno::Exception );

Description
lets the document store itself to the provided storage.
switchToStorage
void
switchToStorage( [in] ::com::sun::star::embed::XStorage  xStorage )
raises( ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::io::IOException,
::com::sun::star::uno::Exception );

Description
allows to switch the document to the provided storage.
getDocumentStorage
::com::sun::star::embed::XStorage
getDocumentStorage()
raises( ::com::sun::star::io::IOException,
::com::sun::star::uno::Exception );

Description
allows to get the storage the document is based on.
addStorageChangeListener
void
addStorageChangeListener( [in] XStorageChangeListener  xListener );

Description
allows to register a listener that will be notified when another storage is set to the document.
removeStorageChangeListener
void
removeStorageChangeListener( [in] XStorageChangeListener  xListener );

Description
allows to deregister the listener.
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.