#ifndef _COM_SUN_STAR_TABLE_TABLEBORDER_HPP_
#define _COM_SUN_STAR_TABLE_TABLEBORDER_HPP_

#ifndef _COM_SUN_STAR_TABLE_TABLEBORDER_HDL_
#include <com/sun/star/table/TableBorder.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_TABLE_BORDERLINE_HPP_
#include <com/sun/star/table/BorderLine.hpp>
#endif

namespace com
{
namespace sun
{
namespace star
{
namespace table
{

inline TableBorder::TableBorder() SAL_THROW( () )
    : TopLine()
    , IsTopLineValid(sal_False)
    , BottomLine()
    , IsBottomLineValid(sal_False)
    , LeftLine()
    , IsLeftLineValid(sal_False)
    , RightLine()
    , IsRightLineValid(sal_False)
    , HorizontalLine()
    , IsHorizontalLineValid(sal_False)
    , VerticalLine()
    , IsVerticalLineValid(sal_False)
    , Distance((sal_Int16)0)
    , IsDistanceValid(sal_False)
{
}

inline TableBorder::TableBorder(const ::com::sun::star::table::BorderLine& __TopLine, const sal_Bool& __IsTopLineValid, const ::com::sun::star::table::BorderLine& __BottomLine, const sal_Bool& __IsBottomLineValid, const ::com::sun::star::table::BorderLine& __LeftLine, const sal_Bool& __IsLeftLineValid, const ::com::sun::star::table::BorderLine& __RightLine, const sal_Bool& __IsRightLineValid, const ::com::sun::star::table::BorderLine& __HorizontalLine, const sal_Bool& __IsHorizontalLineValid, const ::com::sun::star::table::BorderLine& __VerticalLine, const sal_Bool& __IsVerticalLineValid, const sal_Int16& __Distance, const sal_Bool& __IsDistanceValid) SAL_THROW( () )
    : TopLine(__TopLine)
    , IsTopLineValid(__IsTopLineValid)
    , BottomLine(__BottomLine)
    , IsBottomLineValid(__IsBottomLineValid)
    , LeftLine(__LeftLine)
    , IsLeftLineValid(__IsLeftLineValid)
    , RightLine(__RightLine)
    , IsRightLineValid(__IsRightLineValid)
    , HorizontalLine(__HorizontalLine)
    , IsHorizontalLineValid(__IsHorizontalLineValid)
    , VerticalLine(__VerticalLine)
    , IsVerticalLineValid(__IsVerticalLineValid)
    , Distance(__Distance)
    , IsDistanceValid(__IsDistanceValid)
{
}

} // table
} // star
} // sun
} // com

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

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

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

#endif // _COM_SUN_STAR_TABLE_TABLEBORDER_HPP_
