//happens on child adding, deleting, title changing, name changing // the draw page supplier will be returned not the modified object :-( protected override void modified(unoidl.com.sun.star.lang.EventObject aEvent) { if (aEvent != null && aEvent.Source == PagesSupplier) { //System.Diagnostics.Debug.WriteLine("\t\tModify event happened in DrawPageObserver"); } }
private void fireDisposingEvent(unoidl.com.sun.star.lang.EventObject source) { if (Disposing != null) { try { Disposing.DynamicInvoke(this, new OoEventArgs(source)); } catch (Exception ex) { Logger.Instance.Log(LogPriority.DEBUG, this, "can't fire disposing event", ex); } } }
private void fireWindowOpenedEvent(unoidl.com.sun.star.lang.EventObject source) { if (WindowOpened != null) { try { WindowOpened.DynamicInvoke(this, new OoEventArgs(source)); } catch (Exception ex) { Logger.Instance.Log(LogPriority.DEBUG, this, "can't fire window opend event", ex); } } }
void fireWindowHiddenEvent(unoidl.com.sun.star.lang.EventObject e) { if (WindowHidden != null) { try { WindowHidden.Invoke(this, new EventObjectForwarder(e)); } catch { } } }
void fireWindowDeactivatedEvent(unoidl.com.sun.star.lang.EventObject Source) { if (WindowDeactivated != null) { try { WindowDeactivated.Invoke(this, new EventObjectForwarder(Source)); } catch { } } }
void fireWindowClosingEvent(unoidl.com.sun.star.lang.EventObject Source) { if (WindowClosing != null) { try { WindowClosing.Invoke(this, new EventObjectForwarder(Source)); } catch { } } }
void fireSelectionEvent(unoidl.com.sun.star.lang.EventObject aEvents) { if (SelectionChanged != null) { try { Task t = new Task(new Action(() => SelectionChanged.Invoke(this, new EventObjectForwarder(aEvents)))); t.Start(); } catch { } } }
public void windowShown(unoidl.com.sun.star.lang.EventObject e) { Thread thread = new Thread(delegate() { fireWindowShownEvent(e); }); thread.Start(); }
void XSelectionChangeListener.selectionChanged(unoidl.com.sun.star.lang.EventObject aEvent) { TimeLimitExecutor.ExecuteWithTimeLimit(500, () => { fireSelectionEvent(aEvent); }, "SelectionChanged"); }
void XTopWindowListener.windowOpened(unoidl.com.sun.star.lang.EventObject e) { fireWindowOpenedEvent(e); }
void XTopWindowListener.windowClosing(unoidl.com.sun.star.lang.EventObject e) { fireWindowClosingEvent(e); }
public void disposing(unoidl.com.sun.star.lang.EventObject aObj) { }