with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLFieldSetElement2_Interface is

   procedure Initialize (This : in out IHTMLFieldSetElement2_Type) is
   begin
      Set_IID (This, IID_IHTMLFieldSetElement2);
   end Initialize;

   function Pointer (This : IHTMLFieldSetElement2_Type)
     return Pointer_To_IHTMLFieldSetElement2
   is
   begin
      return To_Pointer_To_IHTMLFieldSetElement2 (Address (This));
   end Pointer;

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

   function Get_form
     (This : IHTMLFieldSetElement2_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.IHTMLFieldSetElement2_Interface;

