**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Design / System.Windows.Forms.Design / ControlDesigner.cs
blobc7300bf8d655eecb20390edcfb97f060ddf86750
1 //
2 // System.Windows.Forms.Design.ComponentEditorForm.cs
3 //
4 // Author:
5 // Dennis Hayes (dennish@raytek.com)
6 // (C) 2002 Ximian, Inc. http://www.ximian.com
7 //
9 //
10 // Permission is hereby granted, free of charge, to any person obtaining
11 // a copy of this software and associated documentation files (the
12 // "Software"), to deal in the Software without restriction, including
13 // without limitation the rights to use, copy, modify, merge, publish,
14 // distribute, sublicense, and/or sell copies of the Software, and to
15 // permit persons to whom the Software is furnished to do so, subject to
16 // the following conditions:
17 //
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
20 //
21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 using System;
31 using System.Collections;
32 using System.ComponentModel;
33 using System.ComponentModel.Design;
34 using System.Drawing;
35 using System.Runtime.InteropServices;
37 namespace System.Windows.Forms.Design {
38 public class ControlDesigner : ComponentDesigner
40 #region Public Instance Constructors
42 [MonoTODO]
43 public ControlDesigner()
45 throw new NotImplementedException ();
48 #endregion Public Instance Constructors
50 #region Static Constructor
52 static ControlDesigner()
54 ControlDesigner.InvalidPoint = new Point(int.MinValue, int.MinValue);
57 #endregion Static Constructor
59 #region Public Instance Methods
61 [MonoTODO]
62 public virtual bool CanBeParentedTo(IDesigner parentDesigner)
64 throw new NotImplementedException ();
67 [MonoTODO]
68 public override void OnSetComponentDefaults()
70 throw new NotImplementedException ();
73 #endregion Public Instance Methods
75 #region Protected Instance Methods
77 [MonoTODO]
78 protected void BaseWndProc(ref Message m)
80 throw new NotImplementedException ();
83 [MonoTODO]
84 protected void DefWndProc(ref Message m)
86 throw new NotImplementedException ();
89 [MonoTODO]
90 protected void DisplayError(Exception e)
92 throw new NotImplementedException ();
95 [MonoTODO]
96 protected void EnableDragDrop(bool value)
98 throw new NotImplementedException ();
101 [MonoTODO]
102 protected virtual bool GetHitTest (Point point)
104 throw new NotImplementedException ();
107 [MonoTODO]
108 protected void HookChildControls (Control firstChild)
110 throw new NotImplementedException ();
113 [MonoTODO]
114 protected virtual void OnContextMenu (int x, int y)
116 throw new NotImplementedException ();
119 [MonoTODO]
120 protected virtual void OnCreateHandle ()
122 throw new NotImplementedException ();
125 [MonoTODO]
126 protected virtual void OnDragDrop (DragEventArgs de)
128 throw new NotImplementedException ();
131 [MonoTODO]
132 protected virtual void OnDragEnter (DragEventArgs de)
134 throw new NotImplementedException ();
137 [MonoTODO]
138 protected virtual void OnDragLeave (EventArgs e)
140 throw new NotImplementedException ();
143 [MonoTODO]
144 protected virtual void OnDragOver(DragEventArgs de)
146 throw new NotImplementedException ();
149 [MonoTODO]
150 protected virtual void OnGiveFeedback (GiveFeedbackEventArgs e)
152 throw new NotImplementedException ();
155 [MonoTODO]
156 protected virtual void OnMouseDragBegin (int x, int y)
158 throw new NotImplementedException ();
161 [MonoTODO]
162 protected virtual void OnMouseDragEnd (bool cancel)
164 throw new NotImplementedException ();
167 [MonoTODO]
168 protected virtual void OnMouseDragMove (int x, int y)
170 throw new NotImplementedException ();
173 [MonoTODO]
174 protected virtual void OnMouseEnter ()
176 throw new NotImplementedException ();
179 [MonoTODO]
180 protected virtual void OnMouseHover ()
182 throw new NotImplementedException ();
185 [MonoTODO]
186 protected virtual void OnMouseLeave ()
188 throw new NotImplementedException ();
191 [MonoTODO]
192 protected virtual void OnPaintAdornments (PaintEventArgs pe)
194 throw new NotImplementedException ();
197 [MonoTODO]
198 protected virtual void OnSetCursor ()
200 throw new NotImplementedException ();
203 [MonoTODO]
204 protected void UnhookChildControls (Control firstChild)
206 throw new NotImplementedException ();
209 [MonoTODO]
210 protected virtual void WndProc (ref Message m)
212 throw new NotImplementedException ();
215 #endregion Protected Instance Methods
217 #region Override implementation of ComponentDesigner
219 [MonoTODO]
220 protected override void Dispose (bool disposing)
222 throw new NotImplementedException ();
225 [MonoTODO]
226 public override void Initialize (IComponent component)
228 throw new NotImplementedException ();
231 [MonoTODO]
232 public override void InitializeNonDefault ()
234 throw new NotImplementedException ();
237 [MonoTODO]
238 protected override void PreFilterProperties (IDictionary properties)
240 throw new NotImplementedException ();
243 [MonoTODO]
244 public override ICollection AssociatedComponents
248 throw new NotImplementedException ();
252 #endregion Override implementation of ComponentDesigner
254 #region Public Instance Properties
256 [MonoTODO]
257 public virtual AccessibleObject AccessibilityObject {
258 get {
259 if (accessibilityObj == null)
260 accessibilityObj = new ControlDesignerAccessibleObject (this, Control);
262 return accessibilityObj;
266 [MonoTODO]
267 public virtual SelectionRules SelectionRules
271 throw new NotImplementedException ();
275 [MonoTODO]
276 public virtual Control Control
280 throw new NotImplementedException ();
284 #endregion Public Instance Properties
286 #region Protected Instance Properties
288 [MonoTODO]
289 protected virtual bool EnableDragRect
293 throw new NotImplementedException ();
297 #endregion Protected Instance Properties
299 #region Protected Static Fields
301 protected static readonly Point InvalidPoint;
302 protected AccessibleObject accessibilityObj;
304 #endregion Protected Static Fields
306 [ComVisibleAttribute(true)]
307 public class ControlDesignerAccessibleObject : AccessibleObject
309 [MonoTODO]
310 public ControlDesignerAccessibleObject (ControlDesigner designer, Control control)
312 throw new NotImplementedException ();
315 #region Override implementation of AccessibleObject
317 [MonoTODO]
318 public override AccessibleObject GetChild (int index)
320 throw new NotImplementedException ();
323 [MonoTODO]
324 public override int GetChildCount ()
326 throw new NotImplementedException ();
329 [MonoTODO]
330 public override AccessibleObject GetFocused ()
332 throw new NotImplementedException ();
335 [MonoTODO]
336 public override AccessibleObject GetSelected ()
338 throw new NotImplementedException ();
341 [MonoTODO]
342 public override AccessibleObject HitTest (int x, int y)
344 throw new NotImplementedException ();
347 [MonoTODO]
348 public override Rectangle Bounds
352 throw new NotImplementedException ();
356 [MonoTODO]
357 public override string DefaultAction
361 throw new NotImplementedException ();
365 [MonoTODO]
366 public override string Description
370 throw new NotImplementedException ();
374 [MonoTODO]
375 public override string Name
379 throw new NotImplementedException ();
383 [MonoTODO]
384 public override AccessibleObject Parent
388 throw new NotImplementedException ();
392 [MonoTODO]
393 public override AccessibleRole Role
397 throw new NotImplementedException ();
401 [MonoTODO]
402 public override AccessibleStates State
406 throw new NotImplementedException ();
410 [MonoTODO]
411 public override string Value
415 throw new NotImplementedException ();
419 #endregion Override implementation of AccessibleObject