**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Design / System.Windows.Forms.Design / ParentControlDesigner.cs
blob89b2c16fe83b3bd56715a2dfc8a5109078951da8
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.Diagnostics;
35 using System.Drawing;
36 using System.Drawing.Design;
38 namespace System.Windows.Forms.Design
40 public class ParentControlDesigner : ControlDesigner, ISelectionUIHandler, IOleDragClient
42 #region Public Instance Constructors
44 [MonoTODO]
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
63 [MonoTODO]
64 internal Size ParentGridSize
66 get
68 throw new NotImplementedException ();
72 #endregion Internal Instance Properties
74 #region Protected Instance Properties
76 [MonoTODO]
77 protected virtual Point DefaultControlLocation
79 get
81 throw new NotImplementedException ();
85 [MonoTODO]
86 protected virtual bool DrawGrid
88 get
90 throw new NotImplementedException ();
92 set
94 throw new NotImplementedException ();
98 [MonoTODO]
99 protected Size GridSize
103 throw new NotImplementedException ();
107 throw new NotImplementedException ();
111 #endregion Protected Instance Properties
113 #region Override implementation of ControlDesigner
115 [MonoTODO]
116 protected override void Dispose (bool disposing)
118 throw new NotImplementedException ();
121 [MonoTODO]
122 public override void Initialize (IComponent component)
124 throw new NotImplementedException ();
127 [MonoTODO]
128 protected override void OnDragDrop (DragEventArgs de)
130 throw new NotImplementedException ();
133 [MonoTODO]
134 protected override void OnDragEnter (DragEventArgs de)
136 throw new NotImplementedException ();
139 [MonoTODO]
140 protected override void OnDragLeave (EventArgs e)
142 throw new NotImplementedException ();
145 [MonoTODO]
146 protected override void OnDragOver (DragEventArgs de)
148 throw new NotImplementedException ();
151 [MonoTODO]
152 protected override void OnGiveFeedback (GiveFeedbackEventArgs e)
154 throw new NotImplementedException ();
157 [MonoTODO]
158 protected override void OnMouseDragBegin (int x, int y)
160 throw new NotImplementedException ();
163 [MonoTODO]
164 protected override void OnMouseDragEnd (bool cancel)
166 throw new NotImplementedException ();
169 [MonoTODO]
170 protected override void OnMouseDragMove (int x, int y)
172 throw new NotImplementedException ();
175 [MonoTODO]
176 protected override void OnMouseEnter ()
178 throw new NotImplementedException ();
181 [MonoTODO]
182 protected override void OnMouseHover ()
184 throw new NotImplementedException ();
187 [MonoTODO]
188 protected override void OnMouseLeave ()
190 throw new NotImplementedException ();
193 [MonoTODO]
194 protected override void OnPaintAdornments (PaintEventArgs pe)
196 throw new NotImplementedException ();
199 [MonoTODO]
200 protected override void OnSetCursor ()
202 throw new NotImplementedException ();
205 [MonoTODO]
206 protected override void PreFilterProperties (IDictionary properties)
208 throw new NotImplementedException ();
211 [MonoTODO]
212 protected override void WndProc (ref Message m)
214 throw new NotImplementedException ();
217 [MonoTODO]
218 protected override bool EnableDragRect
222 throw new NotImplementedException ();
226 #endregion Override implementation of ControlDesigner
228 #region Private Static Methods
230 [MonoTODO]
231 protected static void InvokeCreateTool (ParentControlDesigner toInvoke, ToolboxItem tool)
233 throw new NotImplementedException ();
236 #endregion Private Static Methods
238 #region Implementation of IOleDragClient
240 [MonoTODO]
241 bool IOleDragClient.AddComponent (IComponent component, string name, bool firstAdd)
243 throw new NotImplementedException ();
246 [MonoTODO]
247 bool IOleDragClient.CanModifyComponents
251 throw new NotImplementedException ();
255 [MonoTODO]
256 IComponent IOleDragClient.Component
260 throw new NotImplementedException ();
264 [MonoTODO]
265 Control IOleDragClient.GetControlForComponent (object component)
267 throw new NotImplementedException ();
270 [MonoTODO]
271 Control IOleDragClient.GetDesignerControl ()
273 throw new NotImplementedException ();
276 [MonoTODO]
277 bool IOleDragClient.IsDropOk (IComponent component)
279 throw new NotImplementedException ();
282 #endregion Implementation of IOleDragClient
284 #region Implementation of ISelectionUIHandler
286 [MonoTODO]
287 bool ISelectionUIHandler.BeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)
289 throw new NotImplementedException ();
292 [MonoTODO]
293 void ISelectionUIHandler.DragMoved (object[] components, Rectangle offset)
295 throw new NotImplementedException ();
298 [MonoTODO]
299 void ISelectionUIHandler.EndDrag (object[] components, bool cancel)
301 throw new NotImplementedException ();
304 [MonoTODO]
305 Rectangle ISelectionUIHandler.GetComponentBounds (object component)
307 throw new NotImplementedException ();
310 [MonoTODO]
311 SelectionRules ISelectionUIHandler.GetComponentRules (object component)
313 throw new NotImplementedException ();
316 [MonoTODO]
317 Rectangle ISelectionUIHandler.GetSelectionClipRect (object component)
319 throw new NotImplementedException ();
322 [MonoTODO]
323 void ISelectionUIHandler.OleDragDrop (DragEventArgs de)
325 throw new NotImplementedException ();
328 [MonoTODO]
329 void ISelectionUIHandler.OleDragEnter (DragEventArgs de)
331 throw new NotImplementedException ();
334 [MonoTODO]
335 void ISelectionUIHandler.OleDragLeave ()
337 throw new NotImplementedException ();
340 [MonoTODO]
341 void ISelectionUIHandler.OleDragOver (DragEventArgs de)
343 throw new NotImplementedException ();
346 [MonoTODO]
347 void ISelectionUIHandler.OnSelectionDoubleClick (IComponent component)
349 throw new NotImplementedException ();
352 [MonoTODO]
353 bool ISelectionUIHandler.QueryBeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)
355 throw new NotImplementedException ();
358 [MonoTODO]
359 void ISelectionUIHandler.ShowContextMenu (IComponent component)
361 throw new NotImplementedException ();
364 #endregion Implementation of ISelectionUIHandler
366 #region Public Instance Methods
368 [MonoTODO]
369 public virtual bool CanParent (Control control)
371 throw new NotImplementedException ();
374 [MonoTODO]
375 public virtual bool CanParent (ControlDesigner controlDesigner)
377 throw new NotImplementedException ();
380 #endregion Public Instance Methods
382 #region Internal Instance Methods
384 [MonoTODO]
385 internal Point GetSnappedPoint (Point pt)
387 throw new NotImplementedException ();
390 [MonoTODO]
391 internal void SetCursor ()
393 throw new NotImplementedException ();
396 #endregion Internal Instance Methods
398 #region Protected Instance Methods
400 [MonoTODO]
401 protected void CreateTool (ToolboxItem tool)
403 throw new NotImplementedException ();
406 [MonoTODO]
407 protected void CreateTool (ToolboxItem tool, Point location)
409 throw new NotImplementedException ();
412 [MonoTODO]
413 protected void CreateTool (ToolboxItem tool, Rectangle bounds)
415 throw new NotImplementedException ();
418 [MonoTODO]
419 protected virtual IComponent[] CreateToolCore (ToolboxItem tool, int x, int y, int width, int height, bool hasLocation, bool hasSize)
421 throw new NotImplementedException ();
424 [MonoTODO]
425 protected Control GetControl (object component)
427 throw new NotImplementedException ();
430 [MonoTODO]
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