required/SRC680/mav09 : sfx2 based code is converted to use com.sun.star.embed.Storage service
[email protected] Wed, 21 Sep 2005 13:13:08 +0200 (CEST)
| Newsgroups | gmane.comp.openoffice.announce.interface |
|---|---|
| Message-ID | <3280764.1127301188240.JavaMail.root@sd-web1> |
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]