2 // System.Windows.Forms.Design.ComponentEditorForm.cs
5 // Dennis Hayes (dennish@raytek.com)
6 // (C) 2002 Ximian, Inc. http://www.ximian.com
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:
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
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.
31 using System
.Collections
;
32 using System
.ComponentModel
;
33 using System
.ComponentModel
.Design
;
35 using System
.Runtime
.InteropServices
;
37 namespace System
.Windows
.Forms
.Design
{
38 public class ControlDesigner
: ComponentDesigner
40 #region Public Instance Constructors
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
62 public virtual bool CanBeParentedTo(IDesigner parentDesigner
)
64 throw new NotImplementedException ();
68 public override void OnSetComponentDefaults()
70 throw new NotImplementedException ();
73 #endregion Public Instance Methods
75 #region Protected Instance Methods
78 protected void BaseWndProc(ref Message m
)
80 throw new NotImplementedException ();
84 protected void DefWndProc(ref Message m
)
86 throw new NotImplementedException ();
90 protected void DisplayError(Exception e
)
92 throw new NotImplementedException ();
96 protected void EnableDragDrop(bool value)
98 throw new NotImplementedException ();
102 protected virtual bool GetHitTest (Point point
)
104 throw new NotImplementedException ();
108 protected void HookChildControls (Control firstChild
)
110 throw new NotImplementedException ();
114 protected virtual void OnContextMenu (int x
, int y
)
116 throw new NotImplementedException ();
120 protected virtual void OnCreateHandle ()
122 throw new NotImplementedException ();
126 protected virtual void OnDragDrop (DragEventArgs de
)
128 throw new NotImplementedException ();
132 protected virtual void OnDragEnter (DragEventArgs de
)
134 throw new NotImplementedException ();
138 protected virtual void OnDragLeave (EventArgs e
)
140 throw new NotImplementedException ();
144 protected virtual void OnDragOver(DragEventArgs de
)
146 throw new NotImplementedException ();
150 protected virtual void OnGiveFeedback (GiveFeedbackEventArgs e
)
152 throw new NotImplementedException ();
156 protected virtual void OnMouseDragBegin (int x
, int y
)
158 throw new NotImplementedException ();
162 protected virtual void OnMouseDragEnd (bool cancel
)
164 throw new NotImplementedException ();
168 protected virtual void OnMouseDragMove (int x
, int y
)
170 throw new NotImplementedException ();
174 protected virtual void OnMouseEnter ()
176 throw new NotImplementedException ();
180 protected virtual void OnMouseHover ()
182 throw new NotImplementedException ();
186 protected virtual void OnMouseLeave ()
188 throw new NotImplementedException ();
192 protected virtual void OnPaintAdornments (PaintEventArgs pe
)
194 throw new NotImplementedException ();
198 protected virtual void OnSetCursor ()
200 throw new NotImplementedException ();
204 protected void UnhookChildControls (Control firstChild
)
206 throw new NotImplementedException ();
210 protected virtual void WndProc (ref Message m
)
212 throw new NotImplementedException ();
215 #endregion Protected Instance Methods
217 #region Override implementation of ComponentDesigner
220 protected override void Dispose (bool disposing
)
222 throw new NotImplementedException ();
226 public override void Initialize (IComponent component
)
228 throw new NotImplementedException ();
232 public override void InitializeNonDefault ()
234 throw new NotImplementedException ();
238 protected override void PreFilterProperties (IDictionary properties
)
240 throw new NotImplementedException ();
244 public override ICollection AssociatedComponents
248 throw new NotImplementedException ();
252 #endregion Override implementation of ComponentDesigner
254 #region Public Instance Properties
257 public virtual AccessibleObject AccessibilityObject
{
259 if (accessibilityObj
== null)
260 accessibilityObj
= new ControlDesignerAccessibleObject (this, Control
);
262 return accessibilityObj
;
267 public virtual SelectionRules SelectionRules
271 throw new NotImplementedException ();
276 public virtual Control Control
280 throw new NotImplementedException ();
284 #endregion Public Instance Properties
286 #region Protected Instance Properties
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
310 public ControlDesignerAccessibleObject (ControlDesigner designer
, Control control
)
312 throw new NotImplementedException ();
315 #region Override implementation of AccessibleObject
318 public override AccessibleObject
GetChild (int index
)
320 throw new NotImplementedException ();
324 public override int GetChildCount ()
326 throw new NotImplementedException ();
330 public override AccessibleObject
GetFocused ()
332 throw new NotImplementedException ();
336 public override AccessibleObject
GetSelected ()
338 throw new NotImplementedException ();
342 public override AccessibleObject
HitTest (int x
, int y
)
344 throw new NotImplementedException ();
348 public override Rectangle Bounds
352 throw new NotImplementedException ();
357 public override string DefaultAction
361 throw new NotImplementedException ();
366 public override string Description
370 throw new NotImplementedException ();
375 public override string Name
379 throw new NotImplementedException ();
384 public override AccessibleObject Parent
388 throw new NotImplementedException ();
393 public override AccessibleRole Role
397 throw new NotImplementedException ();
402 public override AccessibleStates State
406 throw new NotImplementedException ();
411 public override string Value
415 throw new NotImplementedException ();
419 #endregion Override implementation of AccessibleObject