Author: spouliot
Date: 2007-05-30 14:06:18 -0400 (Wed, 30 May 2007)
New Revision: 78245
Added:
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxItemContainer.cs
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxItemCreator.cs
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxService.cs
Modified:
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/CursorEditor.cs
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ImageEditor.cs
Log:
2007-05-30 Sebastien Pouliot <[EMAIL PROTECTED]>
* CursorEditor.cs: Add new (2.0) IsDropDownResizable property.
* ImageEditor.cs: Add new (2.0) GetImageExtenders method.
* ToolboxItemContainer.cs: New. Stub to reduce MoMA missing report.
* ToolboxItemCreator.cs: New. Stub to reduce MoMA missing report.
* ToolboxService.cs: New. Stub to reduce MoMA missing report.
Modified: trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog
2007-05-30 18:04:25 UTC (rev 78244)
+++ trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog
2007-05-30 18:06:18 UTC (rev 78245)
@@ -1,3 +1,11 @@
+2007-05-30 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * CursorEditor.cs: Add new (2.0) IsDropDownResizable property.
+ * ImageEditor.cs: Add new (2.0) GetImageExtenders method.
+ * ToolboxItemContainer.cs: New. Stub to reduce MoMA missing report.
+ * ToolboxItemCreator.cs: New. Stub to reduce MoMA missing report.
+ * ToolboxService.cs: New. Stub to reduce MoMA missing report.
+
2006-10-25 Chris Toshok <[EMAIL PROTECTED]>
* IconEditor.cs: the value we're painting isn't an Image, it's an
Modified:
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/CursorEditor.cs
===================================================================
--- trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/CursorEditor.cs
2007-05-30 18:04:25 UTC (rev 78244)
+++ trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/CursorEditor.cs
2007-05-30 18:06:18 UTC (rev 78245)
@@ -7,8 +7,7 @@
//
// (C) 2003 Martin Willemoes Hansen
// (C) 2003 Andreas Nahr
-//
-
+// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -30,8 +29,6 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-using System;
-using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;
using System.Windows.Forms.Design;
@@ -94,5 +91,10 @@
{
return UITypeEditorEditStyle.DropDown;
}
+#if NET_2_0
+ public override bool IsDropDownResizable {
+ get { return true; }
+ }
+#endif
}
}
Modified:
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ImageEditor.cs
===================================================================
--- trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ImageEditor.cs
2007-05-30 18:04:25 UTC (rev 78244)
+++ trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ImageEditor.cs
2007-05-30 18:06:18 UTC (rev 78245)
@@ -7,8 +7,7 @@
//
// (C) 2003 Martin Willemoes Hansen
// (C) 2003 Andreas Nahr
-//
-
+// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -30,10 +29,8 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-using System;
using System.Text;
using System.IO;
-using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;
@@ -133,5 +130,12 @@
{
return new Bitmap (stream);
}
+#if NET_2_0
+ [MonoTODO]
+ protected virtual Type[] GetImageExtenders ()
+ {
+ throw new NotImplementedException ();
+ }
+#endif
}
}
Added:
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxItemContainer.cs
===================================================================
---
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxItemContainer.cs
2007-05-30 18:04:25 UTC (rev 78244)
+++
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxItemContainer.cs
2007-05-30 18:06:18 UTC (rev 78245)
@@ -0,0 +1,115 @@
+//
+// System.Drawing.Design.ToolboxItemContainer
+//
+// Authors:
+// Sebastien Pouliot <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
+//
+// 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.
+//
+
+#if NET_2_0
+
+using System.Collections;
+using System.Runtime.Serialization;
+using System.Windows.Forms;
+
+namespace System.Drawing.Design {
+
+ [Serializable]
+ public class ToolboxItemContainer : ISerializable {
+
+ [MonoTODO]
+ public ToolboxItemContainer (IDataObject data)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public ToolboxItemContainer (ToolboxItem item)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected ToolboxItemContainer (SerializationInfo info,
StreamingContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+
+ [MonoTODO]
+ public bool IsTransient {
+ get { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public IDataObject ToolboxData {
+ get { throw new NotImplementedException (); }
+ }
+
+
+ [MonoTODO]
+ public override bool Equals (object obj)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override int GetHashCode ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected virtual void GetObjectData (SerializationInfo info,
StreamingContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ void ISerializable.GetObjectData (SerializationInfo info,
StreamingContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+
+ [MonoTODO]
+ public virtual ICollection GetFilter (ICollection creators)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual ToolboxItem GetToolboxItem (ICollection creators)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void UpdateFilter (ToolboxItem item)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
+#endif
Added:
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxItemCreator.cs
===================================================================
---
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxItemCreator.cs
2007-05-30 18:04:25 UTC (rev 78244)
+++
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxItemCreator.cs
2007-05-30 18:06:18 UTC (rev 78245)
@@ -0,0 +1,50 @@
+//
+// System.Drawing.Design.ToolboxItemCreator
+//
+// Authors:
+// Sebastien Pouliot <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
+//
+// 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.
+//
+
+#if NET_2_0
+
+using System.Windows.Forms;
+
+namespace System.Drawing.Design {
+
+ public sealed class ToolboxItemCreator {
+
+ [MonoTODO]
+ public ToolboxItem Create (IDataObject data)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public string Format {
+ get { throw new NotImplementedException (); }
+ }
+ }
+}
+
+#endif
Added:
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxService.cs
===================================================================
---
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxService.cs
2007-05-30 18:04:25 UTC (rev 78244)
+++
trunk/mcs/class/System.Drawing.Design/System.Drawing.Design/ToolboxService.cs
2007-05-30 18:06:18 UTC (rev 78245)
@@ -0,0 +1,302 @@
+//
+// System.Drawing.Design.ToolboxService
+//
+// Authors:
+// Sebastien Pouliot <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
+//
+// 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.
+//
+
+#if NET_2_0
+
+using System.Collections;
+using System.ComponentModel.Design;
+using System.Reflection;
+using System.Windows.Forms;
+
+namespace System.Drawing.Design {
+
+ public abstract class ToolboxService : IComponentDiscoveryService,
IToolboxService {
+
+ [MonoTODO]
+ protected ToolboxService ()
+ {
+ throw new NotImplementedException ();
+ }
+
+
+ protected abstract CategoryNameCollection CategoryNames {
+ get;
+ }
+
+ protected abstract string SelectedCategory {
+ get;
+ set;
+ }
+
+ protected abstract ToolboxItemContainer SelectedItemContainer {
+ get;
+ set;
+ }
+
+ [MonoTODO]
+ protected virtual ToolboxItemContainer CreateItemContainer
(IDataObject dataObject)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected virtual ToolboxItemContainer CreateItemContainer
(IDataObject dataObject, IDesignerHost link)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected virtual void FilterChanged ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected abstract IList GetItemContainers ();
+
+ protected abstract IList GetItemContainers (string
categoryName);
+
+ [MonoTODO]
+ protected virtual void IsItemContainer (IDataObject dataObject,
IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected bool IsItemContainerSupported (ToolboxItemContainer
container, IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected abstract void Refresh ();
+
+ [MonoTODO]
+ protected virtual void SelectedItemContainerUsed ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected virtual void SetCursor ()
+ {
+ throw new NotImplementedException ();
+ }
+
+
+ [MonoTODO]
+ public static ToolboxItem GetToolboxItem (Type toolType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static ToolboxItem GetToolboxItem (Type toolType, bool
nonPublic)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static ICollection GetToolboxItems (AssemblyName an)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static ICollection GetToolboxItems (AssemblyName an,
bool throwOnError)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static ICollection GetToolboxItems (Assembly a, string
newCodeBase)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static ICollection GetToolboxItems (Assembly a, string
newCodeBase, bool throwOnError)
+ {
+ throw new NotImplementedException ();
+ }
+
+ // IComponentDiscoveryService
+
+ ICollection IComponentDiscoveryService.GetComponentTypes
(IDesignerHost designerHost, Type baseType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ // IToolboxService
+
+ CategoryNameCollection IToolboxService.CategoryNames {
+ get { throw new NotImplementedException (); }
+ }
+
+ string IToolboxService.SelectedCategory {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+
+ void IToolboxService.AddCreator (ToolboxItemCreatorCallback
creator, string format)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.AddCreator (ToolboxItemCreatorCallback
creator, string format, IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.AddLinkedToolboxItem (ToolboxItem
toolboxItem, IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.AddLinkedToolboxItem (ToolboxItem
toolboxItem, string category, IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.AddToolboxItem (ToolboxItem toolboxItem,
String category)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.AddToolboxItem (ToolboxItem toolboxItem)
+ {
+ throw new NotImplementedException ();
+ }
+
+ ToolboxItem IToolboxService.DeserializeToolboxItem (object
serializedObject)
+ {
+ throw new NotImplementedException ();
+ }
+
+ ToolboxItem IToolboxService.DeserializeToolboxItem (object
serializedObject, IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ ToolboxItem IToolboxService.GetSelectedToolboxItem ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ ToolboxItem IToolboxService.GetSelectedToolboxItem
(IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ ToolboxItemCollection IToolboxService.GetToolboxItems ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ ToolboxItemCollection IToolboxService.GetToolboxItems
(IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ ToolboxItemCollection IToolboxService.GetToolboxItems (String
category)
+ {
+ throw new NotImplementedException ();
+ }
+
+ ToolboxItemCollection IToolboxService.GetToolboxItems (String
category, IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ bool IToolboxService.IsSupported (object serializedObject,
ICollection filterAttributes)
+ {
+ throw new NotImplementedException ();
+ }
+
+ bool IToolboxService.IsSupported (object serializedObject,
IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ bool IToolboxService.IsToolboxItem (object serializedObject)
+ {
+ throw new NotImplementedException ();
+ }
+
+ bool IToolboxService.IsToolboxItem (object serializedObject,
IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.Refresh ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.RemoveCreator (string format)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.RemoveCreator (string format,
IDesignerHost host)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.RemoveToolboxItem (ToolboxItem toolboxItem)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.RemoveToolboxItem (ToolboxItem
toolboxItem, string category)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.SelectedToolboxItemUsed ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ object IToolboxService.SerializeToolboxItem (ToolboxItem
toolboxItem)
+ {
+ throw new NotImplementedException ();
+ }
+
+ bool IToolboxService.SetCursor ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ void IToolboxService.SetSelectedToolboxItem (ToolboxItem
toolboxItem)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
+#endif
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches