with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGStylable_Interface is

   procedure Initialize (This : in out ISVGStylable_Type) is
   begin
      Set_IID (This, IID_ISVGStylable);
   end Initialize;

   function Pointer (This : ISVGStylable_Type)
     return Pointer_To_ISVGStylable
   is
   begin
      return To_Pointer_To_ISVGStylable (Address (This));
   end Pointer;

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

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

      return RetVal;
   end Get_className;

end MSHTML.ISVGStylable_Interface;

