with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLLinkElement5_Interface is

   procedure Initialize (This : in out IHTMLLinkElement5_Type) is
   begin
      Set_IID (This, IID_IHTMLLinkElement5);
   end Initialize;

   function Pointer (This : IHTMLLinkElement5_Type)
     return Pointer_To_IHTMLLinkElement5
   is
   begin
      return To_Pointer_To_IHTMLLinkElement5 (Address (This));
   end Pointer;

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

   function Get_sheet
     (This : IHTMLLinkElement5_Type)
     return Pointer_To_IHTMLStyleSheet
   is
       RetVal : aliased Pointer_To_IHTMLStyleSheet;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_sheet
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_sheet;

end MSHTML.IHTMLLinkElement5_Interface;

