with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLEventObj3_Interface is

   procedure Initialize (This : in out IHTMLEventObj3_Type) is
   begin
      Set_IID (This, IID_IHTMLEventObj3);
   end Initialize;

   function Pointer (This : IHTMLEventObj3_Type)
     return Pointer_To_IHTMLEventObj3
   is
   begin
      return To_Pointer_To_IHTMLEventObj3 (Address (This));
   end Pointer;

   procedure Attach (This    : in out IHTMLEventObj3_Type;
                     Pointer : in     Pointer_To_IHTMLEventObj3)
   is
   begin
      Attach (This, GNATCOM.IInterface.To_Pointer_To_IUnknown
              (Pointer.all'Address));
   end Attach;

   function Get_contentOverflow
     (This : IHTMLEventObj3_Type)
     return GNATCOM.Types.VARIANT_BOOL
   is
       RetVal : aliased GNATCOM.Types.VARIANT_BOOL;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_contentOverflow
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_contentOverflow;

   procedure Put_shiftLeft
     (This : IHTMLEventObj3_Type;
      p    : GNATCOM.Types.VARIANT_BOOL)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_shiftLeft
         (Pointer (This),
          p));

   end Put_shiftLeft;

   function Get_shiftLeft
     (This : IHTMLEventObj3_Type)
     return GNATCOM.Types.VARIANT_BOOL
   is
       RetVal : aliased GNATCOM.Types.VARIANT_BOOL;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_shiftLeft
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_shiftLeft;

   procedure Put_altLeft
     (This : IHTMLEventObj3_Type;
      p    : GNATCOM.Types.VARIANT_BOOL)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_altLeft
         (Pointer (This),
          p));

   end Put_altLeft;

   function Get_altLeft
     (This : IHTMLEventObj3_Type)
     return GNATCOM.Types.VARIANT_BOOL
   is
       RetVal : aliased GNATCOM.Types.VARIANT_BOOL;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_altLeft
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_altLeft;

   procedure Put_ctrlLeft
     (This : IHTMLEventObj3_Type;
      p    : GNATCOM.Types.VARIANT_BOOL)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_ctrlLeft
         (Pointer (This),
          p));

   end Put_ctrlLeft;

   function Get_ctrlLeft
     (This : IHTMLEventObj3_Type)
     return GNATCOM.Types.VARIANT_BOOL
   is
       RetVal : aliased GNATCOM.Types.VARIANT_BOOL;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_ctrlLeft
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_ctrlLeft;

   function Get_imeCompositionChange
     (This : IHTMLEventObj3_Type)
     return LONG_PTR
   is
       RetVal : aliased LONG_PTR;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_imeCompositionChange
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_imeCompositionChange;

   function Get_imeNotifyCommand
     (This : IHTMLEventObj3_Type)
     return LONG_PTR
   is
       RetVal : aliased LONG_PTR;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_imeNotifyCommand
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_imeNotifyCommand;

   function Get_imeNotifyData
     (This : IHTMLEventObj3_Type)
     return LONG_PTR
   is
       RetVal : aliased LONG_PTR;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_imeNotifyData
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_imeNotifyData;

   function Get_imeRequest
     (This : IHTMLEventObj3_Type)
     return LONG_PTR
   is
       RetVal : aliased LONG_PTR;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_imeRequest
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_imeRequest;

   function Get_imeRequestData
     (This : IHTMLEventObj3_Type)
     return LONG_PTR
   is
       RetVal : aliased LONG_PTR;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_imeRequestData
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_imeRequestData;

   function Get_keyboardLayout
     (This : IHTMLEventObj3_Type)
     return LONG_PTR
   is
       RetVal : aliased LONG_PTR;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_keyboardLayout
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_keyboardLayout;

   function Get_behaviorCookie
     (This : IHTMLEventObj3_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_behaviorCookie
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_behaviorCookie;

   function Get_behaviorPart
     (This : IHTMLEventObj3_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_behaviorPart
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_behaviorPart;

   function Get_nextPage
     (This : IHTMLEventObj3_Type)
     return GNATCOM.Types.BSTR
   is
       RetVal : aliased GNATCOM.Types.BSTR;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_nextPage
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_nextPage;

end MSHTML.IHTMLEventObj3_Interface;

