with GNATCOM.Errors;

package body MSHTML.ISegment_Interface is

   procedure Initialize (This : in out ISegment_Type) is
   begin
      Set_IID (This, IID_ISegment);
   end Initialize;

   function Pointer (This : ISegment_Type)
     return Pointer_To_ISegment
   is
   begin
      return To_Pointer_To_ISegment (Address (This));
   end Pointer;

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

   procedure GetPointers
     (This    : ISegment_Type;
      pIStart : Pointer_To_IMarkupPointer;
      pIEnd   : Pointer_To_IMarkupPointer)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetPointers
         (Pointer (This),
          pIStart,
          pIEnd));

   end GetPointers;

end MSHTML.ISegment_Interface;

