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
;
34 using System
.Diagnostics
;
36 using System
.Drawing
.Design
;
38 namespace System
.Windows
.Forms
.Design
40 public class ParentControlDesigner
: ControlDesigner
, ISelectionUIHandler
, IOleDragClient
42 #region Public Instance Constructors
45 public ParentControlDesigner ()
47 throw new NotImplementedException ();
50 #endregion Public Instance Constructors
52 #region Static Constructor
54 static ParentControlDesigner ()
56 ParentControlDesigner
.StepControls
= new BooleanSwitch ("StepControls", "ParentControlDesigner: step added controls");
59 #endregion Static Constructor
61 #region Internal Instance Properties
64 internal Size ParentGridSize
68 throw new NotImplementedException ();
72 #endregion Internal Instance Properties
74 #region Protected Instance Properties
77 protected virtual Point DefaultControlLocation
81 throw new NotImplementedException ();
86 protected virtual bool DrawGrid
90 throw new NotImplementedException ();
94 throw new NotImplementedException ();
99 protected Size GridSize
103 throw new NotImplementedException ();
107 throw new NotImplementedException ();
111 #endregion Protected Instance Properties
113 #region Override implementation of ControlDesigner
116 protected override void Dispose (bool disposing
)
118 throw new NotImplementedException ();
122 public override void Initialize (IComponent component
)
124 throw new NotImplementedException ();
128 protected override void OnDragDrop (DragEventArgs de
)
130 throw new NotImplementedException ();
134 protected override void OnDragEnter (DragEventArgs de
)
136 throw new NotImplementedException ();
140 protected override void OnDragLeave (EventArgs e
)
142 throw new NotImplementedException ();
146 protected override void OnDragOver (DragEventArgs de
)
148 throw new NotImplementedException ();
152 protected override void OnGiveFeedback (GiveFeedbackEventArgs e
)
154 throw new NotImplementedException ();
158 protected override void OnMouseDragBegin (int x
, int y
)
160 throw new NotImplementedException ();
164 protected override void OnMouseDragEnd (bool cancel
)
166 throw new NotImplementedException ();
170 protected override void OnMouseDragMove (int x
, int y
)
172 throw new NotImplementedException ();
176 protected override void OnMouseEnter ()
178 throw new NotImplementedException ();
182 protected override void OnMouseHover ()
184 throw new NotImplementedException ();
188 protected override void OnMouseLeave ()
190 throw new NotImplementedException ();
194 protected override void OnPaintAdornments (PaintEventArgs pe
)
196 throw new NotImplementedException ();
200 protected override void OnSetCursor ()
202 throw new NotImplementedException ();
206 protected override void PreFilterProperties (IDictionary properties
)
208 throw new NotImplementedException ();
212 protected override void WndProc (ref Message m
)
214 throw new NotImplementedException ();
218 protected override bool EnableDragRect
222 throw new NotImplementedException ();
226 #endregion Override implementation of ControlDesigner
228 #region Private Static Methods
231 protected static void InvokeCreateTool (ParentControlDesigner toInvoke
, ToolboxItem tool
)
233 throw new NotImplementedException ();
236 #endregion Private Static Methods
238 #region Implementation of IOleDragClient
241 bool IOleDragClient
.AddComponent (IComponent component
, string name
, bool firstAdd
)
243 throw new NotImplementedException ();
247 bool IOleDragClient
.CanModifyComponents
251 throw new NotImplementedException ();
256 IComponent IOleDragClient
.Component
260 throw new NotImplementedException ();
265 Control IOleDragClient
.GetControlForComponent (object component
)
267 throw new NotImplementedException ();
271 Control IOleDragClient
.GetDesignerControl ()
273 throw new NotImplementedException ();
277 bool IOleDragClient
.IsDropOk (IComponent component
)
279 throw new NotImplementedException ();
282 #endregion Implementation of IOleDragClient
284 #region Implementation of ISelectionUIHandler
287 bool ISelectionUIHandler
.BeginDrag (object[] components
, SelectionRules rules
, int initialX
, int initialY
)
289 throw new NotImplementedException ();
293 void ISelectionUIHandler
.DragMoved (object[] components
, Rectangle offset
)
295 throw new NotImplementedException ();
299 void ISelectionUIHandler
.EndDrag (object[] components
, bool cancel
)
301 throw new NotImplementedException ();
305 Rectangle ISelectionUIHandler
.GetComponentBounds (object component
)
307 throw new NotImplementedException ();
311 SelectionRules ISelectionUIHandler
.GetComponentRules (object component
)
313 throw new NotImplementedException ();
317 Rectangle ISelectionUIHandler
.GetSelectionClipRect (object component
)
319 throw new NotImplementedException ();
323 void ISelectionUIHandler
.OleDragDrop (DragEventArgs de
)
325 throw new NotImplementedException ();
329 void ISelectionUIHandler
.OleDragEnter (DragEventArgs de
)
331 throw new NotImplementedException ();
335 void ISelectionUIHandler
.OleDragLeave ()
337 throw new NotImplementedException ();
341 void ISelectionUIHandler
.OleDragOver (DragEventArgs de
)
343 throw new NotImplementedException ();
347 void ISelectionUIHandler
.OnSelectionDoubleClick (IComponent component
)
349 throw new NotImplementedException ();
353 bool ISelectionUIHandler
.QueryBeginDrag (object[] components
, SelectionRules rules
, int initialX
, int initialY
)
355 throw new NotImplementedException ();
359 void ISelectionUIHandler
.ShowContextMenu (IComponent component
)
361 throw new NotImplementedException ();
364 #endregion Implementation of ISelectionUIHandler
366 #region Public Instance Methods
369 public virtual bool CanParent (Control control
)
371 throw new NotImplementedException ();
375 public virtual bool CanParent (ControlDesigner controlDesigner
)
377 throw new NotImplementedException ();
380 #endregion Public Instance Methods
382 #region Internal Instance Methods
385 internal Point
GetSnappedPoint (Point pt
)
387 throw new NotImplementedException ();
391 internal void SetCursor ()
393 throw new NotImplementedException ();
396 #endregion Internal Instance Methods
398 #region Protected Instance Methods
401 protected void CreateTool (ToolboxItem tool
)
403 throw new NotImplementedException ();
407 protected void CreateTool (ToolboxItem tool
, Point location
)
409 throw new NotImplementedException ();
413 protected void CreateTool (ToolboxItem tool
, Rectangle bounds
)
415 throw new NotImplementedException ();
419 protected virtual IComponent
[] CreateToolCore (ToolboxItem tool
, int x
, int y
, int width
, int height
, bool hasLocation
, bool hasSize
)
421 throw new NotImplementedException ();
425 protected Control
GetControl (object component
)
427 throw new NotImplementedException ();
431 protected Rectangle
GetUpdatedRect (Rectangle originalRect
, Rectangle dragRect
, bool updateSize
)
433 throw new NotImplementedException ();
436 #endregion Protected Instance Methods
438 #region Private Static Fields
440 private static BooleanSwitch StepControls
;
442 #endregion Private Static Fields