#ifndef _COM_SUN_STAR_AWT_DEVICEINFO_HPP_
#define _COM_SUN_STAR_AWT_DEVICEINFO_HPP_

#ifndef _COM_SUN_STAR_AWT_DEVICEINFO_HDL_
#include <com/sun/star/awt/DeviceInfo.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


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

inline DeviceInfo::DeviceInfo() SAL_THROW( () )
    : Width((sal_Int32)0)
    , Height((sal_Int32)0)
    , LeftInset((sal_Int32)0)
    , TopInset((sal_Int32)0)
    , RightInset((sal_Int32)0)
    , BottomInset((sal_Int32)0)
    , PixelPerMeterX((double)0)
    , PixelPerMeterY((double)0)
    , BitsPerPixel((sal_Int16)0)
    , Capabilities((sal_Int32)0)
{
}

inline DeviceInfo::DeviceInfo(const sal_Int32& __Width, const sal_Int32& __Height, const sal_Int32& __LeftInset, const sal_Int32& __TopInset, const sal_Int32& __RightInset, const sal_Int32& __BottomInset, const double& __PixelPerMeterX, const double& __PixelPerMeterY, const sal_Int16& __BitsPerPixel, const sal_Int32& __Capabilities) SAL_THROW( () )
    : Width(__Width)
    , Height(__Height)
    , LeftInset(__LeftInset)
    , TopInset(__TopInset)
    , RightInset(__RightInset)
    , BottomInset(__BottomInset)
    , PixelPerMeterX(__PixelPerMeterX)
    , PixelPerMeterY(__PixelPerMeterY)
    , BitsPerPixel(__BitsPerPixel)
    , Capabilities(__Capabilities)
{
}

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

#if ((defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500)) || (defined(__GNUC__) && defined(__APPLE__)))
static typelib_TypeDescriptionReference * s_pType_com_sun_star_awt_DeviceInfo = 0;
#endif

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

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

#endif // _COM_SUN_STAR_AWT_DEVICEINFO_HPP_
