with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLMSCSSKeyframeRule_Interface is

   procedure Initialize (This : in out IHTMLMSCSSKeyframeRule_Type) is
   begin
      Set_IID (This, IID_IHTMLMSCSSKeyframeRule);
   end Initialize;

   function Pointer (This : IHTMLMSCSSKeyframeRule_Type)
     return Pointer_To_IHTMLMSCSSKeyframeRule
   is
   begin
      return To_Pointer_To_IHTMLMSCSSKeyframeRule (Address (This));
   end Pointer;

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

   procedure Put_keyText
     (This : IHTMLMSCSSKeyframeRule_Type;
      p    : GNATCOM.Types.BSTR;
      Free : Boolean := True)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_keyText
         (Pointer (This),
          p));

      if Free then
               GNATCOM.IInterface.Free (p);
      
      end if;

   end Put_keyText;

   function Get_keyText
     (This : IHTMLMSCSSKeyframeRule_Type)
     return GNATCOM.Types.BSTR
   is
       RetVal : aliased GNATCOM.Types.BSTR;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_keyText
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_keyText;

   function Get_style
     (This : IHTMLMSCSSKeyframeRule_Type)
     return Pointer_To_IHTMLRuleStyle
   is
       RetVal : aliased Pointer_To_IHTMLRuleStyle;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_style
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_style;

end MSHTML.IHTMLMSCSSKeyframeRule_Interface;

