New test.
[mono.git] / mcs / class / System.Design / System.Windows.Forms.Design / ControlDesigner.cs
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 //
8
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.
28 //
29
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;
36
37 namespace System.Windows.Forms.Design {
38         public class ControlDesigner : ComponentDesigner
39         {
40                 #region Public Instance Constructors
41
42                 [MonoTODO]
43                 public ControlDesigner()
44                 {
45                         throw new NotImplementedException ();
46                 }
47
48                 #endregion Public Instance Constructors
49
50                 #region Static Constructor
51
52                 static ControlDesigner()
53                 {
54                         ControlDesigner.InvalidPoint = new Point(int.MinValue, int.MinValue);
55                 }
56
57                 #endregion Static Constructor
58
59                 #region Public Instance Methods
60
61                 [MonoTODO]
62                 public virtual bool CanBeParentedTo(IDesigner parentDesigner)
63                 {
64                         throw new NotImplementedException ();
65                 }
66
67                 [MonoTODO]
68                 public override void OnSetComponentDefaults()
69                 {
70                         throw new NotImplementedException ();
71                 }
72
73                 #endregion Public Instance Methods
74
75                 #region Protected Instance Methods
76
77                 [MonoTODO]
78                 protected void BaseWndProc(ref Message m)
79                 {
80                         throw new NotImplementedException ();
81                 }
82
83                 [MonoTODO]
84                 protected void DefWndProc(ref Message m)
85                 {
86                         throw new NotImplementedException ();
87                 }
88
89                 [MonoTODO]
90                 protected void DisplayError(Exception e)
91                 {
92                         throw new NotImplementedException ();
93                 }
94
95                 [MonoTODO]
96                 protected void EnableDragDrop(bool value)
97                 {
98                         throw new NotImplementedException ();
99                 }
100
101                 [MonoTODO]
102                 protected virtual bool GetHitTest (Point point)
103                 {
104                         throw new NotImplementedException ();
105                 }
106
107                 [MonoTODO]
108                 protected void HookChildControls (Control firstChild)
109                 {
110                         throw new NotImplementedException ();
111                 }
112
113                 [MonoTODO]
114                 protected virtual void OnContextMenu (int x, int y)
115                 {
116                         throw new NotImplementedException ();
117                 }
118
119                 [MonoTODO]
120                 protected virtual void OnCreateHandle ()
121                 {
122                         throw new NotImplementedException ();
123                 }
124
125                 [MonoTODO]
126                 protected virtual void OnDragDrop (DragEventArgs de)
127                 {
128                         throw new NotImplementedException ();
129                 }
130
131                 [MonoTODO]
132                 protected virtual void OnDragEnter (DragEventArgs de)
133                 {
134                         throw new NotImplementedException ();
135                 }
136
137                 [MonoTODO]
138                 protected virtual void OnDragLeave (EventArgs e)
139                 {
140                         throw new NotImplementedException ();
141                 }
142
143                 [MonoTODO]
144                 protected virtual void OnDragOver(DragEventArgs de)
145                 {
146                         throw new NotImplementedException ();
147                 }
148
149                 [MonoTODO]
150                 protected virtual void OnGiveFeedback (GiveFeedbackEventArgs e)
151                 {
152                         throw new NotImplementedException ();
153                 }
154
155                 [MonoTODO]
156                 protected virtual void OnMouseDragBegin (int x, int y)
157                 {
158                         throw new NotImplementedException ();
159                 }
160
161                 [MonoTODO]
162                 protected virtual void OnMouseDragEnd (bool cancel)
163                 {
164                         throw new NotImplementedException ();
165                 }
166
167                 [MonoTODO]
168                 protected virtual void OnMouseDragMove (int x, int y)
169                 {
170                         throw new NotImplementedException ();
171                 }
172
173                 [MonoTODO]
174                 protected virtual void OnMouseEnter ()
175                 {
176                         throw new NotImplementedException ();
177                 }
178
179                 [MonoTODO]
180                 protected virtual void OnMouseHover ()
181                 {
182                         throw new NotImplementedException ();
183                 }
184
185                 [MonoTODO]
186                 protected virtual void OnMouseLeave ()
187                 {
188                         throw new NotImplementedException ();
189                 }
190
191                 [MonoTODO]
192                 protected virtual void OnPaintAdornments (PaintEventArgs pe)
193                 {
194                         throw new NotImplementedException ();
195                 }
196
197                 [MonoTODO]
198                 protected virtual void OnSetCursor ()
199                 {
200                         throw new NotImplementedException ();
201                 }
202
203                 [MonoTODO]
204                 protected void UnhookChildControls (Control firstChild)
205                 {
206                         throw new NotImplementedException ();
207                 }
208
209                 [MonoTODO]
210                 protected virtual void WndProc (ref Message m)
211                 {
212                         throw new NotImplementedException ();
213                 }
214
215                 #endregion Protected Instance Methods
216
217                 #region Override implementation of ComponentDesigner
218
219                 [MonoTODO]
220                 protected override void Dispose (bool disposing)
221                 {
222                         throw new NotImplementedException ();
223                 }
224
225                 [MonoTODO]
226                 public override void Initialize (IComponent component)
227                 {
228                         throw new NotImplementedException ();
229                 }
230
231                 [MonoTODO]
232                 public override void InitializeNonDefault ()
233                 {
234                         throw new NotImplementedException ();
235                 }
236
237                 [MonoTODO]
238                 protected override void PreFilterProperties (IDictionary properties)
239                 {
240                         throw new NotImplementedException ();
241                 }
242
243                 [MonoTODO]
244                 public override ICollection AssociatedComponents
245                 {
246                         get
247                         {
248                                 throw new NotImplementedException ();
249                         }
250                 }
251
252                 #endregion Override implementation of ComponentDesigner
253
254                 #region Public Instance Properties
255
256                 [MonoTODO]
257                 public virtual AccessibleObject AccessibilityObject {
258                         get {
259                                 if (accessibilityObj == null)
260                                         accessibilityObj = new ControlDesignerAccessibleObject (this, Control);
261
262                                 return accessibilityObj;
263                         }
264                 }
265
266                 [MonoTODO]
267                 public virtual SelectionRules SelectionRules 
268                 {
269                         get
270                         {
271                                 throw new NotImplementedException ();
272                         }
273                 }
274
275                 [MonoTODO]
276                 public virtual Control Control
277                 {
278                         get
279                         {
280                                 throw new NotImplementedException ();
281                         }
282                 }
283
284                 #endregion Public Instance Properties
285
286                 #region Protected Instance Properties
287
288                 [MonoTODO]
289                 protected virtual bool EnableDragRect
290                 {
291                         get
292                         {
293                                 throw new NotImplementedException ();
294                         }
295                 }
296
297                 #endregion Protected Instance Properties
298
299                 #region Protected Static Fields
300
301                 protected static readonly Point InvalidPoint;
302                 protected AccessibleObject accessibilityObj;
303
304                 #endregion Protected Static Fields
305
306                 [ComVisibleAttribute(true)]
307                 public class ControlDesignerAccessibleObject : AccessibleObject
308                 {
309                         [MonoTODO]
310                         public ControlDesignerAccessibleObject (ControlDesigner designer, Control control)
311                         {
312                                 throw new NotImplementedException ();
313                         }
314
315                         #region Override implementation of AccessibleObject
316
317                         [MonoTODO]
318                         public override AccessibleObject GetChild (int index)
319                         {
320                                 throw new NotImplementedException ();
321                         }
322
323                         [MonoTODO]
324                         public override int GetChildCount ()
325                         {
326                                 throw new NotImplementedException ();
327                         }
328
329                         [MonoTODO]
330                         public override AccessibleObject GetFocused ()
331                         {
332                                 throw new NotImplementedException ();
333                         }
334
335                         [MonoTODO]
336                         public override AccessibleObject GetSelected ()
337                         {
338                                 throw new NotImplementedException ();
339                         }
340
341                         [MonoTODO]
342                         public override AccessibleObject HitTest (int x, int y)
343                         {
344                                 throw new NotImplementedException ();
345                         }
346
347                         [MonoTODO]
348                         public override Rectangle Bounds 
349                         { 
350                                 get
351                                 {
352                                         throw new NotImplementedException ();
353                                 }
354                         }
355
356                         [MonoTODO]
357                         public override string DefaultAction
358                         {
359                                 get
360                                 {
361                                         throw new NotImplementedException ();
362                                 }
363                         }
364
365                         [MonoTODO]
366                         public override string Description
367                         {
368                                 get
369                                 {
370                                         throw new NotImplementedException ();
371                                 }
372                         }
373
374                         [MonoTODO]
375                         public override string Name
376                         {
377                                 get
378                                 {
379                                         throw new NotImplementedException ();
380                                 }
381                         }
382
383                         [MonoTODO]
384                         public override AccessibleObject Parent
385                         {
386                                 get
387                                 {
388                                         throw new NotImplementedException ();
389                                 }
390                         }
391
392                         [MonoTODO]
393                         public override AccessibleRole Role
394                         {
395                                 get
396                                 {
397                                         throw new NotImplementedException ();
398                                 }
399                         }
400
401                         [MonoTODO]
402                         public override AccessibleStates State
403                         {
404                                 get
405                                 {
406                                         throw new NotImplementedException ();
407                                 }
408                         }
409
410                         [MonoTODO]
411                         public override string Value
412                         {
413                                 get
414                                 {
415                                         throw new NotImplementedException ();
416                                 }
417                         }
418
419                         #endregion Override implementation of AccessibleObject
420                 }
421         }
422 }