LCOV - code coverage report
Current view: top level - table - TableSortField.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 4 4 100.0 %
Date: 2013-07-09 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_TABLE_TABLESORTFIELD_HPP
       2             : #define INCLUDED_COM_SUN_STAR_TABLE_TABLESORTFIELD_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/table/TableSortField.hdl"
       7             : 
       8             : #include "com/sun/star/lang/Locale.hpp"
       9             : #include "com/sun/star/table/TableSortFieldType.hpp"
      10             : #include "com/sun/star/uno/Type.hxx"
      11             : #include "cppu/unotype.hxx"
      12             : #include "rtl/ustring.hxx"
      13             : #include "sal/types.h"
      14             : #include "typelib/typeclass.h"
      15             : #include "typelib/typedescription.h"
      16             : 
      17             : namespace com { namespace sun { namespace star { namespace table {
      18             : 
      19             : inline TableSortField::TableSortField() SAL_THROW(())
      20             :     : Field(0)
      21             :     , IsAscending(false)
      22             :     , IsCaseSensitive(false)
      23             :     , FieldType(css::table::TableSortFieldType_AUTOMATIC)
      24             :     , CollatorLocale()
      25             :     , CollatorAlgorithm()
      26             : {
      27             : }
      28             : 
      29             : inline TableSortField::TableSortField(const ::sal_Int32& Field_, const ::sal_Bool& IsAscending_, const ::sal_Bool& IsCaseSensitive_, const css::table::TableSortFieldType& FieldType_, const css::lang::Locale& CollatorLocale_, const ::rtl::OUString& CollatorAlgorithm_) SAL_THROW(())
      30             :     : Field(Field_)
      31             :     , IsAscending(IsAscending_)
      32             :     , IsCaseSensitive(IsCaseSensitive_)
      33             :     , FieldType(FieldType_)
      34             :     , CollatorLocale(CollatorLocale_)
      35             :     , CollatorAlgorithm(CollatorAlgorithm_)
      36             : {
      37             : }
      38             : 
      39             : } } } }
      40             : 
      41             : namespace com { namespace sun { namespace star { namespace table {
      42             : 
      43           3 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::table::TableSortField const *) {
      44             :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      45             :     static ::typelib_TypeDescriptionReference * the_type = 0;
      46           3 :     if (the_type == 0) {
      47           3 :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.table.TableSortField");
      48             :     }
      49           3 :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      50             : }
      51             : 
      52             : } } } }
      53             : 
      54             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::table::TableSortField const *) SAL_THROW(()) {
      55             :     return ::cppu::UnoType< css::table::TableSortField >::get();
      56             : }
      57             : 
      58             : #endif // INCLUDED_COM_SUN_STAR_TABLE_TABLESORTFIELD_HPP

Generated by: LCOV version 1.10