with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGViewElement_Interface is

   procedure Initialize (This : in out ISVGViewElement_Type) is
   begin
      Set_IID (This, IID_ISVGViewElement);
   end Initialize;

   function Pointer (This : ISVGViewElement_Type)
     return Pointer_To_ISVGViewElement
   is
   begin
      return To_Pointer_To_ISVGViewElement (Address (This));
   end Pointer;

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

   procedure PutRef_viewTarget
     (This : ISVGViewElement_Type;
      p    : Pointer_To_ISVGStringList)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_viewTarget
         (Pointer (This),
          p));

   end PutRef_viewTarget;

   function Get_viewTarget
     (This : ISVGViewElement_Type)
     return Pointer_To_ISVGStringList
   is
       RetVal : aliased Pointer_To_ISVGStringList;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_viewTarget
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_viewTarget;

end MSHTML.ISVGViewElement_Interface;

