with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLCurrentStyle5_Interface is

   procedure Initialize (This : in out IHTMLCurrentStyle5_Type) is
   begin
      Set_IID (This, IID_IHTMLCurrentStyle5);
   end Initialize;

   function Pointer (This : IHTMLCurrentStyle5_Type)
     return Pointer_To_IHTMLCurrentStyle5
   is
   begin
      return To_Pointer_To_IHTMLCurrentStyle5 (Address (This));
   end Pointer;

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

   function Get_captionSide
     (This : IHTMLCurrentStyle5_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;

   function Get_outline
     (This : IHTMLCurrentStyle5_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;

   function Get_outlineWidth
     (This : IHTMLCurrentStyle5_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;

   function Get_outlineStyle
     (This : IHTMLCurrentStyle5_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;

   function Get_outlineColor
     (This : IHTMLCurrentStyle5_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;

   function Get_boxSizing
     (This : IHTMLCurrentStyle5_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;

   function Get_borderSpacing
     (This : IHTMLCurrentStyle5_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;

   function Get_orphans
     (This : IHTMLCurrentStyle5_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;

   function Get_widows
     (This : IHTMLCurrentStyle5_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;

   function Get_pageBreakInside
     (This : IHTMLCurrentStyle5_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;

   function Get_emptyCells
     (This : IHTMLCurrentStyle5_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;

   function Get_msBlockProgression
     (This : IHTMLCurrentStyle5_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;

   function Get_quotes
     (This : IHTMLCurrentStyle5_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.IHTMLCurrentStyle5_Interface;

