with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGAElement_Interface is

   procedure Initialize (This : in out ISVGAElement_Type) is
   begin
      Set_IID (This, IID_ISVGAElement);
   end Initialize;

   function Pointer (This : ISVGAElement_Type)
     return Pointer_To_ISVGAElement
   is
   begin
      return To_Pointer_To_ISVGAElement (Address (This));
   end Pointer;

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

   procedure PutRef_target
     (This : ISVGAElement_Type;
      p    : Pointer_To_ISVGAnimatedString)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_target
         (Pointer (This),
          p));

   end PutRef_target;

   function Get_target
     (This : ISVGAElement_Type)
     return Pointer_To_ISVGAnimatedString
   is
       RetVal : aliased Pointer_To_ISVGAnimatedString;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_target
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_target;

end MSHTML.ISVGAElement_Interface;

