When certain important events occur in OOo, the event is broadcast to all the objects that register as listeners for a specific event-for example, to be notified before a document is closed. The com.sun.star.document.XEventBroadcaster interface allows the desktop to act as a broadcaster .
The XEventBroadcaster interface defines the methods addEventListener() and removeEventListener() to add and remove event listeners. These two methods are not usually used directly because methods that are specific to the listener are typically used. For example, the Controller object contains the methods addKeyHandler() and removeKeyHandler() to add and remove listeners for key-press events.