with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGNumberList_Interface is

   procedure Initialize (This : in out ISVGNumberList_Type) is
   begin
      Set_IID (This, IID_ISVGNumberList);
   end Initialize;

   function Pointer (This : ISVGNumberList_Type)
     return Pointer_To_ISVGNumberList
   is
   begin
      return To_Pointer_To_ISVGNumberList (Address (This));
   end Pointer;

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

   procedure Put_numberOfItems
     (This : ISVGNumberList_Type;
      p    : Interfaces.C.long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_numberOfItems
         (Pointer (This),
          p));

   end Put_numberOfItems;

   function Get_numberOfItems
     (This : ISVGNumberList_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_numberOfItems
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_numberOfItems;

   procedure clear
     (This : ISVGNumberList_Type)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.clear
         (Pointer (This)));

   end clear;

   function initialize
     (This     : ISVGNumberList_Type;
      newItem  : Pointer_To_ISVGNumber)
     return Pointer_To_ISVGNumber
   is
       RetVal : aliased Pointer_To_ISVGNumber;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.initialize
         (Pointer (This),
          newItem,
          RetVal'Unchecked_Access));

      return RetVal;
   end initialize;

   function getItem
     (This     : ISVGNumberList_Type;
      index    : Interfaces.C.long)
     return Pointer_To_ISVGNumber
   is
       RetVal : aliased Pointer_To_ISVGNumber;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.getItem
         (Pointer (This),
          index,
          RetVal'Unchecked_Access));

      return RetVal;
   end getItem;

   function insertItemBefore
     (This     : ISVGNumberList_Type;
      newItem  : Pointer_To_ISVGNumber;
      index    : Interfaces.C.long)
     return Pointer_To_ISVGNumber
   is
       RetVal : aliased Pointer_To_ISVGNumber;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.insertItemBefore
         (Pointer (This),
          newItem,
          index,
          RetVal'Unchecked_Access));

      return RetVal;
   end insertItemBefore;

   function replaceItem
     (This     : ISVGNumberList_Type;
      newItem  : Pointer_To_ISVGNumber;
      index    : Interfaces.C.long)
     return Pointer_To_ISVGNumber
   is
       RetVal : aliased Pointer_To_ISVGNumber;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.replaceItem
         (Pointer (This),
          newItem,
          index,
          RetVal'Unchecked_Access));

      return RetVal;
   end replaceItem;

   function removeItem
     (This     : ISVGNumberList_Type;
      index    : Interfaces.C.long)
     return Pointer_To_ISVGNumber
   is
       RetVal : aliased Pointer_To_ISVGNumber;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.removeItem
         (Pointer (This),
          index,
          RetVal'Unchecked_Access));

      return RetVal;
   end removeItem;

   function appendItem
     (This     : ISVGNumberList_Type;
      newItem  : Pointer_To_ISVGNumber)
     return Pointer_To_ISVGNumber
   is
       RetVal : aliased Pointer_To_ISVGNumber;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.appendItem
         (Pointer (This),
          newItem,
          RetVal'Unchecked_Access));

      return RetVal;
   end appendItem;

end MSHTML.ISVGNumberList_Interface;

