I current have the need to observe, and possibly veto, changes done to a
generic container of objects.
While observation isn't a problem (the container supports XContainer),
vetoing is: There seems to be no appropriate interface which allows me
to hook in.
While I could easily use some XUnoTunnel/getImplementation stuff - both
the container an its clients are in my own responsibility -, I'd like to
have a more generic solution.
Can anybody think of any existing interface which might be helpful?
If not, what about (iow: any objections against) introducing the
following in udkapi, module css.container:
interface XContainerBroadcaster
{
addContainerApproveListener(
[in] XContainerApproveListener Listener );
removeContainerApproveListener(
[in] XContainerApproveListener Listener );
};
interface XContainerApproveListener
{
void approveInsertElement( [in] ContainerEvent Event )
raises ( VetoException, WrappedTargetException );
void approveReplaceElement( [in] ContainerEvent Event )
raises ( VetoException, WrappedTargetException );
void approveRemoveElement( [in] ContainerEvent Event )
raises ( VetoException, WrappedTargetException );
};
?
Thanks & Ciao
Frank
--
- Frank Schönheit, Software Engineer [EMAIL PROTECTED] -
- Sun Microsystems http://www.sun.com/staroffice -
- OpenOffice.org Database http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]