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