* Application.cs: fix compilation errors when debug is enabled.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / AxHost.cs
1 // Permission is hereby granted, free of charge, to any person obtaining
2 // a copy of this software and associated documentation files (the
3 // "Software"), to deal in the Software without restriction, including
4 // without limitation the rights to use, copy, modify, merge, publish,
5 // distribute, sublicense, and/or sell copies of the Software, and to
6 // permit persons to whom the Software is furnished to do so, subject to
7 // the following conditions:
8 // 
9 // The above copyright notice and this permission notice shall be
10 // included in all copies or substantial portions of the Software.
11 // 
12 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
13 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
16 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
17 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
18 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 //
20 // Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
21 //
22 // Authors:
23 //      Peter Bartok    <pbartok@novell.com>
24 //
25 //
26
27 using System;
28 using System.ComponentModel;
29 using System.Drawing;
30 using System.IO;
31 using System.Runtime.InteropServices;
32 using System.Runtime.Serialization;
33
34 namespace System.Windows.Forms {
35         [MonoTODO("Possibly implement this for Win32; find a way for Linux and Mac")]
36         [DefaultEvent("Enter")]
37         [Designer("System.Windows.Forms.Design.AxHostDesigner, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
38         [DesignTimeVisible(false)]
39         [ToolboxItem(false)]
40 #if NET_2_0
41         [ClassInterface (ClassInterfaceType.AutoDispatch)]
42         [ComVisible (true)]
43 #endif
44         public abstract class AxHost : Control, ISupportInitialize, ICustomTypeDescriptor {
45                 #region AxHost Subclasses
46                 #region AxHost.ActiveXInvokeKind Enum
47                 public enum ActiveXInvokeKind {
48                         MethodInvoke    = 0,
49                         PropertyGet     = 1,
50                         PropertySet     = 2
51                 }
52                 #endregion      // AxHost.ActiveXInvokeKind Enum
53
54                 #region AxHost.AxComponentEditor Class
55 #if NET_2_0
56                 [ComVisible (false)]
57 #endif
58                 public class AxComponentEditor : System.Windows.Forms.Design.WindowsFormsComponentEditor {
59                         public AxComponentEditor ()
60                         {
61                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
62                         }
63
64                         public override bool EditComponent (ITypeDescriptorContext context, object obj, IWin32Window parent)
65                         {
66                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
67                         }
68                 }
69                 #endregion      // AxHost.AxComponentEditor Class
70
71                 #region AxHost.ClsidAttribute
72                 [AttributeUsage(AttributeTargets.Class,Inherited=false)]
73                 public sealed class ClsidAttribute : Attribute {
74                         string clsid;
75
76                         public ClsidAttribute (string clsid)
77                         {
78                                 this.clsid = clsid;
79                         }
80
81                         public string Value {
82                                 get { return clsid; }
83                         }
84                 }
85                 #endregion AxHost.ClsidAttribute
86                 
87                 #region AxHost.ConnectionPointCookie
88 #if !NET_2_0
89                 [ComVisible(false)]
90 #endif
91                 public class ConnectionPointCookie {
92                         public ConnectionPointCookie (object source, object sink, Type eventInterface)
93                         {
94                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
95                         }
96
97                         public void Disconnect ()
98                         {
99                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
100                         }
101
102                         ~ConnectionPointCookie ()
103                         {
104                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
105                         }
106                 }
107                 #endregion      // AxHost.ConnectionPointCookie
108                 
109                 #region AxHost.InvalidActiveXStateException  Class
110                 public class InvalidActiveXStateException : Exception {
111 #if NET_2_0
112                         public InvalidActiveXStateException ()
113                         {
114                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
115                         }
116 #endif
117
118                         public InvalidActiveXStateException (string name, ActiveXInvokeKind kind)
119                         {
120                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
121                         }
122
123                         public override string ToString ()
124                         {
125                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
126                         }
127                 }
128                 #endregion      // AxHost.InvalidActiveXStateException  Class
129                         
130                 #region AxHost.State Class
131                 [Serializable]
132                 [TypeConverter("System.ComponentModel.TypeConverter, " + Consts.AssemblySystem)]
133                 public class State : ISerializable {
134                         public State (Stream ms, int storageType, bool manualUpdate, string licKey)
135                         {
136                                 //throw new NotImplementedException("COM/ActiveX support is not implemented");
137                         }
138
139 #if NET_2_0
140                         protected
141 #else
142                         private
143 #endif
144                         State (SerializationInfo info, StreamingContext context)
145                         {
146                         }
147
148                         void ISerializable.GetObjectData (SerializationInfo si,StreamingContext context)
149                         {
150                                 //throw new NotImplementedException("COM/ActiveX support is not implemented");
151                         }
152                 }
153                 #endregion      // AxHost.State Class
154
155                 #region AxHost.TypeLibraryTimeStampAttribute Class
156                 [AttributeUsage(AttributeTargets.Assembly, Inherited=false)]
157                 public sealed class TypeLibraryTimeStampAttribute : Attribute {
158                         public TypeLibraryTimeStampAttribute (string timestamp)
159                         {
160                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
161                         }
162
163                         public DateTime Value {
164                                 get {
165                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
166                                 }
167                         }
168                 }
169                 #endregion      // AxHost.TypeLibraryTimeStampAttribute Class
170
171                 #region AxHost.StateConverter Class
172                 public class StateConverter : System.ComponentModel.TypeConverter {
173                         public StateConverter ()
174                         {
175                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
176                         }
177
178                         public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
179                         {
180                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
181                         }
182
183                         public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
184                         {
185                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
186                         }
187
188                         public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
189                         {
190                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
191                         }
192
193                         public override object ConvertTo (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
194                         {
195                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
196                         }
197                 }
198                 #endregion      // AxHost.StateConverter Class
199                 #endregion      // AxHost Subclasses
200
201                 #region Protected Constructors
202                 protected AxHost (string clsid)
203                 {
204                         throw new NotImplementedException("COM/ActiveX support is not implemented");
205                 }
206
207                 protected AxHost (string clsid, int flags)
208                 {
209                         throw new NotImplementedException("COM/ActiveX support is not implemented");
210                 }
211                 #endregion      // Public Instance Properties
212
213                 #region Public Instance Properties
214                 [Browsable (false)]
215                 [EditorBrowsable (EditorBrowsableState.Never)]
216                 public override Color BackColor {
217                         get {
218                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
219                         }
220                         set {
221                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
222                         }
223                 }
224                 
225                 [Browsable (false)]
226                 [EditorBrowsable (EditorBrowsableState.Never)]
227 #if NET_2_0
228                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
229 #endif
230                 public override Image BackgroundImage {
231                         get {
232                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
233                         }
234
235                         set {
236                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
237                         }
238                 }
239
240 #if NET_2_0
241                 [Browsable (false)]
242                 [EditorBrowsable (EditorBrowsableState.Never)]
243                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
244                 public override ImageLayout BackgroundImageLayout {
245                         get {
246                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
247                         }
248
249                         set {
250                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
251                         }
252                 }
253 #endif
254                 
255                 [Browsable (false)]
256                 [EditorBrowsable (EditorBrowsableState.Advanced)]
257 #if NET_2_0
258                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
259 #endif
260                 public ContainerControl ContainingControl {
261                         get {
262                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
263                         }
264
265                         set {
266                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
267                         }
268                 }
269                 
270                 [Browsable (false)]
271                 [EditorBrowsable (EditorBrowsableState.Never)]
272                 public override ContextMenu ContextMenu {
273                         get {
274                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
275                         }
276
277                         set {
278                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
279                         }
280                 }
281                 
282                 [Browsable (false)]
283                 [EditorBrowsable (EditorBrowsableState.Never)]
284                 public override Cursor Cursor {
285                         get {
286                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
287                         }
288
289                         set {
290                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
291                         }
292                 }
293                 
294                 [Browsable (false)]
295                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
296                 [EditorBrowsable (EditorBrowsableState.Advanced)]
297                 public bool EditMode {
298                         get {
299                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
300                         }
301                 }
302
303                 [Browsable (false)]
304                 [EditorBrowsable (EditorBrowsableState.Never)]
305                 public new virtual bool Enabled {
306                         get {
307                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
308                         }
309
310                         set {
311                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
312                         }
313                 }
314                 
315                 [Browsable (false)]
316                 [EditorBrowsable (EditorBrowsableState.Never)]
317                 public override Font Font {
318                         get {
319                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
320                         }
321
322                         set {
323                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
324                         }
325                 }
326                 
327                 [Browsable (false)]
328                 [EditorBrowsable (EditorBrowsableState.Never)]
329                 public override Color ForeColor {
330                         get { 
331                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
332                         }
333
334                         set {
335                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
336                         }
337                 }
338                 
339                 [Browsable (false)]
340                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
341                 [EditorBrowsable (EditorBrowsableState.Advanced)]
342                 public bool HasAboutBox {
343                         get { 
344                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
345                         }
346                 }
347
348 #if NET_2_0
349                 [Browsable (false)]
350                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
351                 [EditorBrowsable (EditorBrowsableState.Never)]
352                 public new ImeMode ImeMode {
353                         get { 
354                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
355                         }
356                         set { 
357                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
358                         }
359                 }
360 #endif
361                 
362                 [Browsable (false)]
363                 [DefaultValue (null)]
364                 [EditorBrowsable (EditorBrowsableState.Advanced)]
365                 [RefreshProperties (RefreshProperties.All)]
366                 public AxHost.State OcxState {
367                         get {
368                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
369                         }
370
371                         set {
372                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
373                         }
374                 }
375                 
376                 [Browsable (false)]
377                 [EditorBrowsable (EditorBrowsableState.Never)]
378                 [Localizable (true)]
379                 public new virtual bool RightToLeft {
380                         get {
381                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
382                         }
383
384                         set {
385                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
386                         }
387                 }
388                 
389                 public override ISite Site {
390                         set {
391                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
392                         }
393                 }
394
395                 [Browsable (false)]
396                 [EditorBrowsable (EditorBrowsableState.Never)]
397                 public override string Text {
398                         get { return base.Text; }
399                         set { base.Text = value; }
400                 }
401                 #endregion      // Protected Constructors
402                 
403                 #region Protected Instance Properties
404                 protected override CreateParams CreateParams {
405                         get {
406                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
407                         }
408                 }
409                 
410                 protected override Size DefaultSize {
411                         get {
412                                 return new Size (75, 23);
413                         }
414                 }
415                 #endregion      // Protected Instance Properties
416
417                 #region Protected Static Methods
418                 [CLSCompliant(false)]
419                 [EditorBrowsable (EditorBrowsableState.Advanced)]
420                 protected static Color GetColorFromOleColor (uint color)
421                 {
422                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
423                 }
424
425                 [EditorBrowsable (EditorBrowsableState.Advanced)]
426                 protected static Font GetFontFromIFont (object font)
427                 {
428                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
429                 }
430
431                 [EditorBrowsable (EditorBrowsableState.Advanced)]
432                 protected static Font GetFontFromIFontDisp (object font)
433                 {
434                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
435                 }
436
437                 [EditorBrowsable (EditorBrowsableState.Advanced)]
438                 protected static object GetIFontDispFromFont (Font font)
439                 {
440                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
441                 }
442
443                 [EditorBrowsable (EditorBrowsableState.Advanced)]
444                 protected static object GetIFontFromFont (Font font)
445                 {
446                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
447                 }
448
449                 [EditorBrowsable (EditorBrowsableState.Advanced)]
450                 protected static object GetIPictureDispFromPicture (Image image)
451                 {
452                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
453                 }
454
455                 [EditorBrowsable (EditorBrowsableState.Advanced)]
456                 protected static object GetIPictureFromCursor (Cursor cursor)
457                 {
458                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
459                 }
460
461                 [EditorBrowsable (EditorBrowsableState.Advanced)]
462                 protected static object GetIPictureFromPicture (Image image)
463                 {
464                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
465                 }
466
467                 [EditorBrowsable (EditorBrowsableState.Advanced)]
468                 protected static double GetOADateFromTime (DateTime time)
469                 {
470                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
471                 }
472
473                 [CLSCompliant(false)]
474                 [EditorBrowsable (EditorBrowsableState.Advanced)]
475                 protected static uint GetOleColorFromColor (Color color)
476                 {
477                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
478                 }
479
480                 [EditorBrowsable (EditorBrowsableState.Advanced)]
481                 protected static Image GetPictureFromIPicture (object picture)
482                 {
483                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
484                 }
485
486                 [EditorBrowsable (EditorBrowsableState.Advanced)]
487                 protected static Image GetPictureFromIPictureDisp (object picture)
488                 {
489                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
490                 }
491
492                 [EditorBrowsable (EditorBrowsableState.Advanced)]
493                 protected static DateTime GetTimeFromOADate (double date)
494                 {
495                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
496                 }
497                 #endregion      // Protected Static Methods
498
499                 #region Public Instance Methods
500                 [EditorBrowsable (EditorBrowsableState.Advanced)]
501                 public void BeginInit ()
502                 {
503                         throw new NotImplementedException("COM/ActiveX support is not implemented");
504                 }
505                 
506                 public void DoVerb (int verb)
507                 {
508                         throw new NotImplementedException("COM/ActiveX support is not implemented");
509                 }
510
511                 [EditorBrowsable (EditorBrowsableState.Advanced)]
512                 public void EndInit ()
513                 {
514                         throw new NotImplementedException("COM/ActiveX support is not implemented");
515                 }
516
517                 [EditorBrowsable (EditorBrowsableState.Advanced)]
518                 public object GetOcx ()
519                 {
520                         throw new NotImplementedException("COM/ActiveX support is not implemented");
521                 }
522                 
523                 public bool HasPropertyPages ()
524                 {
525                         throw new NotImplementedException("COM/ActiveX support is not implemented");
526                 }
527                 
528                 [EditorBrowsable (EditorBrowsableState.Advanced)]
529                 public void InvokeEditMode ()
530                 {
531                         throw new NotImplementedException("COM/ActiveX support is not implemented");
532                 }
533
534                 [EditorBrowsable (EditorBrowsableState.Advanced)]
535                 public void MakeDirty ()
536                 {
537                         throw new NotImplementedException("COM/ActiveX support is not implemented");
538                 }
539
540                 public override bool PreProcessMessage (ref Message msg)
541                 {
542                         throw new NotImplementedException("COM/ActiveX support is not implemented");
543                 }
544
545                 public void ShowAboutBox ()
546                 {
547                         throw new NotImplementedException("COM/ActiveX support is not implemented");
548                 }
549                 
550                 public void ShowPropertyPages ()
551                 {
552                         throw new NotImplementedException("COM/ActiveX support is not implemented");
553                 }
554                 
555                 public void ShowPropertyPages (Control control)
556                 {
557                         throw new NotImplementedException("COM/ActiveX support is not implemented");
558                 }
559                 #endregion      // Public Instance Methods
560
561                 #region Protected Instance Methods
562                 protected virtual void AttachInterfaces ()
563                 {
564                         throw new NotImplementedException("COM/ActiveX support is not implemented");
565                 }
566                 
567                 protected override void CreateHandle ()
568                 {
569                         throw new NotImplementedException("COM/ActiveX support is not implemented");
570                 }
571
572 #if NET_2_0
573                 protected virtual object CreateInstanceCore (Guid clsid)
574                 {
575                         throw new NotImplementedException("COM/ActiveX support is not implemented");
576                 }
577 #endif
578
579                 [EditorBrowsable (EditorBrowsableState.Advanced)]
580                 protected virtual void CreateSink ()
581                 {
582                         throw new NotImplementedException("COM/ActiveX support is not implemented");
583                 }
584                 
585                 protected override void DestroyHandle ()
586                 {
587                         throw new NotImplementedException("COM/ActiveX support is not implemented");
588                 }
589
590                 [EditorBrowsable (EditorBrowsableState.Advanced)]
591                 protected virtual void DetachSink ()
592                 {
593                         throw new NotImplementedException("COM/ActiveX support is not implemented");
594                 }
595
596                 protected override void Dispose (bool disposing)
597                 {
598                         throw new NotImplementedException("COM/ActiveX support is not implemented");
599                 }
600
601 #if NET_2_0
602                 [EditorBrowsable (EditorBrowsableState.Never)]
603                 public void DrawToBitmap (Bitmap bitmap, Rectangle targetBounds)
604                 {
605                         throw new NotImplementedException("COM/ActiveX support is not implemented");
606                 }
607
608                 [EditorBrowsable (EditorBrowsableState.Advanced)]
609                 protected virtual Rectangle GetScaledBounds (Rectangle bounds, SizeF factor, BoundsSpecified specified)
610                 {
611                         throw new NotImplementedException("COM/ActiveX support is not implemented");
612                 }
613 #endif
614
615                 protected override bool IsInputChar (char charCode)
616                 {
617                         throw new NotImplementedException("COM/ActiveX support is not implemented");
618                 }
619                 
620                 protected override void OnBackColorChanged (EventArgs e)
621                 {
622                         throw new NotImplementedException("COM/ActiveX support is not implemented");
623                 }
624                 
625                 protected override void OnFontChanged (EventArgs e)
626                 {
627                         throw new NotImplementedException("COM/ActiveX support is not implemented");
628                 }
629                 
630                 protected override void OnForeColorChanged (EventArgs e)
631                 {
632                         throw new NotImplementedException("COM/ActiveX support is not implemented");
633                 }
634                 
635                 protected override void OnHandleCreated (EventArgs e)
636                 {
637                         throw new NotImplementedException("COM/ActiveX support is not implemented");
638                 }
639
640                 protected virtual void OnInPlaceActive ()
641                 {
642                         throw new NotImplementedException("COM/ActiveX support is not implemented");
643                 }
644                 
645                 [EditorBrowsable (EditorBrowsableState.Advanced)]
646                 protected override void OnLostFocus (EventArgs e)
647                 {
648                         throw new NotImplementedException("COM/ActiveX support is not implemented");
649                 }
650                 
651                 protected override bool ProcessDialogKey (Keys keyData)
652                 {
653                         throw new NotImplementedException("COM/ActiveX support is not implemented");
654                 }
655
656                 protected override bool ProcessMnemonic (char charCode)
657                 {
658                         throw new NotImplementedException("COM/ActiveX support is not implemented");
659                 }
660
661                 [EditorBrowsable (EditorBrowsableState.Advanced)]
662                 protected bool PropsValid ()
663                 {
664                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
665                 }
666
667                 [EditorBrowsable (EditorBrowsableState.Advanced)]
668                 protected void RaiseOnMouseDown (short button, short shift, int x, int y)
669                 {
670                         throw new NotImplementedException("COM/ActiveX support is not implemented");
671                 }
672
673                 [EditorBrowsable (EditorBrowsableState.Advanced)]
674                 protected void RaiseOnMouseDown (short button, short shift, float x, float y)
675                 {
676                         throw new NotImplementedException("COM/ActiveX support is not implemented");
677                 }
678
679                 [EditorBrowsable (EditorBrowsableState.Advanced)]
680                 protected void RaiseOnMouseDown (object o1, object o2, object o3, object o4)
681                 {
682                         throw new NotImplementedException("COM/ActiveX support is not implemented");
683                 }
684
685                 [EditorBrowsable (EditorBrowsableState.Advanced)]
686                 protected void RaiseOnMouseMove (short button, short shift, int x, int y)
687                 {
688                         throw new NotImplementedException("COM/ActiveX support is not implemented");
689                 }
690
691                 [EditorBrowsable (EditorBrowsableState.Advanced)]
692                 protected void RaiseOnMouseMove (short button, short shift, float x, float y)
693                 {
694                         throw new NotImplementedException("COM/ActiveX support is not implemented");
695                 }
696
697                 [EditorBrowsable (EditorBrowsableState.Advanced)]
698                 protected void RaiseOnMouseMove (object o1, object o2, object o3, object o4)
699                 {
700                         throw new NotImplementedException("COM/ActiveX support is not implemented");
701                 }
702
703                 [EditorBrowsable (EditorBrowsableState.Advanced)]
704                 protected void RaiseOnMouseUp (short button, short shift, int x, int y)
705                 {
706                         throw new NotImplementedException("COM/ActiveX support is not implemented");
707                 }
708
709                 [EditorBrowsable (EditorBrowsableState.Advanced)]
710                 protected void RaiseOnMouseUp (short button, short shift, float x, float y)
711                 {
712                         throw new NotImplementedException("COM/ActiveX support is not implemented");
713                 }
714
715                 [EditorBrowsable (EditorBrowsableState.Advanced)]
716                 protected void RaiseOnMouseUp (object o1, object o2, object o3, object o4)
717                 {
718                         throw new NotImplementedException("COM/ActiveX support is not implemented");
719                 }
720
721                 protected void SetAboutBoxDelegate (AxHost.AboutBoxDelegate d)
722                 {
723                         throw new NotImplementedException("COM/ActiveX support is not implemented");
724                 }
725                 
726                 protected override void SetBoundsCore (int x, int y, int width, int height, BoundsSpecified specified)
727                 {
728                         throw new NotImplementedException("COM/ActiveX support is not implemented");
729                 }
730                 
731                 protected override void SetVisibleCore (bool value)
732                 {
733                         throw new NotImplementedException("COM/ActiveX support is not implemented");
734                 }
735                 
736                 protected override void WndProc (ref Message m)
737                 {
738                         throw new NotImplementedException("COM/ActiveX support is not implemented");
739                 }
740                 #endregion      // Protected Instance Methods
741
742                 #region Events
743                 [Browsable (false)]
744                 [EditorBrowsable (EditorBrowsableState.Never)]
745                 public new event EventHandler BackColorChanged {
746                         add { base.BackColorChanged += value; }
747                         remove { base.BackColorChanged -= value; }
748                 }
749
750                 [Browsable (false)]
751                 [EditorBrowsable (EditorBrowsableState.Never)]
752                 public new event EventHandler BackgroundImageChanged {
753                         add { base.BackgroundImageChanged += value; }
754                         remove { base.BackgroundImageChanged -= value; }
755                 }
756
757                 [Browsable (false)]
758                 [EditorBrowsable (EditorBrowsableState.Never)]
759                 public new event EventHandler BindingContextChanged {
760                         add { base.BindingContextChanged += value; }
761                         remove { base.BindingContextChanged -= value; }
762                 }
763
764                 [Browsable (false)]
765                 [EditorBrowsable (EditorBrowsableState.Never)]
766                 public new event UICuesEventHandler ChangeUICues {
767                         add { base.ChangeUICues += value; }
768                         remove { base.ChangeUICues -= value; }
769                 }
770
771                 [Browsable (false)]
772                 [EditorBrowsable (EditorBrowsableState.Never)]
773                 public new event EventHandler Click {
774                         add { base.Click += value; }
775                         remove { base.Click -= value; }
776                 }
777
778                 [Browsable (false)]
779                 [EditorBrowsable (EditorBrowsableState.Never)]
780                 public new event EventHandler ContextMenuChanged {
781                         add { base.ContextMenuChanged += value; }
782                         remove { base.ContextMenuChanged -= value; }
783                 }
784         
785                 [Browsable (false)]
786                 [EditorBrowsable (EditorBrowsableState.Never)]
787                 public new event EventHandler CursorChanged {
788                         add { base.CursorChanged += value; }
789                         remove { base.CursorChanged -= value; }
790                 }
791
792                 [Browsable (false)]
793                 [EditorBrowsable (EditorBrowsableState.Never)]
794                 public new event EventHandler DoubleClick {
795                         add { base.DoubleClick += value; }
796                         remove { base.DoubleClick -= value; }
797                 }
798
799                 [Browsable (false)]
800                 [EditorBrowsable (EditorBrowsableState.Never)]
801                 public new event DragEventHandler DragDrop {
802                         add { base.DragDrop += value; }
803                         remove { base.DragDrop -= value; }
804                 }
805
806                 [Browsable (false)]
807                 [EditorBrowsable (EditorBrowsableState.Never)]
808                 public new event DragEventHandler DragEnter {
809                         add { base.DragEnter += value; }
810                         remove { base.DragEnter -= value; }
811                 }
812
813                 [Browsable (false)]
814                 [EditorBrowsable (EditorBrowsableState.Never)]
815                 public new event EventHandler DragLeave {
816                         add { base.DragLeave += value; }
817                         remove { base.DragLeave -= value; }
818                 }
819
820                 [Browsable (false)]
821                 [EditorBrowsable (EditorBrowsableState.Never)]
822                 public new event DragEventHandler DragOver {
823                         add { base.DragOver += value; }
824                         remove { base.DragOver -= value; }
825                 }
826
827                 [Browsable (false)]
828                 [EditorBrowsable (EditorBrowsableState.Never)]
829                 public new event EventHandler EnabledChanged {
830                         add { base.EnabledChanged += value; }
831                         remove { base.EnabledChanged -= value; }
832                 }
833
834                 [Browsable (false)]
835                 [EditorBrowsable (EditorBrowsableState.Never)]
836                 public new event EventHandler FontChanged {
837                         add { base.FontChanged += value; }
838                         remove { base.FontChanged -= value; }
839                 }
840
841                 [Browsable (false)]
842                 [EditorBrowsable (EditorBrowsableState.Never)]
843                 public new event EventHandler ForeColorChanged {
844                         add { base.ForeColorChanged += value; }
845                         remove { base.ForeColorChanged -= value; }
846                 }
847
848                 [Browsable (false)]
849                 [EditorBrowsable (EditorBrowsableState.Never)]
850                 public new event GiveFeedbackEventHandler GiveFeedback {
851                         add { base.GiveFeedback += value; }
852                         remove { base.GiveFeedback -= value; }
853                 }
854
855                 [Browsable (false)]
856                 [EditorBrowsable (EditorBrowsableState.Never)]
857                 public new event HelpEventHandler HelpRequested {
858                         add { base.HelpRequested += value; }
859                         remove { base.HelpRequested -= value; }
860                 }
861
862                 [Browsable (false)]
863                 [EditorBrowsable (EditorBrowsableState.Never)]
864                 public new event EventHandler ImeModeChanged {
865                         add { base.ImeModeChanged += value; }
866                         remove { base.ImeModeChanged -= value; }
867                 }
868
869                 [Browsable (false)]
870                 [EditorBrowsable (EditorBrowsableState.Never)]
871                 public new event KeyEventHandler KeyDown {
872                         add { base.KeyDown += value; }
873                         remove { base.KeyDown -= value; }
874                 }
875
876                 [Browsable (false)]
877                 [EditorBrowsable (EditorBrowsableState.Never)]
878                 public new event KeyPressEventHandler KeyPress {
879                         add { base.KeyPress += value; }
880                         remove { base.KeyPress -= value; }
881                 }
882
883                 [Browsable (false)]
884                 [EditorBrowsable (EditorBrowsableState.Never)]
885                 public new event KeyEventHandler KeyUp {
886                         add { base.KeyUp += value; }
887                         remove { base.KeyUp -= value; }
888                 }
889
890                 [Browsable (false)]
891                 [EditorBrowsable (EditorBrowsableState.Never)]
892                 public new event LayoutEventHandler Layout {
893                         add { base.Layout += value; }
894                         remove { base.Layout -= value; }
895                 }
896
897                 [Browsable (false)]
898                 [EditorBrowsable (EditorBrowsableState.Never)]
899                 public new event MouseEventHandler MouseDown {
900                         add { base.MouseDown += value; }
901                         remove { base.MouseDown -= value; }
902                 }
903
904                 [Browsable (false)]
905                 [EditorBrowsable (EditorBrowsableState.Never)]
906                 public new event EventHandler MouseEnter {
907                         add { base.MouseEnter += value; }
908                         remove { base.MouseEnter -= value; }
909                 }
910
911                 [Browsable (false)]
912                 [EditorBrowsable (EditorBrowsableState.Never)]
913                 public new event EventHandler MouseHover {
914                         add { base.MouseHover += value; }
915                         remove { base.MouseHover -= value; }
916                 }
917
918                 [Browsable (false)]
919                 [EditorBrowsable (EditorBrowsableState.Never)]
920                 public new event EventHandler MouseLeave {
921                         add { base.MouseLeave += value; }
922                         remove { base.MouseLeave -= value; }
923                 }
924
925                 [Browsable (false)]
926                 [EditorBrowsable (EditorBrowsableState.Never)]
927                 public new event MouseEventHandler MouseMove {
928                         add { base.MouseMove += value; }
929                         remove { base.MouseMove -= value; }
930                 }
931
932                 [Browsable (false)]
933                 [EditorBrowsable (EditorBrowsableState.Never)]
934                 public new event MouseEventHandler MouseUp {
935                         add { base.MouseUp += value; }
936                         remove { base.MouseUp -= value; }
937                 }
938
939                 [Browsable (false)]
940                 [EditorBrowsable (EditorBrowsableState.Never)]
941                 public new event MouseEventHandler MouseWheel {
942                         add { base.MouseWheel += value; }
943                         remove { base.MouseWheel -= value; }
944                 }
945
946                 [Browsable (false)]
947                 [EditorBrowsable (EditorBrowsableState.Never)]
948                 public new event PaintEventHandler Paint {
949                         add { base.Paint += value; }
950                         remove { base.Paint -= value; }
951                 }
952
953                 [Browsable (false)]
954                 [EditorBrowsable (EditorBrowsableState.Never)]
955                 public new event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp {
956                         add { base.QueryAccessibilityHelp += value; }
957                         remove { base.QueryAccessibilityHelp -= value; }
958                 }
959
960                 [Browsable (false)]
961                 [EditorBrowsable (EditorBrowsableState.Never)]
962                 public new event QueryContinueDragEventHandler QueryContinueDrag {
963                         add { base.QueryContinueDrag += value; }
964                         remove { base.QueryContinueDrag -= value; }
965                 }
966
967                 [Browsable (false)]
968                 [EditorBrowsable (EditorBrowsableState.Never)]
969                 public new event EventHandler RightToLeftChanged {
970                         add { base.RightToLeftChanged += value; }
971                         remove { base.RightToLeftChanged -= value; }
972                 }
973
974                 [Browsable (false)]
975                 [EditorBrowsable (EditorBrowsableState.Never)]
976                 public new event EventHandler StyleChanged {
977                         add { base.StyleChanged += value; }
978                         remove { base.StyleChanged -= value; }
979                 }
980
981 #if NET_2_0
982                 [Browsable (false)]
983                 [EditorBrowsable (EditorBrowsableState.Never)]
984                 public new event EventHandler BackgroundImageLayoutChanged {
985                         add { base.BackgroundImageLayoutChanged += value; }
986                         remove { base.BackgroundImageLayoutChanged -= value; }
987                 }
988
989                 static object MouseClickEvent = new object ();
990                 static object MouseDoubleClickEvent = new object ();
991
992                 [Browsable (false)]
993                 [EditorBrowsable (EditorBrowsableState.Never)]
994                 public new event EventHandler MouseClick {
995                         add { Events.AddHandler (MouseClickEvent, value); }
996                         remove { Events.RemoveHandler (MouseClickEvent, value); }
997                 }
998
999                 [Browsable (false)]
1000                 [EditorBrowsable (EditorBrowsableState.Never)]
1001                 public new event EventHandler MouseDoubleClick {
1002                         add { Events.AddHandler (MouseDoubleClickEvent, value); }
1003                         remove { Events.RemoveHandler (MouseDoubleClickEvent, value); }
1004                 }
1005 #else
1006                 [Browsable (false)]
1007                 [EditorBrowsable (EditorBrowsableState.Never)]
1008                 public new event EventHandler TabIndexChanged {
1009                         add { base.TabIndexChanged += value; }
1010                         remove { base.TabIndexChanged -= value; }
1011                 }
1012
1013                 [Browsable (false)]
1014                 [EditorBrowsable (EditorBrowsableState.Never)]
1015                 public new event EventHandler TabStopChanged {
1016                         add { base.TabStopChanged += value; }
1017                         remove { base.TabStopChanged -= value; }
1018                 }
1019 #endif
1020
1021                 [Browsable (false)]
1022                 [EditorBrowsable (EditorBrowsableState.Never)]
1023                 public new event EventHandler TextChanged {
1024                         add { base.TextChanged += value; }
1025                         remove { base.TextChanged -= value; }
1026                 }
1027                 #endregion      // Events
1028
1029                 #region Delegates
1030                 [Serializable]
1031                 protected delegate void AboutBoxDelegate ();
1032                 #endregion      // Delegates
1033
1034                 #region Interfaces
1035                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1036                 AttributeCollection ICustomTypeDescriptor.GetAttributes ()
1037                 {
1038                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1039                 }
1040                 
1041                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1042                 string ICustomTypeDescriptor.GetClassName ()
1043                 {
1044                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1045                 }
1046                 
1047                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1048                 string ICustomTypeDescriptor.GetComponentName ()
1049                 {
1050                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1051                 }
1052                 
1053                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1054                 TypeConverter ICustomTypeDescriptor.GetConverter ()
1055                 {
1056                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1057                 }
1058                 
1059                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1060                 EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ()
1061                 {
1062                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1063                 }
1064                 
1065                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1066                 PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ()
1067                 {
1068                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1069                 }
1070                 
1071                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1072                 object ICustomTypeDescriptor.GetEditor (Type editorBaseType)
1073                 {
1074                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1075                 }
1076                 
1077                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1078                 EventDescriptorCollection ICustomTypeDescriptor.GetEvents ()
1079                 {
1080                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1081                 }
1082                 
1083                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1084                 EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes)
1085                 {
1086                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1087                 }
1088                 
1089                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1090                 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ()
1091                 {
1092                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1093                 }
1094                 
1095                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1096                 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute[] attributes)
1097                 {
1098                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1099                 }
1100                 
1101                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1102                 object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd)
1103                 {
1104                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1105                 }
1106                 #endregion      // Interfaces
1107         }
1108 }