package body MSHTML.HTMLScriptEvents2_Events is

   procedure Invoke
     (dispidMember : in Interfaces.C.long;
      wFlags       : in Interfaces.C.unsigned_short;
      pdispparams  : in GNATCOM.Types.Pointer_To_DISPPARAMS;
      Event_Object : in GNATCOM.Events.Event_Object.Event_Pointer)
   is
      use type Interfaces.C.long;
   begin
      case dispidMember is
         when HTMLScriptEvents2_onhelp=>
            onhelp
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onclick=>
            onclick
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondblclick=>
            ondblclick
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onkeypress=>
            onkeypress
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onkeydown=>
            onkeydown
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onkeyup=>
            onkeyup
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onmouseout=>
            onmouseout
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onmouseover=>
            onmouseover
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onmousemove=>
            onmousemove
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onmousedown=>
            onmousedown
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onmouseup=>
            onmouseup
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onselectstart=>
            onselectstart
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onfilterchange=>
            onfilterchange
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondragstart=>
            ondragstart
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onbeforeupdate=>
            onbeforeupdate
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onafterupdate=>
            onafterupdate
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onerrorupdate=>
            onerrorupdate
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onrowexit=>
            onrowexit
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onrowenter=>
            onrowenter
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondatasetchanged=>
            ondatasetchanged
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondataavailable=>
            ondataavailable
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondatasetcomplete=>
            ondatasetcomplete
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onlosecapture=>
            onlosecapture
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onpropertychange=>
            onpropertychange
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onscroll=>
            onscroll
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onfocus=>
            onfocus
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onblur=>
            onblur
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onresize=>
            onresize
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondrag=>
            ondrag
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondragend=>
            ondragend
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondragenter=>
            ondragenter
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondragover=>
            ondragover
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondragleave=>
            ondragleave
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondrop=>
            ondrop
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onbeforecut=>
            onbeforecut
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_oncut=>
            oncut
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onbeforecopy=>
            onbeforecopy
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_oncopy=>
            oncopy
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onbeforepaste=>
            onbeforepaste
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onpaste=>
            onpaste
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_oncontextmenu=>
            oncontextmenu
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onrowsdelete=>
            onrowsdelete
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onrowsinserted=>
            onrowsinserted
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_oncellchange=>
            oncellchange
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onreadystatechange=>
            onreadystatechange
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onlayoutcomplete=>
            onlayoutcomplete
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onpage=>
            onpage
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onmouseenter=>
            onmouseenter
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onmouseleave=>
            onmouseleave
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onactivate=>
            onactivate
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_ondeactivate=>
            ondeactivate
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onbeforedeactivate=>
            onbeforedeactivate
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onbeforeactivate=>
            onbeforeactivate
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onfocusin=>
            onfocusin
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onfocusout=>
            onfocusout
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onmove=>
            onmove
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_oncontrolselect=>
            oncontrolselect
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onmovestart=>
            onmovestart
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onmoveend=>
            onmoveend
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onresizestart=>
            onresizestart
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onresizeend=>
            onresizeend
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onmousewheel=>
            onmousewheel
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLScriptEvents2_onerror=>
            onerror
              (HTMLScriptEvents2_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when others =>
            null;
      end case;
   end Invoke;

   function Create (From : in GNATCOM.Events.Event_Object.Event_Pointer)
     return GNATCOM.Create.COM_Interface.Pointer_To_COM_Interface_Type
   is
   begin
      return GNATCOM.Events.Event_Object.Create
        (Invoke'Access,
         IID_HTMLScriptEvents2,
         From);
   end Create;

   procedure Set_Events
     (This            : in out GNATCOM.Events.IConnectionPoint_Type;
      For_Object      : in     GNATCOM.IInterface.Interface_Type'Class;
      Event_Interface :
        access GNATCOM.Create.COM_Interface.COM_Interface_Type;
      Free            : Boolean := True)
   is
   begin
      GNATCOM.Events.Set_Events
        (This,
         For_Object,
         IID_HTMLScriptEvents2,
         Event_Interface,
         Free);
   end Set_Events;

   procedure onhelp
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onhelp;

   procedure onclick
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onclick;

   procedure ondblclick
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondblclick;

   procedure onkeypress
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onkeypress;

   procedure onkeydown
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onkeydown;

   procedure onkeyup
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onkeyup;

   procedure onmouseout
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmouseout;

   procedure onmouseover
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmouseover;

   procedure onmousemove
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmousemove;

   procedure onmousedown
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmousedown;

   procedure onmouseup
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmouseup;

   procedure onselectstart
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onselectstart;

   procedure onfilterchange
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onfilterchange;

   procedure ondragstart
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondragstart;

   procedure onbeforeupdate
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onbeforeupdate;

   procedure onafterupdate
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onafterupdate;

   procedure onerrorupdate
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onerrorupdate;

   procedure onrowexit
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onrowexit;

   procedure onrowenter
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onrowenter;

   procedure ondatasetchanged
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondatasetchanged;

   procedure ondataavailable
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondataavailable;

   procedure ondatasetcomplete
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondatasetcomplete;

   procedure onlosecapture
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onlosecapture;

   procedure onpropertychange
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onpropertychange;

   procedure onscroll
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onscroll;

   procedure onfocus
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onfocus;

   procedure onblur
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onblur;

   procedure onresize
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onresize;

   procedure ondrag
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondrag;

   procedure ondragend
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondragend;

   procedure ondragenter
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondragenter;

   procedure ondragover
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondragover;

   procedure ondragleave
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondragleave;

   procedure ondrop
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondrop;

   procedure onbeforecut
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onbeforecut;

   procedure oncut
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end oncut;

   procedure onbeforecopy
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onbeforecopy;

   procedure oncopy
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end oncopy;

   procedure onbeforepaste
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onbeforepaste;

   procedure onpaste
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onpaste;

   procedure oncontextmenu
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end oncontextmenu;

   procedure onrowsdelete
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onrowsdelete;

   procedure onrowsinserted
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onrowsinserted;

   procedure oncellchange
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end oncellchange;

   procedure onreadystatechange
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onreadystatechange;

   procedure onlayoutcomplete
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onlayoutcomplete;

   procedure onpage
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onpage;

   procedure onmouseenter
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmouseenter;

   procedure onmouseleave
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmouseleave;

   procedure onactivate
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onactivate;

   procedure ondeactivate
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end ondeactivate;

   procedure onbeforedeactivate
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onbeforedeactivate;

   procedure onbeforeactivate
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onbeforeactivate;

   procedure onfocusin
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onfocusin;

   procedure onfocusout
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onfocusout;

   procedure onmove
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmove;

   procedure oncontrolselect
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end oncontrolselect;

   procedure onmovestart
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmovestart;

   procedure onmoveend
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmoveend;

   procedure onresizestart
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onresizestart;

   procedure onresizeend
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onresizeend;

   procedure onmousewheel
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmousewheel;

   procedure onerror
     (This    : HTMLScriptEvents2_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onerror;

end MSHTML.HTMLScriptEvents2_Events;

