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