with GNATCOM.Events.Event_Object;
with GNATCOM.Create.COM_Interface;
with GNATCOM.IInterface;

package MSHTML.HTMLWindowEvents_Events is

   type HTMLWindowEvents_Event is
     new GNATCOM.Events.Event_Object.Event_Type with null record;

   function Create (From : in GNATCOM.Events.Event_Object.Event_Pointer)
     return GNATCOM.Create.COM_Interface.Pointer_To_COM_Interface_Type;

   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);

   procedure onload
     (This : HTMLWindowEvents_Event);

   procedure onunload
     (This : HTMLWindowEvents_Event);

   procedure onhelp
     (This : HTMLWindowEvents_Event);

   procedure onfocus
     (This : HTMLWindowEvents_Event);

   procedure onblur
     (This : HTMLWindowEvents_Event);

   procedure onerror
     (This        : HTMLWindowEvents_Event;
      description : GNATCOM.Types.VARIANT;
      url         : GNATCOM.Types.VARIANT;
      line        : GNATCOM.Types.VARIANT);

   procedure onresize
     (This : HTMLWindowEvents_Event);

   procedure onscroll
     (This : HTMLWindowEvents_Event);

   procedure onbeforeunload
     (This : HTMLWindowEvents_Event);

   procedure onbeforeprint
     (This : HTMLWindowEvents_Event);

   procedure onafterprint
     (This : HTMLWindowEvents_Event);

end MSHTML.HTMLWindowEvents_Events;

