Author: toshok
Date: 2007-12-02 14:49:45 -0500 (Sun, 02 Dec 2007)
New Revision: 90528

Added:
   
trunk/olive/class/PresentationCore/System.Windows.Input/TextCompositionManager.cs
   trunk/olive/class/PresentationCore/System.Windows/DragDrop.cs
Modified:
   trunk/olive/class/PresentationCore/PresentationCore.dll.sources
Log:
add DragDrop and TestCompositionManager.  DragDrop is implemented to 
successfully run its tests.

Modified: trunk/olive/class/PresentationCore/PresentationCore.dll.sources
===================================================================
--- trunk/olive/class/PresentationCore/PresentationCore.dll.sources     
2007-12-02 18:51:21 UTC (rev 90527)
+++ trunk/olive/class/PresentationCore/PresentationCore.dll.sources     
2007-12-02 19:49:45 UTC (rev 90528)
@@ -16,6 +16,7 @@
 System.Windows/DataObjectSettingDataEventArgs.cs
 System.Windows/DataObjectSettingDataEventHandler.cs
 System.Windows/DragAction.cs
+System.Windows/DragDrop.cs
 System.Windows/DragDropEffects.cs
 System.Windows/DragDropKeyStates.cs
 System.Windows/DragEventArgs.cs
@@ -156,6 +157,7 @@
 System.Windows.Input/TextCompositionAutoComplete.cs
 System.Windows.Input/TextCompositionEventArgs.cs
 System.Windows.Input/TextCompositionEventHandler.cs
+System.Windows.Input/TextCompositionManager.cs
 System.Windows.Input.X11/X11KeyboardDevice.cs
 System.Windows.Input.X11/X11MouseDevice.cs
 System.Windows.Markup/IAddChild.cs

Added: trunk/olive/class/PresentationCore/System.Windows/DragDrop.cs
===================================================================
--- trunk/olive/class/PresentationCore/System.Windows/DragDrop.cs       
2007-12-02 18:51:21 UTC (rev 90527)
+++ trunk/olive/class/PresentationCore/System.Windows/DragDrop.cs       
2007-12-02 19:49:45 UTC (rev 90528)
@@ -0,0 +1,207 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Chris Toshok ([EMAIL PROTECTED])
+//
+
+using System.Windows.Input;
+using System.Windows.Media.Animation;
+
+namespace System.Windows {
+
+       public static class DragDrop
+       {
+               static DragDrop ()
+               {
+                       DragEnterEvent = EventManager.RegisterRoutedEvent 
("DragEnter", RoutingStrategy.Bubble,
+                                                                          
typeof (DragEventHandler), typeof (DragDrop));
+                       DragLeaveEvent = EventManager.RegisterRoutedEvent 
("DragLeave", RoutingStrategy.Bubble,
+                                                                          
typeof (DragEventHandler), typeof (DragDrop));
+                       DragOverEvent = EventManager.RegisterRoutedEvent 
("DragOver", RoutingStrategy.Bubble,
+                                                                         
typeof (DragEventHandler), typeof (DragDrop));
+                       DropEvent = EventManager.RegisterRoutedEvent ("Drop", 
RoutingStrategy.Bubble,
+                                                                     typeof 
(DragEventHandler), typeof (DragDrop));
+                       GiveFeedbackEvent = EventManager.RegisterRoutedEvent 
("GiveFeedback", RoutingStrategy.Bubble,
+                                                                             
typeof (GiveFeedbackEventHandler), typeof (DragDrop));
+                       QueryContinueDragEvent = 
EventManager.RegisterRoutedEvent ("QueryContinueDrag", RoutingStrategy.Bubble,
+                                                                               
   typeof (QueryContinueDragEventHandler),
+                                                                               
   typeof (DragDrop));
+
+                       PreviewDragEnterEvent = 
EventManager.RegisterRoutedEvent ("PreviewDragEnter", RoutingStrategy.Tunnel,
+                                                                          
typeof (DragEventHandler), typeof (DragDrop));
+                       PreviewDragLeaveEvent = 
EventManager.RegisterRoutedEvent ("PreviewDragLeave", RoutingStrategy.Tunnel,
+                                                                          
typeof (DragEventHandler), typeof (DragDrop));
+                       PreviewDragOverEvent = EventManager.RegisterRoutedEvent 
("PreviewDragOver", RoutingStrategy.Tunnel,
+                                                                         
typeof (DragEventHandler), typeof (DragDrop));
+                       PreviewDropEvent = EventManager.RegisterRoutedEvent 
("PreviewDrop", RoutingStrategy.Tunnel,
+                                                                     typeof 
(DragEventHandler), typeof (DragDrop));
+                       PreviewGiveFeedbackEvent = 
EventManager.RegisterRoutedEvent ("PreviewGiveFeedback", RoutingStrategy.Tunnel,
+                                                                             
typeof (GiveFeedbackEventHandler), typeof (DragDrop));
+                       PreviewQueryContinueDragEvent = 
EventManager.RegisterRoutedEvent ("PreviewQueryContinueDrag",
+                                                                               
          RoutingStrategy.Tunnel,
+                                                                               
          typeof (QueryContinueDragEventHandler),
+                                                                               
          typeof (DragDrop));
+               }
+
+               public static readonly RoutedEvent DragEnterEvent;
+               public static readonly RoutedEvent DragLeaveEvent;
+               public static readonly RoutedEvent DragOverEvent;
+               public static readonly RoutedEvent DropEvent;
+               public static readonly RoutedEvent GiveFeedbackEvent;
+               public static readonly RoutedEvent PreviewDragEnterEvent;
+               public static readonly RoutedEvent PreviewDragLeaveEvent;
+               public static readonly RoutedEvent PreviewDragOverEvent;
+               public static readonly RoutedEvent PreviewDropEvent;
+               public static readonly RoutedEvent PreviewGiveFeedbackEvent;
+               public static readonly RoutedEvent 
PreviewQueryContinueDragEvent;
+               public static readonly RoutedEvent QueryContinueDragEvent;
+
+               public static void AddDragEnterEventHandler (DependencyObject 
element, DragEventHandler handler)
+               {
+                       UIElement.AddHandler (element, DragEnterEvent, handler);
+               }
+
+               public static void AddDragLeaveEventHandler (DependencyObject 
element, DragEventHandler handler)
+               {
+                       UIElement.AddHandler (element, DragLeaveEvent, handler);
+               }
+
+               public static void AddDragOverEventHandler (DependencyObject 
element, DragEventHandler handler)
+               {
+                       UIElement.AddHandler (element, DragOverEvent, handler);
+               }
+
+               public static void AddDropEventHandler (DependencyObject 
element, DragEventHandler handler)
+               {
+                       UIElement.AddHandler (element, DropEvent, handler);
+               }
+
+               public static void AddGiveFeedbackEventHandler 
(DependencyObject element, GiveFeedbackEventHandler handler)
+               {
+                       UIElement.AddHandler (element, GiveFeedbackEvent, 
handler);
+               }
+
+               public static void AddPreviewDragEnterEventHandler 
(DependencyObject element, DragEventHandler handler)
+               {
+                       UIElement.AddHandler (element, PreviewDragEnterEvent, 
handler);
+               }
+
+               public static void AddPreviewDragLeaveEventHandler 
(DependencyObject element, DragEventHandler handler)
+               {
+                       UIElement.AddHandler (element, PreviewDragLeaveEvent, 
handler);
+               }
+
+               public static void AddPreviewDragOverEventHandler 
(DependencyObject element, DragEventHandler handler)
+               {
+                       UIElement.AddHandler (element, PreviewDragOverEvent, 
handler);
+               }
+
+               public static void AddPreviewDropEventHandler (DependencyObject 
element, DragEventHandler handler)
+               {
+                       UIElement.AddHandler (element, PreviewDropEvent, 
handler);
+               }
+
+               public static void AddPreviewGiveFeedbackEventHandler 
(DependencyObject element, GiveFeedbackEventHandler handler)
+               {
+                       UIElement.AddHandler (element, 
PreviewGiveFeedbackEvent, handler);
+               }
+
+               public static void AddPreviewQueryContinueDragEventHandler 
(DependencyObject element, QueryContinueDragEventHandler handler)
+               {
+                       UIElement.AddHandler (element, 
PreviewQueryContinueDragEvent, handler);
+               }
+
+               public static void AddQueryContinueDragEventHandler 
(DependencyObject element, QueryContinueDragEventHandler handler)
+               {
+                       UIElement.AddHandler (element, QueryContinueDragEvent, 
handler);
+               }
+
+
+               public static void RemoveDragEnterEventHandler 
(DependencyObject element, DragEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, DragEnterEvent, 
handler);
+               }
+
+               public static void RemoveDragLeaveEventHandler 
(DependencyObject element, DragEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, DragLeaveEvent, 
handler);
+               }
+
+               public static void RemoveDragOverEventHandler (DependencyObject 
element, DragEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, DragOverEvent, 
handler);
+               }
+
+               public static void RemoveDropEventHandler (DependencyObject 
element, DragEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, DropEvent, handler);
+               }
+
+               public static void RemoveGiveFeedbackEventHandler 
(DependencyObject element, GiveFeedbackEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, GiveFeedbackEvent, 
handler);
+               }
+
+               public static void RemovePreviewDragEnterEventHandler 
(DependencyObject element, DragEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, 
PreviewDragEnterEvent, handler);
+               }
+
+               public static void RemovePreviewDragLeaveEventHandler 
(DependencyObject element, DragEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, 
PreviewDragLeaveEvent, handler);
+               }
+
+               public static void RemovePreviewDragOverEventHandler 
(DependencyObject element, DragEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, PreviewDragOverEvent, 
handler);
+               }
+
+               public static void RemovePreviewDropEventHandler 
(DependencyObject element, DragEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, PreviewDropEvent, 
handler);
+               }
+
+               public static void RemovePreviewGiveFeedbackEventHandler 
(DependencyObject element, GiveFeedbackEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, 
PreviewGiveFeedbackEvent, handler);
+               }
+
+               public static void RemovePreviewQueryContinueDragEventHandler 
(DependencyObject element, QueryContinueDragEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, 
PreviewQueryContinueDragEvent, handler);
+               }
+
+               public static void RemoveQueryContinueDragEventHandler 
(DependencyObject element, QueryContinueDragEventHandler handler)
+               {
+                       UIElement.RemoveHandler (element, 
QueryContinueDragEvent, handler);
+               }
+
+               public static DragDropEffects DoDragDrop (DependencyObject 
dragSource, object data, DragDropEffects allowedEffects)
+               {
+                       throw new NotImplementedException ();
+               }
+
+
+       }
+
+}

Added: 
trunk/olive/class/PresentationCore/System.Windows.Input/TextCompositionManager.cs
===================================================================
--- 
trunk/olive/class/PresentationCore/System.Windows.Input/TextCompositionManager.cs
   2007-12-02 18:51:21 UTC (rev 90527)
+++ 
trunk/olive/class/PresentationCore/System.Windows.Input/TextCompositionManager.cs
   2007-12-02 19:49:45 UTC (rev 90528)
@@ -0,0 +1,124 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Chris Toshok ([EMAIL PROTECTED])
+//
+
+using System;
+using System.Security;
+using System.Windows;
+using System.Windows.Threading;
+
+namespace System.Windows.Input {
+
+       public sealed class TextCompositionManager : DispatcherObject
+       {
+               public static readonly RoutedEvent PreviewTextInputEvent;
+               public static readonly RoutedEvent PreviewTextInputStartEvent;
+               public static readonly RoutedEvent PreviewTextInputUpdateEvent;
+               public static readonly RoutedEvent TextInputEvent;
+               public static readonly RoutedEvent TextInputStartEvent;
+               public static readonly RoutedEvent TextInputUpdateEvent;
+
+
+               public static void AddPreviewTextInputEventHandler 
(DependencyObject element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void AddPreviewTextInputStartEventHandler 
(DependencyObject element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void AddPreviewTextInputUpdateEventHandler 
(DependencyObject element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void AddTextInputEventHandler (DependencyObject 
element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void AddTextInputStartEventHandler 
(DependencyObject element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void AddTextInputUpdateEventHandler 
(DependencyObject element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void RemovePreviewTextInputEventHandler 
(DependencyObject element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void RemovePreviewTextInputStartEventHandler 
(DependencyObject element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void RemovePreviewTextInputUpdateEventHandler 
(DependencyObject element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void RemoveTextInputEventHandler 
(DependencyObject element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void RemoveTextInputStartEventHandler 
(DependencyObject element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void RemoveTextInputUpdateEventHandler 
(DependencyObject element, TextCompositionEventHandler handler)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [SecurityCritical]
+               public static bool CompleteComposition (TextComposition 
composition)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [SecurityCritical]
+               public static bool StartComposition (TextComposition 
composition)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [SecurityCritical]
+               public static bool UpdateComposition (TextComposition 
composition)
+               {
+                       throw new NotImplementedException ();
+               }
+
+       }
+
+}
+

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to