Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: resource ::

unpublished interface XStringResourceWithStorage
Base Interfaces
XStringResourceWithStorageXStringResourcePersistenceXStringResourceManagerXStringResourceResolver
         ┗ ::com::sun::star::util::XModifyBroadcaster

XStringResourcePersistence
(referenced interface's summary:)
Interface derived from XStringResourceManager containing basic persistence functionality limited to operations that are independend from a associated location or storage.
Usage Restrictions
not published
Description
Extends XStringResourcePersistence by methods to handle an associated ::com::sun::star::embed::XStorage instance.
See also
XStringResourcePersistence
.

Methods' Summary
storeAsStorage Stores all string table data to a storage and associates this storage to this instance as if setStorage was called with this storage. The modified state will be unmodified after the call. This method can throw all exceptions thrown by the methods of ::com::sun::star::embed::XStorage  
setStorage Associates a storage to the StringResourceWithStorage instance which is used on subsequent calls of store.  
Methods' Details
storeAsStorage
void
storeAsStorage( [in] ::com::sun::star::embed::XStorage  Storage )
raises( ::com::sun::star::uno::Exception );

Description
Stores all string table data to a storage and associates this storage to this instance as if setStorage was called with this storage. The modified state will be unmodified after the call. This method can throw all exceptions thrown by the methods of ::com::sun::star::embed::XStorage
setStorage
void
setStorage( [in] ::com::sun::star::embed::XStorage  Storage )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
Associates a storage to the StringResourceWithStorage instance which is used on subsequent calls of store.
Parameter Storage
the storage to be associated to the StringResourceManager

This call has to be used carefully as it removes the storage previously connected to the StringResourceWithStorage. It may force the implementation to reload data from the previous storage before releasing it. The StringResourceManager will be modified after calling this method as the data isn't stored to the new storage yet. storeAsStorage should be prefered as it directly stores the data to the new storage and afterwards this storage is in sync with the resource data.

Throws
::com::sun::star::lang::IllegalArgumentException if a null interface is passed as Storage
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.