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

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_TABLE_TABLEBORDER_HPP
       2             : #define INCLUDED_COM_SUN_STAR_TABLE_TABLEBORDER_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/table/TableBorder.hdl"
       7             : 
       8             : #include "com/sun/star/table/BorderLine.hpp"
       9             : #include "com/sun/star/uno/Type.hxx"
      10             : #include "cppu/unotype.hxx"
      11             : #include "sal/types.h"
      12             : #include "typelib/typeclass.h"
      13             : #include "typelib/typedescription.h"
      14             : 
      15             : namespace com { namespace sun { namespace star { namespace table {
      16             : 
      17         243 : inline TableBorder::TableBorder() SAL_THROW(())
      18             :     : TopLine()
      19             :     , IsTopLineValid(false)
      20             :     , BottomLine()
      21             :     , IsBottomLineValid(false)
      22             :     , LeftLine()
      23             :     , IsLeftLineValid(false)
      24             :     , RightLine()
      25             :     , IsRightLineValid(false)
      26             :     , HorizontalLine()
      27             :     , IsHorizontalLineValid(false)
      28             :     , VerticalLine()
      29             :     , IsVerticalLineValid(false)
      30             :     , Distance(0)
      31         243 :     , IsDistanceValid(false)
      32             : {
      33         243 : }
      34             : 
      35             : inline TableBorder::TableBorder(const css::table::BorderLine& TopLine_, const ::sal_Bool& IsTopLineValid_, const css::table::BorderLine& BottomLine_, const ::sal_Bool& IsBottomLineValid_, const css::table::BorderLine& LeftLine_, const ::sal_Bool& IsLeftLineValid_, const css::table::BorderLine& RightLine_, const ::sal_Bool& IsRightLineValid_, const css::table::BorderLine& HorizontalLine_, const ::sal_Bool& IsHorizontalLineValid_, const css::table::BorderLine& VerticalLine_, const ::sal_Bool& IsVerticalLineValid_, const ::sal_Int16& Distance_, const ::sal_Bool& IsDistanceValid_) SAL_THROW(())
      36             :     : TopLine(TopLine_)
      37             :     , IsTopLineValid(IsTopLineValid_)
      38             :     , BottomLine(BottomLine_)
      39             :     , IsBottomLineValid(IsBottomLineValid_)
      40             :     , LeftLine(LeftLine_)
      41             :     , IsLeftLineValid(IsLeftLineValid_)
      42             :     , RightLine(RightLine_)
      43             :     , IsRightLineValid(IsRightLineValid_)
      44             :     , HorizontalLine(HorizontalLine_)
      45             :     , IsHorizontalLineValid(IsHorizontalLineValid_)
      46             :     , VerticalLine(VerticalLine_)
      47             :     , IsVerticalLineValid(IsVerticalLineValid_)
      48             :     , Distance(Distance_)
      49             :     , IsDistanceValid(IsDistanceValid_)
      50             : {
      51             : }
      52             : 
      53             : } } } }
      54             : 
      55             : namespace com { namespace sun { namespace star { namespace table {
      56             : 
      57         390 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::table::TableBorder const *) {
      58             :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      59             :     static ::typelib_TypeDescriptionReference * the_type = 0;
      60         390 :     if (the_type == 0) {
      61          57 :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.table.TableBorder");
      62             :     }
      63         390 :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      64             : }
      65             : 
      66             : } } } }
      67             : 
      68         147 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::table::TableBorder const *) SAL_THROW(()) {
      69         147 :     return ::cppu::UnoType< css::table::TableBorder >::get();
      70             : }
      71             : 
      72             : #endif // INCLUDED_COM_SUN_STAR_TABLE_TABLEBORDER_HPP

Generated by: LCOV version 1.10