#ifndef _COM_SUN_STAR_SCRIPT_INTERRUPTENGINEEVENT_HPP_
#define _COM_SUN_STAR_SCRIPT_INTERRUPTENGINEEVENT_HPP_

#ifndef _COM_SUN_STAR_SCRIPT_INTERRUPTENGINEEVENT_HDL_
#include <com/sun/star/script/InterruptEngineEvent.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_LANG_EVENTOBJECT_HPP_
#include <com/sun/star/lang/EventObject.hpp>
#endif
#ifndef _COM_SUN_STAR_SCRIPT_INTERRUPTREASON_HPP_
#include <com/sun/star/script/InterruptReason.hpp>
#endif

namespace com
{
namespace sun
{
namespace star
{
namespace script
{

inline InterruptEngineEvent::InterruptEngineEvent() SAL_THROW( () )
    : ::com::sun::star::lang::EventObject()
    , Name()
    , SourceCode()
    , StartLine((sal_Int32)0)
    , StartColumn((sal_Int32)0)
    , EndLine((sal_Int32)0)
    , EndColumn((sal_Int32)0)
    , ErrorMessage()
    , Reason(::com::sun::star::script::InterruptReason_Cancel)
{
}

inline InterruptEngineEvent::InterruptEngineEvent(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& __Source, const ::rtl::OUString& __Name, const ::rtl::OUString& __SourceCode, const sal_Int32& __StartLine, const sal_Int32& __StartColumn, const sal_Int32& __EndLine, const sal_Int32& __EndColumn, const ::rtl::OUString& __ErrorMessage, const ::com::sun::star::script::InterruptReason& __Reason) SAL_THROW( () )
    : ::com::sun::star::lang::EventObject(__Source)
    , Name(__Name)
    , SourceCode(__SourceCode)
    , StartLine(__StartLine)
    , StartColumn(__StartColumn)
    , EndLine(__EndLine)
    , EndColumn(__EndColumn)
    , ErrorMessage(__ErrorMessage)
    , Reason(__Reason)
{
}

} // script
} // star
} // sun
} // com

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

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

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

#endif // _COM_SUN_STAR_SCRIPT_INTERRUPTENGINEEVENT_HPP_
