package body MSHTML.IHTMLStyleSheet4_Object is

   function Get_type
     (This : IHTMLStyleSheet4_Type)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Get (This, IHTMLStyleSheet4_Get_type);
   end Get_type;

   function Get_href
     (This : IHTMLStyleSheet4_Type)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Get (This, IHTMLStyleSheet4_Get_href);
   end Get_href;

   function Get_title
     (This : IHTMLStyleSheet4_Type)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Get (This, IHTMLStyleSheet4_Get_title);
   end Get_title;

   function Get_ownerNode
     (This : IHTMLStyleSheet4_Type)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Get (This, IHTMLStyleSheet4_Get_ownerNode);
   end Get_ownerNode;

   function Get_ownerRule
     (This : IHTMLStyleSheet4_Type)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Get (This, IHTMLStyleSheet4_Get_ownerRule);
   end Get_ownerRule;

   function Get_cssRules
     (This : IHTMLStyleSheet4_Type)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Get (This, IHTMLStyleSheet4_Get_cssRules);
   end Get_cssRules;

   function Get_media
     (This : IHTMLStyleSheet4_Type)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Get (This, IHTMLStyleSheet4_Get_media);
   end Get_media;

   function insertRule
     (This     : IHTMLStyleSheet4_Type;
      bstrRule : GNATCOM.Types.VARIANT;
      lIndex   : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      Free     : Boolean := True)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Invoke
        (This,
         IHTMLStyleSheet4_insertRule,
         GNATCOM.Dispinterface.Parameter_Array'
         (1 => lIndex,
          2 => bstrRule),
         Free);
   end insertRule;

   procedure deleteRule
     (This   : IHTMLStyleSheet4_Type;
      lIndex : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      Free   : Boolean := True)
   is
   begin
      Invoke
        (This,
         IHTMLStyleSheet4_deleteRule,
         GNATCOM.Dispinterface.Parameter_Array'
         (1 => lIndex),
         Free);
   end deleteRule;

end MSHTML.IHTMLStyleSheet4_Object;

