with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLRuleStyle4_Interface is

   procedure Initialize (This : in out IHTMLRuleStyle4_Type) is
   begin
      Set_IID (This, IID_IHTMLRuleStyle4);
   end Initialize;

   function Pointer (This : IHTMLRuleStyle4_Type)
     return Pointer_To_IHTMLRuleStyle4
   is
   begin
      return To_Pointer_To_IHTMLRuleStyle4 (Address (This));
   end Pointer;

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

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

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

   end Put_textOverflow;

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

      return RetVal;
   end Get_textOverflow;

   procedure Put_minHeight
     (This : IHTMLRuleStyle4_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_minHeight
         (Pointer (This),
          p));

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

   end Put_minHeight;

   function Get_minHeight
     (This : IHTMLRuleStyle4_Type)
     return GNATCOM.Types.VARIANT
   is
       RetVal : aliased GNATCOM.Types.VARIANT;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_minHeight
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_minHeight;

end MSHTML.IHTMLRuleStyle4_Interface;

