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