with GNATCOM.Errors;

package body MSHTML.IHighlightSegment_Interface is

   procedure Initialize (This : in out IHighlightSegment_Type) is
   begin
      Set_IID (This, IID_IHighlightSegment);
   end Initialize;

   function Pointer (This : IHighlightSegment_Type)
     return Pointer_To_IHighlightSegment
   is
   begin
      return To_Pointer_To_IHighlightSegment (Address (This));
   end Pointer;

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

   procedure GetPointers
     (This    : IHighlightSegment_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.IHighlightSegment_Interface;

