Example #1
0
        void tpwndo_WindowMinimized(object sender, OoEventArgs e)
        {
            if (e != null && e.Source != null && e.Source is XAccessible)
            {
                OoAccessibleDocWnd doc = getCorrespondingAccessibleDocForXaccessible(e.Source as XAccessible);

                if (doc != null && doc.MainWindow != null)
                {
                    fireDrawWindowMinimizedEvent(doc);
                }
            }
        }
Example #2
0
 void tpwndo_WindowOpened(object sender, OoEventArgs e)
 {
     //check if window is a draw doc
     if (e != null && e.Source != null && e.Source is XAccessible)
     {
         var doc = OoAccessibility.IsDrawWindow(e.Source as XAccessible);
         if (doc != null && !(doc is bool))
         {
             registerNewDrawWindow(e.Source as XAccessible, doc);
         }
     }
 }
Example #3
0
        void tpwndo_WindowActivated(object sender, OoEventArgs e)
        {
            if (e != null && e.Source != null && e.Source is XAccessible)
            {
                OoAccessibleDocWnd doc = getCorrespondingAccessibleDocForXaccessible(e.Source as XAccessible);

                if (doc != null && doc.MainWindow != null)
                {
                    fireDrawWindowActivatedEvent(doc);
                }
                else
                {
                    var docObj = OoAccessibility.IsDrawWindow(e.Source as XAccessible);
                    if (docObj != null && !(docObj is bool))
                    {
                        registerNewDrawWindow(e.Source as XAccessible, docObj);
                    }
                }
            }
        }
Example #4
0
        void tpwndo_WindowClosed(object sender, OoEventArgs e)
        {
            if (drawWnds.ContainsKey(e.Source as XAccessible))
            {
                //System.Diagnostics.Debug.WriteLine("\t\tknown drawdoc closed");
                OoAccessibleDocWnd doc;
                drawWnds.TryRemove(e.Source as XAccessible, out doc);
                OoAccessibleDocWnd doc2;
                if (doc.DocumentWindow != null && drawDocWnds.ContainsKey(doc.DocumentWindow))
                {
                    drawDocWnds.TryRemove(doc.DocumentWindow, out doc2);
                }
                if (doc.Document != null && drawDocs.ContainsKey(doc.Document))
                {
                    drawDocs.TryRemove(doc.Document, out doc2);
                }

                // release the document
                doc.Dispose();
                fireDrawWindowClosedEvent(doc);
            }
            tpwndo = OoTopWindowObserver.Instance;
        }
        void tpwndo_WindowActivated(object sender, OoEventArgs e)
        {
            if (e != null && e.Source != null && e.Source is XAccessible)
            {
                OoAccessibleDocWnd doc = getCorrespondingAccessibleDocForXaccessible(e.Source as XAccessible);

                if (doc != null && doc.MainWindow != null)
                {
                    fireDrawWindowActivatedEvent(doc);
                }
                else
                {
                    var docObj = OoAccessibility.IsDrawWindow(e.Source as XAccessible);
                    if (docObj != null && !(docObj is bool))
                    {
                        registerNewDrawWindow(e.Source as XAccessible, docObj);
                    }
                }
            }
        }
 void tpwndo_Disposing(object sender, OoEventArgs e) { }
        void tpwndo_WindowClosed(object sender, OoEventArgs e)
        {
            if (drawWnds.ContainsKey(e.Source as XAccessible))
            {
                //System.Diagnostics.Debug.WriteLine("\t\tknown drawdoc closed");
                OoAccessibleDocWnd doc;
                drawWnds.TryRemove(e.Source as XAccessible, out doc);
                OoAccessibleDocWnd doc2;
                if (doc.DocumentWindow != null && drawDocWnds.ContainsKey(doc.DocumentWindow))
                {
                    drawDocWnds.TryRemove(doc.DocumentWindow, out doc2);
                }
                if (doc.Document != null && drawDocs.ContainsKey(doc.Document))
                {
                    drawDocs.TryRemove(doc.Document, out doc2);
                }

                // release the document
                doc.Dispose();
                fireDrawWindowClosedEvent(doc);
            }
            tpwndo = OoTopWindowObserver.Instance;
        }
 void tpwndo_WindowClosing(object sender, OoEventArgs e) { }
 void tpwndo_WindowDeactivated(object sender, OoEventArgs e) { }
        void tpwndo_WindowMinimized(object sender, OoEventArgs e)
        {
            if (e != null && e.Source != null && e.Source is XAccessible)
            {
                OoAccessibleDocWnd doc = getCorrespondingAccessibleDocForXaccessible(e.Source as XAccessible);

                if (doc != null && doc.MainWindow != null)
                {
                    fireDrawWindowMinimizedEvent(doc);
                }
            }
        }
 void tpwndo_WindowOpened(object sender, OoEventArgs e)
 {
     //check if window is a draw doc
     if (e != null && e.Source != null && e.Source is XAccessible)
     {
         var doc = OoAccessibility.IsDrawWindow(e.Source as XAccessible);
         if (doc != null && !(doc is bool))
         {
             registerNewDrawWindow(e.Source as XAccessible, doc);
         }
     }
 }
Example #12
0
 void tpwndo_Disposing(object sender, OoEventArgs e)
 {
 }
Example #13
0
 void tpwndo_WindowClosing(object sender, OoEventArgs e)
 {
 }
Example #14
0
 void tpwndo_WindowDeactivated(object sender, OoEventArgs e)
 {
 }