with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGURIReference_Interface is

   procedure Initialize (This : in out ISVGURIReference_Type) is
   begin
      Set_IID (This, IID_ISVGURIReference);
   end Initialize;

   function Pointer (This : ISVGURIReference_Type)
     return Pointer_To_ISVGURIReference
   is
   begin
      return To_Pointer_To_ISVGURIReference (Address (This));
   end Pointer;

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

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

      return RetVal;
   end Get_href;

end MSHTML.ISVGURIReference_Interface;

