Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

216 lines
4.8 KiB
C#

//
// System.Windows.Forms.Design.ComponentDocumentDesigner.cs
//
// Author:
// Dennis Hayes (dennish@raytek.com)
// (C) 2002 Ximian, Inc. http://www.ximian.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;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing.Design;
using System.Windows.Forms;
namespace System.Windows.Forms.Design
{
public class ComponentDocumentDesigner : ComponentDesigner, IRootDesigner, IToolboxUser, ITypeDescriptorFilterService, IOleDragClient
{
#region Public Instance Constructors
[MonoTODO]
public ComponentDocumentDesigner ()
{
}
#endregion Public Instance Constructors
#region Implementation of IRootDesigner
ViewTechnology[] IRootDesigner.SupportedTechnologies
{
get
{
ViewTechnology[] array1 = new ViewTechnology[1];
array1[0] = ViewTechnology.WindowsForms;
return array1;
}
}
[MonoTODO]
object IRootDesigner.GetView (ViewTechnology technology)
{
throw new NotImplementedException ();
}
#endregion Implementation of IRootDesigner
#region Implementation of IToolboxUser
bool IToolboxUser.GetToolSupported (ToolboxItem tool)
{
return true;
}
[MonoTODO]
void IToolboxUser.ToolPicked (ToolboxItem tool)
{
throw new NotImplementedException ();
}
#endregion Implementation of IToolboxUser
#region Implementation of ITypeDescriptorFilterService
[MonoTODO]
bool ITypeDescriptorFilterService.FilterAttributes (IComponent component, IDictionary attributes)
{
throw new NotImplementedException ();
}
[MonoTODO]
bool ITypeDescriptorFilterService.FilterEvents (IComponent component, IDictionary events)
{
throw new NotImplementedException ();
}
[MonoTODO]
bool ITypeDescriptorFilterService.FilterProperties (IComponent component, IDictionary properties)
{
throw new NotImplementedException ();
}
#endregion Implementation of ITypeDescriptorFilterService
#region Implementation of IOleDragClient
[MonoTODO]
bool IOleDragClient.AddComponent (IComponent component, string name, bool firstAdd)
{
throw new NotImplementedException ();
}
bool IOleDragClient.CanModifyComponents
{
get
{
return true;
}
}
[MonoTODO]
Control IOleDragClient.GetControlForComponent (object component)
{
throw new NotImplementedException ();
}
[MonoTODO]
Control IOleDragClient.GetDesignerControl ()
{
throw new NotImplementedException ();
}
[MonoTODO]
bool IOleDragClient.IsDropOk (IComponent component)
{
return true;
}
[MonoTODO]
IComponent IOleDragClient.Component
{
get
{
throw new NotImplementedException ();
}
}
#endregion Implementation of IOleDragClient
#region Public Instance Properties
[MonoTODO]
public Control Control
{
get
{
throw new NotImplementedException ();
}
}
public bool TrayAutoArrange
{
get
{
throw new NotImplementedException ();
}
set
{
throw new NotImplementedException ();
}
}
public bool TrayLargeIcon
{
get
{
throw new NotImplementedException ();
}
set
{
throw new NotImplementedException ();
}
}
#endregion Public Instance Properties
[MonoTODO]
public override void Initialize (IComponent component)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected override void Dispose (bool disposing)
{
throw new NotImplementedException ();
}
protected virtual bool GetToolSupported (ToolboxItem tool)
{
return true;
}
#region Override implementation of ComponentDesigner
[MonoTODO]
protected override void PreFilterProperties (IDictionary properties)
{
throw new NotImplementedException ();
}
#endregion Override implementation of ComponentDesigner
}
}