package body MSHTML.HTMLDocumentEvents4_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 HTMLDocumentEvents4_onmsthumbnailclick=>
            onmsthumbnailclick
              (HTMLDocumentEvents4_Event'Class (Event_Object.all),
               pdispparams.rgvarg (0));
         when HTMLDocumentEvents4_onmssitemodejumplistitemremoved=>
            onmssitemodejumplistitemremoved
              (HTMLDocumentEvents4_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_HTMLDocumentEvents4,
         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_HTMLDocumentEvents4,
         Event_Interface,
         Free);
   end Set_Events;

   procedure onmsthumbnailclick
     (This    : HTMLDocumentEvents4_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmsthumbnailclick;

   procedure onmssitemodejumplistitemremoved
     (This    : HTMLDocumentEvents4_Event;
      pEvtObj : GNATCOM.Types.VARIANT)
   is
   begin
      null;
   end onmssitemodejumplistitemremoved;

end MSHTML.HTMLDocumentEvents4_Events;

