#ifndef _COM_SUN_STAR_AWT_GRADIENT_HPP_
#define _COM_SUN_STAR_AWT_GRADIENT_HPP_

#ifndef _COM_SUN_STAR_AWT_GRADIENT_HDL_
#include <com/sun/star/awt/Gradient.hdl>
#endif

#ifndef _OSL_MUTEX_HXX_
#include <osl/mutex.hxx>
#endif

#ifndef _COM_SUN_STAR_UNO_TYPE_HXX_
#include <com/sun/star/uno/Type.hxx>
#endif

#ifndef _COM_SUN_STAR_AWT_GRADIENTSTYLE_HPP_
#include <com/sun/star/awt/GradientStyle.hpp>
#endif

namespace com
{
namespace sun
{
namespace star
{
namespace awt
{

inline Gradient::Gradient() SAL_THROW( () )
    : Style(::com::sun::star::awt::GradientStyle_LINEAR)
    , StartColor((sal_Int32)0)
    , EndColor((sal_Int32)0)
    , Angle((sal_Int16)0)
    , Border((sal_Int16)0)
    , XOffset((sal_Int16)0)
    , YOffset((sal_Int16)0)
    , StartIntensity((sal_Int16)0)
    , EndIntensity((sal_Int16)0)
    , StepCount((sal_Int16)0)
{
}

inline Gradient::Gradient(const ::com::sun::star::awt::GradientStyle& __Style, const sal_Int32& __StartColor, const sal_Int32& __EndColor, const sal_Int16& __Angle, const sal_Int16& __Border, const sal_Int16& __XOffset, const sal_Int16& __YOffset, const sal_Int16& __StartIntensity, const sal_Int16& __EndIntensity, const sal_Int16& __StepCount) SAL_THROW( () )
    : Style(__Style)
    , StartColor(__StartColor)
    , EndColor(__EndColor)
    , Angle(__Angle)
    , Border(__Border)
    , XOffset(__XOffset)
    , YOffset(__YOffset)
    , StartIntensity(__StartIntensity)
    , EndIntensity(__EndIntensity)
    , StepCount(__StepCount)
{
}

} // awt
} // star
} // sun
} // com

#if (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
static typelib_TypeDescriptionReference * s_pType_com_sun_star_awt_Gradient = 0;
#endif

inline const ::com::sun::star::uno::Type& SAL_CALL getCppuType( const ::com::sun::star::awt::Gradient* ) SAL_THROW( () )
{
    #if ! (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
    static typelib_TypeDescriptionReference * s_pType_com_sun_star_awt_Gradient = 0;
    #endif

    if ( !s_pType_com_sun_star_awt_Gradient )
    {
        typelib_static_type_init( &s_pType_com_sun_star_awt_Gradient, typelib_TypeClass_STRUCT, "com.sun.star.awt.Gradient" );
    }
    return * reinterpret_cast< ::com::sun::star::uno::Type * >( &s_pType_com_sun_star_awt_Gradient );
}

#endif // _COM_SUN_STAR_AWT_GRADIENT_HPP_
