with GNATCOM.Errors;

package body MSHTML.IDeveloperConsoleMessageReceiver_Interface is

   procedure Initialize (This : in out IDeveloperConsoleMessageReceiver_Type) is
   begin
      Set_IID (This, IID_IDeveloperConsoleMessageReceiver);
   end Initialize;

   function Pointer (This : IDeveloperConsoleMessageReceiver_Type)
     return Pointer_To_IDeveloperConsoleMessageReceiver
   is
   begin
      return To_Pointer_To_IDeveloperConsoleMessageReceiver (Address (This));
   end Pointer;

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

   procedure write
     (This        : IDeveloperConsoleMessageReceiver_Type;
      source      : GNATCOM.Types.LPWSTR;
      level       : uDEV_CONSOLE_MESSAGE_LEVEL;
      messageId   : Interfaces.C.int;
      messageText : GNATCOM.Types.LPWSTR)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.write
         (Pointer (This),
          source,
          level,
          messageId,
          messageText));

   end write;

   procedure WriteWithUrl
     (This        : IDeveloperConsoleMessageReceiver_Type;
      source      : GNATCOM.Types.LPWSTR;
      level       : uDEV_CONSOLE_MESSAGE_LEVEL;
      messageId   : Interfaces.C.int;
      messageText : GNATCOM.Types.LPWSTR;
      fileUrl     : GNATCOM.Types.LPWSTR)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.WriteWithUrl
         (Pointer (This),
          source,
          level,
          messageId,
          messageText,
          fileUrl));

   end WriteWithUrl;

   procedure WriteWithUrlAndLine
     (This        : IDeveloperConsoleMessageReceiver_Type;
      source      : GNATCOM.Types.LPWSTR;
      level       : uDEV_CONSOLE_MESSAGE_LEVEL;
      messageId   : Interfaces.C.int;
      messageText : GNATCOM.Types.LPWSTR;
      fileUrl     : GNATCOM.Types.LPWSTR;
      line        : Interfaces.C.unsigned_long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.WriteWithUrlAndLine
         (Pointer (This),
          source,
          level,
          messageId,
          messageText,
          fileUrl,
          line));

   end WriteWithUrlAndLine;

   procedure WriteWithUrlLineAndColumn
     (This        : IDeveloperConsoleMessageReceiver_Type;
      source      : GNATCOM.Types.LPWSTR;
      level       : uDEV_CONSOLE_MESSAGE_LEVEL;
      messageId   : Interfaces.C.int;
      messageText : GNATCOM.Types.LPWSTR;
      fileUrl     : GNATCOM.Types.LPWSTR;
      line        : Interfaces.C.unsigned_long;
      column      : Interfaces.C.unsigned_long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.WriteWithUrlLineAndColumn
         (Pointer (This),
          source,
          level,
          messageId,
          messageText,
          fileUrl,
          line,
          column));

   end WriteWithUrlLineAndColumn;

end MSHTML.IDeveloperConsoleMessageReceiver_Interface;

