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 com/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]

Reply via email to