You've already forked linux-packaging-mono
Imported Upstream version 5.8.0.22
Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
parent
5f4a27cc8a
commit
7d05485754
@@ -1,77 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Design.CategoryNameCollection.cs
|
||||
//
|
||||
// Authors:
|
||||
// Alejandro Sánchez Acosta
|
||||
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
// (C) 2003 Andreas Nahr
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004-2005 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.
|
||||
//
|
||||
|
||||
using System.Collections;
|
||||
|
||||
namespace System.Drawing.Design
|
||||
{
|
||||
public sealed class CategoryNameCollection : ReadOnlyCollectionBase
|
||||
{
|
||||
|
||||
public CategoryNameCollection (CategoryNameCollection value)
|
||||
{
|
||||
if (value == null)
|
||||
throw new ArgumentNullException ("value");
|
||||
InnerList.AddRange (value);
|
||||
}
|
||||
|
||||
public CategoryNameCollection (string[] value)
|
||||
{
|
||||
if (value == null)
|
||||
throw new ArgumentNullException ("value");
|
||||
InnerList.AddRange (value);
|
||||
}
|
||||
|
||||
public string this[int index] {
|
||||
get {
|
||||
return (string) InnerList[index];
|
||||
}
|
||||
}
|
||||
|
||||
public bool Contains (string value)
|
||||
{
|
||||
return InnerList.Contains (value);
|
||||
}
|
||||
|
||||
public void CopyTo (string[] array, int index)
|
||||
{
|
||||
InnerList.CopyTo (array, index);
|
||||
}
|
||||
|
||||
public int IndexOf (string value)
|
||||
{
|
||||
return InnerList.IndexOf (value);
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,54 +0,0 @@
|
||||
// System.Drawing.Design.IPropertyValueUIService.cs
|
||||
//
|
||||
// Author:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004 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.
|
||||
//
|
||||
|
||||
using System.Drawing;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace System.Drawing.Design
|
||||
{
|
||||
public interface IPropertyValueUIService
|
||||
{
|
||||
|
||||
#region Methods
|
||||
void AddPropertyValueUIHandler (PropertyValueUIHandler newHandler);
|
||||
PropertyValueUIItem[] GetPropertyUIValueItems (ITypeDescriptorContext context, PropertyDescriptor propDesc);
|
||||
|
||||
void NotifyPropertyValueUIItemsChanged ();
|
||||
|
||||
void RemovePropertyValueUIHandler (PropertyValueUIHandler newHandler);
|
||||
#endregion Methods
|
||||
|
||||
#region Events
|
||||
event EventHandler PropertyUIValueItemsChanged;
|
||||
#endregion Events
|
||||
}
|
||||
}
|
||||
|
@@ -1,38 +0,0 @@
|
||||
//
|
||||
// Copyright (C) 2005 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.
|
||||
//
|
||||
// Authors:
|
||||
//
|
||||
// Jordi Mas i Hernandez <jordimash@gmail.com>
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
namespace System.Drawing.Design
|
||||
{
|
||||
public interface IToolboxItemProvider
|
||||
{
|
||||
ToolboxItemCollection Items { get; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,101 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Design.IToolboxService.cs
|
||||
//
|
||||
// Authors:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
// (C) 2003 Andreas Nahr
|
||||
// Copyright (C) 2004, 2006 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.
|
||||
//
|
||||
|
||||
using System.Collections;
|
||||
using System.ComponentModel.Design;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Drawing.Design {
|
||||
|
||||
[ComImport]
|
||||
[Guid("4BACD258-DE64-4048-BC4E-FEDBEF9ACB76"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
public interface IToolboxService
|
||||
{
|
||||
CategoryNameCollection CategoryNames {get;}
|
||||
|
||||
string SelectedCategory {get; set;}
|
||||
|
||||
void AddCreator (ToolboxItemCreatorCallback creator, string format);
|
||||
|
||||
void AddCreator (ToolboxItemCreatorCallback creator, string format, IDesignerHost host);
|
||||
|
||||
void AddLinkedToolboxItem (ToolboxItem toolboxItem, IDesignerHost host);
|
||||
|
||||
void AddLinkedToolboxItem (ToolboxItem toolboxItem, string category, IDesignerHost host);
|
||||
|
||||
void AddToolboxItem (ToolboxItem toolboxItem, String category);
|
||||
|
||||
void AddToolboxItem (ToolboxItem toolboxItem);
|
||||
|
||||
ToolboxItem DeserializeToolboxItem (object serializedObject);
|
||||
|
||||
ToolboxItem DeserializeToolboxItem (object serializedObject, IDesignerHost host);
|
||||
|
||||
ToolboxItem GetSelectedToolboxItem ();
|
||||
|
||||
ToolboxItem GetSelectedToolboxItem (IDesignerHost host);
|
||||
|
||||
ToolboxItemCollection GetToolboxItems ();
|
||||
|
||||
ToolboxItemCollection GetToolboxItems (IDesignerHost host);
|
||||
|
||||
ToolboxItemCollection GetToolboxItems (String category);
|
||||
|
||||
ToolboxItemCollection GetToolboxItems (String category, IDesignerHost host);
|
||||
|
||||
bool IsSupported (object serializedObject, ICollection filterAttributes);
|
||||
|
||||
bool IsSupported (object serializedObject, IDesignerHost host);
|
||||
|
||||
bool IsToolboxItem (object serializedObject);
|
||||
|
||||
bool IsToolboxItem (object serializedObject, IDesignerHost host);
|
||||
|
||||
void Refresh();
|
||||
|
||||
void RemoveCreator (string format);
|
||||
|
||||
void RemoveCreator (string format, IDesignerHost host);
|
||||
|
||||
void RemoveToolboxItem (ToolboxItem toolboxItem);
|
||||
|
||||
void RemoveToolboxItem (ToolboxItem toolboxItem, string category);
|
||||
|
||||
void SelectedToolboxItemUsed ();
|
||||
|
||||
object SerializeToolboxItem (ToolboxItem toolboxItem);
|
||||
|
||||
bool SetCursor ();
|
||||
|
||||
void SetSelectedToolboxItem (ToolboxItem toolboxItem);
|
||||
}
|
||||
}
|
@@ -1,40 +0,0 @@
|
||||
// System.Drawing.Design.IToolboxUser.cs
|
||||
//
|
||||
// Author:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Design
|
||||
{
|
||||
public interface IToolboxUser
|
||||
{
|
||||
bool GetToolSupported (ToolboxItem tool);
|
||||
|
||||
void ToolPicked (ToolboxItem tool);
|
||||
}
|
||||
}
|
@@ -1,82 +0,0 @@
|
||||
// System.Drawing.Design.PaintvalueEventArgs.cs
|
||||
//
|
||||
// Author:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004-2005 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.
|
||||
//
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace System.Drawing.Design
|
||||
{
|
||||
public class PaintValueEventArgs : EventArgs
|
||||
{
|
||||
private ITypeDescriptorContext context;
|
||||
private object value;
|
||||
private Graphics graphics;
|
||||
private Rectangle bounds;
|
||||
|
||||
public PaintValueEventArgs(ITypeDescriptorContext context, object value, Graphics graphics, Rectangle bounds)
|
||||
{
|
||||
if (graphics == null)
|
||||
throw new ArgumentNullException ("graphics");
|
||||
this.context = context;
|
||||
this.value = value;
|
||||
this.graphics = graphics;
|
||||
this.bounds = bounds;
|
||||
}
|
||||
|
||||
public Rectangle Bounds
|
||||
{
|
||||
get {
|
||||
return bounds;
|
||||
}
|
||||
}
|
||||
|
||||
public ITypeDescriptorContext Context
|
||||
{
|
||||
get {
|
||||
return context;
|
||||
}
|
||||
}
|
||||
|
||||
public Graphics Graphics
|
||||
{
|
||||
get {
|
||||
return graphics;
|
||||
}
|
||||
}
|
||||
|
||||
public object Value
|
||||
{
|
||||
get {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,85 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Design.PropertyValueItem.cs
|
||||
//
|
||||
// Authors:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
// (C) 2003 Andreas Nahr
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004-2005 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Design
|
||||
{
|
||||
public class PropertyValueUIItem
|
||||
{
|
||||
|
||||
private Image uiItemImage;
|
||||
private PropertyValueUIItemInvokeHandler handler;
|
||||
private string tooltip;
|
||||
|
||||
public PropertyValueUIItem (Image uiItemImage,
|
||||
PropertyValueUIItemInvokeHandler handler, string tooltip)
|
||||
{
|
||||
if (uiItemImage == null)
|
||||
throw new ArgumentNullException ("uiItemImage");
|
||||
if (handler == null)
|
||||
throw new ArgumentNullException ("handler");
|
||||
this.uiItemImage = uiItemImage;
|
||||
this.handler = handler;
|
||||
this.tooltip = tooltip;
|
||||
}
|
||||
|
||||
public virtual Image Image
|
||||
{
|
||||
get
|
||||
{
|
||||
return uiItemImage;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual PropertyValueUIItemInvokeHandler InvokeHandler
|
||||
{
|
||||
get
|
||||
{
|
||||
return handler;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual string ToolTip
|
||||
{
|
||||
get
|
||||
{
|
||||
return tooltip;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
// To be overriden in child classes
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,35 +0,0 @@
|
||||
// System.Drawing.Design.PropertyValueUIHandler.cs
|
||||
//
|
||||
// Author:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace System.Drawing.Design {
|
||||
|
||||
public delegate void PropertyValueUIHandler (ITypeDescriptorContext context, PropertyDescriptor propDesc, ArrayList valueUIItemList);
|
||||
}
|
@@ -1,37 +0,0 @@
|
||||
// System.Drawing.Design.PropertyValueUIItemInvokeHandler.cs
|
||||
//
|
||||
// Author:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace System.Drawing.Design {
|
||||
|
||||
public delegate void PropertyValueUIItemInvokeHandler (
|
||||
ITypeDescriptorContext context,
|
||||
PropertyDescriptor descriptor,
|
||||
PropertyValueUIItem invokedItem);
|
||||
}
|
@@ -1,51 +0,0 @@
|
||||
// System.Drawing.Design.ToolboxComponentsCreatedEventArgs.cs
|
||||
//
|
||||
// Author:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
//
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004-2005 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.
|
||||
//
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace System.Drawing.Design
|
||||
{
|
||||
public class ToolboxComponentsCreatedEventArgs : EventArgs
|
||||
{
|
||||
private IComponent[] components;
|
||||
|
||||
public ToolboxComponentsCreatedEventArgs (IComponent[] components) {
|
||||
this.components = components;
|
||||
}
|
||||
|
||||
public IComponent[] Components {
|
||||
get {
|
||||
return components;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,33 +0,0 @@
|
||||
// System.Drawing.Design.IDesignerHost.cs
|
||||
//
|
||||
// Author:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Design {
|
||||
|
||||
public delegate void ToolboxComponentsCreatedEventHandler (object sender, ToolboxComponentsCreatedEventArgs e);
|
||||
}
|
||||
|
@@ -1,57 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Design.ToolboxComponentsCreatingEventArgs.cs
|
||||
//
|
||||
// Author:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004-2005 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.
|
||||
//
|
||||
|
||||
using System.ComponentModel.Design;
|
||||
using System.Security.Permissions;
|
||||
|
||||
namespace System.Drawing.Design
|
||||
{
|
||||
[PermissionSet (SecurityAction.LinkDemand, Unrestricted = true)]
|
||||
[PermissionSet (SecurityAction.InheritanceDemand, Unrestricted = true)]
|
||||
public class ToolboxComponentsCreatingEventArgs : EventArgs
|
||||
{
|
||||
private IDesignerHost host;
|
||||
|
||||
public ToolboxComponentsCreatingEventArgs (IDesignerHost host)
|
||||
{
|
||||
this.host = host;
|
||||
}
|
||||
|
||||
public IDesignerHost DesignerHost {
|
||||
get {
|
||||
return host;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,32 +0,0 @@
|
||||
// System.Drawing.Design.ToolboxComponentsCreatingEventHandler.cs
|
||||
//
|
||||
// Author:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Design {
|
||||
|
||||
public delegate void ToolboxComponentsCreatingEventHandler (object sender, ToolboxComponentsCreatingEventArgs e);
|
||||
}
|
@@ -1,73 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Design.ToolboxItemCollection.cs
|
||||
//
|
||||
// Authors:
|
||||
// Martin Willemoes Hansen (mwh@sysrq.dk)
|
||||
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
|
||||
//
|
||||
// (C) 2003 Martin Willemoes Hansen
|
||||
// (C) 2003 Andreas Nahr
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004-2005 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.
|
||||
//
|
||||
|
||||
using System.Collections;
|
||||
using System.Security.Permissions;
|
||||
|
||||
namespace System.Drawing.Design
|
||||
{
|
||||
[PermissionSet (SecurityAction.LinkDemand, Unrestricted = true)]
|
||||
public sealed class ToolboxItemCollection : ReadOnlyCollectionBase
|
||||
{
|
||||
|
||||
public ToolboxItemCollection (ToolboxItem[] value) : base()
|
||||
{
|
||||
InnerList.AddRange (value);
|
||||
}
|
||||
|
||||
public ToolboxItemCollection (ToolboxItemCollection value) : base()
|
||||
{
|
||||
InnerList.AddRange (value);
|
||||
}
|
||||
|
||||
public ToolboxItem this [int index] {
|
||||
get { return (ToolboxItem) InnerList[index]; }
|
||||
}
|
||||
|
||||
public bool Contains (ToolboxItem value)
|
||||
{
|
||||
return InnerList.Contains (value);
|
||||
}
|
||||
|
||||
public void CopyTo (ToolboxItem[] array, int index)
|
||||
{
|
||||
InnerList.CopyTo (array, index);
|
||||
}
|
||||
|
||||
public int IndexOf (ToolboxItem value)
|
||||
{
|
||||
return InnerList.IndexOf (value);
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,34 +0,0 @@
|
||||
// System.Drawing.Design.ToolboxItemCreatorCallback.cs
|
||||
//
|
||||
// Author:
|
||||
// Alejandro Sánchez Acosta <raciel@es.gnu.org>
|
||||
//
|
||||
// (C) Alejandro Sánchez Acosta
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Design {
|
||||
|
||||
public delegate ToolboxItem ToolboxItemCreatorCallback(
|
||||
object serializedObject,
|
||||
string format);
|
||||
}
|
@@ -1,104 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Design.UITypeEditor.cs
|
||||
//
|
||||
// Authors:
|
||||
// Alan Tam Siu Lung <Tam@SiuLung.com>
|
||||
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
|
||||
//
|
||||
// (C) 2003 Alan Tam Siu Lung <Tam@SiuLung.com>
|
||||
// (C) 2003 Andreas Nahr
|
||||
// Copyright (C) 2004-2006 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.
|
||||
//
|
||||
|
||||
using System.ComponentModel;
|
||||
using System.Collections;
|
||||
|
||||
namespace System.Drawing.Design
|
||||
{
|
||||
public class UITypeEditor {
|
||||
|
||||
static UITypeEditor ()
|
||||
{
|
||||
Hashtable editors = new Hashtable ();
|
||||
editors [typeof (Array)] = "System.ComponentModel.Design.ArrayEditor, " + Consts.AssemblySystem_Design;
|
||||
editors [typeof (byte [])] = "System.ComponentModel.Design.BinaryEditor, " + Consts.AssemblySystem_Design;
|
||||
editors [typeof (DateTime)] = "System.ComponentModel.Design.DateTimeEditor, " + Consts.AssemblySystem_Design;
|
||||
editors [typeof (IList)] = "System.ComponentModel.Design.CollectionEditor, " + Consts.AssemblySystem_Design;
|
||||
editors [typeof (ICollection)] = "System.ComponentModel.Design.CollectionEditor, " + Consts.AssemblySystem_Design;
|
||||
editors [typeof (string[])] = "System.Windows.Forms.Design.StringArrayEditor, " + Consts.AssemblySystem_Design;
|
||||
#if !MOBILE
|
||||
TypeDescriptor.AddEditorTable (typeof (UITypeEditor), editors);
|
||||
#endif
|
||||
}
|
||||
|
||||
public UITypeEditor()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual object EditValue (ITypeDescriptorContext context,
|
||||
IServiceProvider provider, object value)
|
||||
{
|
||||
// We already stated that we can't edit ;)
|
||||
return value;
|
||||
}
|
||||
|
||||
public object EditValue (IServiceProvider provider, object value)
|
||||
{
|
||||
return EditValue (null, provider, value);
|
||||
}
|
||||
|
||||
public virtual UITypeEditorEditStyle GetEditStyle (ITypeDescriptorContext context)
|
||||
{
|
||||
return UITypeEditorEditStyle.None;
|
||||
}
|
||||
|
||||
public UITypeEditorEditStyle GetEditStyle ()
|
||||
{
|
||||
return GetEditStyle (null);
|
||||
}
|
||||
|
||||
public bool GetPaintValueSupported ()
|
||||
{
|
||||
return GetPaintValueSupported (null);
|
||||
}
|
||||
|
||||
public virtual bool GetPaintValueSupported (ITypeDescriptorContext context)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public void PaintValue (object value, Graphics canvas, Rectangle rectangle)
|
||||
{
|
||||
PaintValue (new PaintValueEventArgs (null, value, canvas, rectangle));
|
||||
}
|
||||
|
||||
public virtual void PaintValue (PaintValueEventArgs e)
|
||||
{
|
||||
// LAMESPEC: Did not find info in the docs if this should do something here.
|
||||
// Usually you would expect, that this class gets inherited and this overridden,
|
||||
// but on the other hand the class is not abstract. Could never observe it did paint anything
|
||||
return;
|
||||
}
|
||||
public virtual bool IsDropDownResizable {
|
||||
get { return false; }
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,38 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Design.UITypeEditorEditStyle.cs
|
||||
//
|
||||
// (C) 2001 Ximian, Inc. http://www.ximian.com
|
||||
// Author: Dennis Hayes (dennish@raytek.com)
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004 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.
|
||||
//
|
||||
using System;
|
||||
namespace System.Drawing.Design
|
||||
{
|
||||
public enum UITypeEditorEditStyle{
|
||||
DropDown=3,
|
||||
Modal=2,
|
||||
None=1
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user