Hi all, I need to access the storage, e.g. the odf zip document file, of the document currently opened by the user.
Following a good suggestion I was suggested on one of the OOo dev lists, I used the Storage service [1] provided interfaces. I discovered that the document itself provides an XStorageBasedDocument [2] interface that can be used to retrieve the storage the document is contained in (method getDocumentStorage). But it seems that not all the substorages contained therein later can be accessed. Whereas if I open the same storage directly at the same time, e.g. not using the one provided by the document but going directly through the document URL and the StorageFactory [3] suggested procedure, I can access those same substorages. I carried out these tries from a UNO obiect (a synchronous job service) contained in an extension I'm developing. Now my questions, keeping in mind that at a certain time I need to access the "META-INF" substorage to manipulate a custom file (read and write). To access the substorages and the substorage components, should I use the methods of XDocumentSubStorageSupplier [4] instead? Or is there another method to access the substorages and their components concurrently? For the 'unpublished' stuff recalled here see issue 87496 [5], though XDocumentSubStorageSupplier is still not scheduled for publishing... BeppeC. -- Kind Regards, Giuseppe Castagno Acca Esse http://www.acca-esse.eu giuseppe.casta...@acca-esse.eu beppe...@openoffice.org [1] http://api.openoffice.org/docs/common/ref/com/sun/star/embed/Storage.html [2] http://api.openoffice.org/docs/common/ref/com/sun/star/document/XStorageBasedDocument.html [3] http://api.openoffice.org/docs/common/ref/com/sun/star/embed/StorageFactory.html [4] http://api.openoffice.org/docs/common/ref/com/sun/star/document/XDocumentSubStorageSupplier.html [5] http://www.openoffice.org/issues/show_bug.cgi?id=87496 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org