[api-features] new/SRC680/m160 : An object can now be locked even using a bridge that does not support exceptions.
[email protected] Mon, 29 May 2006 17:06:43 +0200 (MEST)
| Newsgroups | gmane.comp.openoffice.announce.features |
|---|---|
| Message-ID | <31557337.1148915203979.JavaMail.root@so-web4> |
Product API Type new Title An object can now be locked even using a bridge that does not support exceptions. Posted by [email protected] Affected [email protected], Effective from SRC680/m160 API/ BASIC [x] Configuration [ ] File format change [ ] Help/ Guide [ ] Performance test [ ] Translation [ ] UI relevant [ ] Description To allow to lock an object supporting ::com::sun::star::util::XCloseable or ::com::sun::star::frame::XDesktop using a bridge that does not support exceptions a new service ::com::sun::star::embed::InstanceLocker was implemented. After creation the service adds a listener of requested type ( close or terminate ) to the controlled object and let the listener throw related veto exception until the service is disposed. It is also possible on initialization to provide an object that will be requested for approval before throwing the veto exception. This object could be useful in case the service is instantiated from another process, so that in case the communication with the process is broken the approval object is not accessible and the locked object does not stay locked forever. Please take a look in co m/sun/star/embed/InstanceLocker.idl for details. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]