with GNATCOM.Errors;

package body MSHTML.ISegmentList_Interface is

   procedure Initialize (This : in out ISegmentList_Type) is
   begin
      Set_IID (This, IID_ISegmentList);
   end Initialize;

   function Pointer (This : ISegmentList_Type)
     return Pointer_To_ISegmentList
   is
   begin
      return To_Pointer_To_ISegmentList (Address (This));
   end Pointer;

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

   procedure CreateIterator
     (This    : ISegmentList_Type;
      ppIIter : Pointer_To_Pointer_To_ISegmentListIterator)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.CreateIterator
         (Pointer (This),
          ppIIter));

   end CreateIterator;

   procedure GetType
     (This   : ISegmentList_Type;
      peType : Pointer_To_uSELECTION_TYPE)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetType
         (Pointer (This),
          peType));

   end GetType;

   procedure IsEmpty
     (This    : ISegmentList_Type;
      pfEmpty : GNATCOM.Types.Pointer_To_long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.IsEmpty
         (Pointer (This),
          pfEmpty));

   end IsEmpty;

end MSHTML.ISegmentList_Interface;

