Type required
Title sfx2 based code is converted to use com.sun.star.embed.Storage service
Posted by [EMAIL PROTECTED]
Affected ,whole office
Effective from SRC680/mav09


Summary

All the sfx2 based applications implementations use now com.sun.star.embed.Storage service implementation as document storage.


comphelper/storagehelper.hxx:
+comphelper::OStorageHelper

sot/storage.hxx:
+static SotStorage* SotStorage::OpenOLEStorage( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage, const String& rEleName, StreamMode = STREAM_STD_READWRITE );
+static sal_Int32 GetFormatID( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage );
+static sal_Int32 GetVersion( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage );


Description
Till now the access to data in package format was done through
SvStorage or SotStorage classes.
The SvStorage class should not be used any more. The SotStorage should
be used only to access OLE-storages. The com.sun.star.embed.Storage
service should be used to access the document persistence in OOo
package format.

The SfxMedium is also converted to allow to retrieve embed.Storage
service implementation based on the medium. So it can not be used any
more to create OLE-storage. The SotStorage implementation must be used
directly instead.

There are some useful helpers that can make life easier while using
the new storage implementation, they already have been mentioned in
the summary. OStorageHelper class contains a set of static methods to
do a most common operations on a Storage service object. SotStorage
now contains new helper methods to get access to the functionality
that was provided by SotStorages and is not provided by the new
Storage service directly.

Starting from SRC680/mav09 the sfx2 code and all the dependent code is
converted to use the new approach.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to