with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLStyle6_Interface is

   procedure Initialize (This : in out IHTMLStyle6_Type) is
   begin
      Set_IID (This, IID_IHTMLStyle6);
   end Initialize;

   function Pointer (This : IHTMLStyle6_Type)
     return Pointer_To_IHTMLStyle6
   is
   begin
      return To_Pointer_To_IHTMLStyle6 (Address (This));
   end Pointer;

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

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

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

   end Put_content;

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

      return RetVal;
   end Get_content;

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

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

   end Put_captionSide;

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

      return RetVal;
   end Get_captionSide;

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

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

   end Put_counterIncrement;

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

      return RetVal;
   end Get_counterIncrement;

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

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

   end Put_counterReset;

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

      return RetVal;
   end Get_counterReset;

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

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

   end Put_outline;

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

      return RetVal;
   end Get_outline;

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

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

   end Put_outlineWidth;

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

      return RetVal;
   end Get_outlineWidth;

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

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

   end Put_outlineStyle;

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

      return RetVal;
   end Get_outlineStyle;

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

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

   end Put_outlineColor;

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

      return RetVal;
   end Get_outlineColor;

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

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

   end Put_boxSizing;

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

      return RetVal;
   end Get_boxSizing;

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

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

   end Put_borderSpacing;

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

      return RetVal;
   end Get_borderSpacing;

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

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

   end Put_orphans;

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

      return RetVal;
   end Get_orphans;

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

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

   end Put_widows;

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

      return RetVal;
   end Get_widows;

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

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

   end Put_pageBreakInside;

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

      return RetVal;
   end Get_pageBreakInside;

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

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

   end Put_emptyCells;

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

      return RetVal;
   end Get_emptyCells;

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

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

   end Put_msBlockProgression;

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

      return RetVal;
   end Get_msBlockProgression;

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

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

   end Put_quotes;

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

      return RetVal;
   end Get_quotes;

end MSHTML.IHTMLStyle6_Interface;

