module com { module sun { module star { module embed {
/** This is a temporary interface that is introduced to temporarily optimize thedocumentstoringprocess.PLEASEDONOTUSEIT,itmightchangeinany timeandwillbedeprecatedsoon! Anothersolutionwillbeintroducedasfinalone.
*/
published interface XOptimizedStorage
{ /** allows to insert a raw stream representing non-encrypted stream with header.
*/ void insertRawNonEncrStreamElementDirect(
[in] string sStreamName,
[in] ::com::sun::star::io::XInputStream xInStream )
raises( ::com::sun::star::embed::InvalidStorageException,
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::packages::NoRawFormatException,
::com::sun::star::container::ElementExistException,
::com::sun::star::io::IOException,
::com::sun::star::embed::StorageWrappedTargetException );
/** allows to insert a stream to the storage directly. The stream must stayalivetillthestorageiscommitted.
*/ void insertStreamElementDirect(
[in] string sStreamName,
[in] ::com::sun::star::io::XInputStream xInStream,
[in] sequence < ::com::sun::star::beans::PropertyValue > aProperties )
raises( ::com::sun::star::embed::InvalidStorageException,
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::container::ElementExistException,
::com::sun::star::io::IOException,
::com::sun::star::embed::StorageWrappedTargetException );
/** allows to copy storage element directly, not guaranteed to work.
*/ void copyElementDirectlyTo(
[in] string sSourceName,
[in] ::com::sun::star::embed::XOptimizedStorage xTargetStorage,
[in] string sTargetName )
raises( ::com::sun::star::embed::InvalidStorageException,
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::container::NoSuchElementException,
::com::sun::star::container::ElementExistException,
::com::sun::star::io::IOException,
::com::sun::star::embed::StorageWrappedTargetException );
/** allows to switch storage persistence to the provided stream. The stream willbefilledbythestorage.Ifanemptyreferenceisprovided,the storagewillcreateatemporarystreamtoswitchtoitself. Itisapplicableonlyforrootstorages.
*/ void writeAndAttachToStream(
[in] ::com::sun::star::io::XStream xStream )
raises( ::com::sun::star::embed::InvalidStorageException,
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::io::IOException,
::com::sun::star::embed::StorageWrappedTargetException );
/** allows to switch storage persistence to the provided URL. The caller is responsibletobesurethatthefilereferencedbytheURLcontainsthe samecontentsasthestreamthestorageisbasedcurrently.Thususing ofthismethodisverydangerousandshouldbeavoidedwhenpossible. Itisapplicableonlyforrootstorages.
*/ void attachToURL( [in] string sURL,
[in] boolean bReadOnly )
raises( ::com::sun::star::embed::InvalidStorageException,
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::io::IOException,
::com::sun::star::embed::StorageWrappedTargetException );
/** allows to get property of the child element with the specified name. Theimplementationofthemethodmightallowtoaccessonlysubset ofthesupportedbyelementproperties.
*/
any getElementPropertyValue( [in] string sElementName,
[in] string sPropertyName )
raises( ::com::sun::star::embed::InvalidStorageException,
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::container::NoSuchElementException,
::com::sun::star::io::IOException,
::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::beans::PropertyVetoException,
::com::sun::star::embed::StorageWrappedTargetException );
/** fills the provided stream with the last flushed version of data from thechildstreamofthestorage.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.