with GNATCOM.Errors;

package body MSHTML.IMarkupContainer_Interface is

   procedure Initialize (This : in out IMarkupContainer_Type) is
   begin
      Set_IID (This, IID_IMarkupContainer);
   end Initialize;

   function Pointer (This : IMarkupContainer_Type)
     return Pointer_To_IMarkupContainer
   is
   begin
      return To_Pointer_To_IMarkupContainer (Address (This));
   end Pointer;

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

   procedure OwningDoc
     (This  : IMarkupContainer_Type;
      ppDoc : Pointer_To_Pointer_To_IHTMLDocument2)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.OwningDoc
         (Pointer (This),
          ppDoc));

   end OwningDoc;

end MSHTML.IMarkupContainer_Interface;

