with GNATCOM.Errors;

package body MSHTML.IElementNamespaceFactory_Interface is

   procedure Initialize (This : in out IElementNamespaceFactory_Type) is
   begin
      Set_IID (This, IID_IElementNamespaceFactory);
   end Initialize;

   function Pointer (This : IElementNamespaceFactory_Type)
     return Pointer_To_IElementNamespaceFactory
   is
   begin
      return To_Pointer_To_IElementNamespaceFactory (Address (This));
   end Pointer;

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

   procedure create
     (This       : IElementNamespaceFactory_Type;
      pNamespace : Pointer_To_IElementNamespace)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.create
         (Pointer (This),
          pNamespace));

   end create;

end MSHTML.IElementNamespaceFactory_Interface;

