#ifndef _COM_SUN_STAR_TABLE_TABLESORTFIELD_HPP_
#define _COM_SUN_STAR_TABLE_TABLESORTFIELD_HPP_

#ifndef _COM_SUN_STAR_TABLE_TABLESORTFIELD_HDL_
#include <com/sun/star/table/TableSortField.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_LOCALE_HPP_
#include <com/sun/star/lang/Locale.hpp>
#endif
#ifndef _COM_SUN_STAR_TABLE_TABLESORTFIELDTYPE_HPP_
#include <com/sun/star/table/TableSortFieldType.hpp>
#endif

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

inline TableSortField::TableSortField() SAL_THROW( () )
    : Field((sal_Int32)0)
    , IsAscending(sal_False)
    , IsCaseSensitive(sal_False)
    , FieldType(::com::sun::star::table::TableSortFieldType_AUTOMATIC)
    , CollatorLocale()
    , CollatorAlgorithm()
{
}

inline TableSortField::TableSortField(const sal_Int32& __Field, const sal_Bool& __IsAscending, const sal_Bool& __IsCaseSensitive, const ::com::sun::star::table::TableSortFieldType& __FieldType, const ::com::sun::star::lang::Locale& __CollatorLocale, const ::rtl::OUString& __CollatorAlgorithm) SAL_THROW( () )
    : Field(__Field)
    , IsAscending(__IsAscending)
    , IsCaseSensitive(__IsCaseSensitive)
    , FieldType(__FieldType)
    , CollatorLocale(__CollatorLocale)
    , CollatorAlgorithm(__CollatorAlgorithm)
{
}

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

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

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

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

#endif // _COM_SUN_STAR_TABLE_TABLESORTFIELD_HPP_
