Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


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

interface XStringResourceWithLocation
Base Interfaces
XStringResourceWithLocationXStringResourcePersistenceXStringResourceManagerXStringResourceResolver
         ┗ ::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.
Description
Extends XStringResourcePersistence by methods to handle an associated location.
See also
XStringResourcePersistence
.

Methods' Summary
storeAsURL Stores all string table data to a location and associates this location to this instance as if setLocation was called with this location. The modified state will be unmodified after the call.  
setURL Associates a location to the StringResourceWithStorage instance which is used on subsequent calls of store.  
Methods' Details
storeAsURL
void
storeAsURL( [in] string  URL )
raises( ::com::sun::star::uno::Exception );

Description
Stores all string table data to a location and associates this location to this instance as if setLocation was called with this location. The modified state will be unmodified after the call.
Parameter URL
the location the string table data should be stored to.
setURL
void
setURL( [in] string  URL )
raises( ::com::sun::star::lang::IllegalArgumentException );

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

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

Throws
::com::sun::star::lang::IllegalArgumentException if an empty string is passed as URL
Top of Page

Apache Software Foundation

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

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