with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLStyleSheetRuleApplied_Interface is

   procedure Initialize (This : in out IHTMLStyleSheetRuleApplied_Type) is
   begin
      Set_IID (This, IID_IHTMLStyleSheetRuleApplied);
   end Initialize;

   function Pointer (This : IHTMLStyleSheetRuleApplied_Type)
     return Pointer_To_IHTMLStyleSheetRuleApplied
   is
   begin
      return To_Pointer_To_IHTMLStyleSheetRuleApplied (Address (This));
   end Pointer;

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

   function Get_msSpecificity
     (This : IHTMLStyleSheetRuleApplied_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_msSpecificity
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_msSpecificity;

   function msGetSpecificity
     (This  : IHTMLStyleSheetRuleApplied_Type;
      index : Interfaces.C.long)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.msGetSpecificity
         (Pointer (This),
          index,
          RetVal'Unchecked_Access));

      return RetVal;
   end msGetSpecificity;

end MSHTML.IHTMLStyleSheetRuleApplied_Interface;

