with GNATCOM.Errors;

package body MSHTML.ICSSFilter_Interface is

   procedure Initialize (This : in out ICSSFilter_Type) is
   begin
      Set_IID (This, IID_ICSSFilter);
   end Initialize;

   function Pointer (This : ICSSFilter_Type)
     return Pointer_To_ICSSFilter
   is
   begin
      return To_Pointer_To_ICSSFilter (Address (This));
   end Pointer;

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

   procedure SetSite
     (This  : ICSSFilter_Type;
      pSink : Pointer_To_ICSSFilterSite)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.SetSite
         (Pointer (This),
          pSink));

   end SetSite;

   procedure OnAmbientPropertyChange
     (This   : ICSSFilter_Type;
      dispid : Interfaces.C.long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.OnAmbientPropertyChange
         (Pointer (This),
          dispid));

   end OnAmbientPropertyChange;

end MSHTML.ICSSFilter_Interface;

