with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLIsIndexElement2_Interface is

   procedure Initialize (This : in out IHTMLIsIndexElement2_Type) is
   begin
      Set_IID (This, IID_IHTMLIsIndexElement2);
   end Initialize;

   function Pointer (This : IHTMLIsIndexElement2_Type)
     return Pointer_To_IHTMLIsIndexElement2
   is
   begin
      return To_Pointer_To_IHTMLIsIndexElement2 (Address (This));
   end Pointer;

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

   function Get_form
     (This : IHTMLIsIndexElement2_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.IHTMLIsIndexElement2_Interface;

