with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLProgressElement_Interface is

   procedure Initialize (This : in out IHTMLProgressElement_Type) is
   begin
      Set_IID (This, IID_IHTMLProgressElement);
   end Initialize;

   function Pointer (This : IHTMLProgressElement_Type)
     return Pointer_To_IHTMLProgressElement
   is
   begin
      return To_Pointer_To_IHTMLProgressElement (Address (This));
   end Pointer;

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

   procedure Put_value
     (This : IHTMLProgressElement_Type;
      p    : Interfaces.C.C_float)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_value
         (Pointer (This),
          p));

   end Put_value;

   function Get_value
     (This : IHTMLProgressElement_Type)
     return Interfaces.C.C_float
   is
       RetVal : aliased Interfaces.C.C_float;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_value
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_value;

   procedure Put_max
     (This : IHTMLProgressElement_Type;
      p    : Interfaces.C.C_float)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_max
         (Pointer (This),
          p));

   end Put_max;

   function Get_max
     (This : IHTMLProgressElement_Type)
     return Interfaces.C.C_float
   is
       RetVal : aliased Interfaces.C.C_float;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_max
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_max;

   function Get_position
     (This : IHTMLProgressElement_Type)
     return Interfaces.C.C_float
   is
       RetVal : aliased Interfaces.C.C_float;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_position
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_position;

   function Get_form
     (This : IHTMLProgressElement_Type)
     return Pointer_To_IHTMLFormElement
   is
       RetVal : aliased Pointer_To_IHTMLFormElement;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_form
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_form;

end MSHTML.IHTMLProgressElement_Interface;

