hi
i have sample extension, i will get events menubar in main libreoffice when select that, for example event copy when click “copy” from menubar or event “copy” from right click.
how to get this events?
sample Extension:
Object xGlobalBroadCaster = m_xCmpCtx.getServiceManager().createInstanceWithContext(
“com.sun.star.frame.GlobalEventBroadcaster”, m_xCmpCtx);
XEventBroadcaster xEventBroad = (XEventBroadcaster)UnoRuntime.queryInterface(XEventBroadcaster.class,
xGlobalBroadCaster);
synchronized (xEventBroad) {xEventBroad.addEventListener(new XEventListener() {
public void notifyEvent(EventObject oEvent) {
System.out.println("Event: " + oEvent.EventName);
}
public void disposing(com.sun.star.lang.EventObject e) {
}
});
i can not resive event copy or paste from menubar.
how to get this events menubar?