with GNATCOM.Errors;

package body MSHTML.ICSSFilterSite_Interface is

   procedure Initialize (This : in out ICSSFilterSite_Type) is
   begin
      Set_IID (This, IID_ICSSFilterSite);
   end Initialize;

   function Pointer (This : ICSSFilterSite_Type)
     return Pointer_To_ICSSFilterSite
   is
   begin
      return To_Pointer_To_ICSSFilterSite (Address (This));
   end Pointer;

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

   function GetElement
     (This    : ICSSFilterSite_Type)
     return Pointer_To_IHTMLElement
   is
       RetVal : aliased Pointer_To_IHTMLElement;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetElement
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end GetElement;

   procedure FireOnFilterChangeEvent
     (This : ICSSFilterSite_Type)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.FireOnFilterChangeEvent
         (Pointer (This)));

   end FireOnFilterChangeEvent;

end MSHTML.ICSSFilterSite_Interface;

