//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");
     }
 }
Ejemplo n.º 2
0
 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); }
     }
 }
Ejemplo n.º 3
0
 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); }
     }
 }
Ejemplo n.º 4
0
 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 { }
     }
 }
Ejemplo n.º 8
0
        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);
 }
Ejemplo n.º 12
0
 public void disposing(unoidl.com.sun.star.lang.EventObject aObj)
 {
 }