LCOV - code coverage report
Current view: top level - drawing - GluePoint2.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 7 9 77.8 %
Date: 2013-07-09 Functions: 2 3 66.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_DRAWING_GLUEPOINT2_HPP
       2             : #define INCLUDED_COM_SUN_STAR_DRAWING_GLUEPOINT2_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/drawing/GluePoint2.hdl"
       7             : 
       8             : #include "com/sun/star/awt/Point.hpp"
       9             : #include "com/sun/star/drawing/Alignment.hpp"
      10             : #include "com/sun/star/drawing/EscapeDirection.hpp"
      11             : #include "com/sun/star/uno/Type.hxx"
      12             : #include "cppu/unotype.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 drawing {
      18             : 
      19         180 : inline GluePoint2::GluePoint2() SAL_THROW(())
      20             :     : Position()
      21             :     , IsRelative(false)
      22             :     , PositionAlignment(css::drawing::Alignment_TOP_LEFT)
      23             :     , Escape(css::drawing::EscapeDirection_SMART)
      24         180 :     , IsUserDefined(false)
      25             : {
      26         180 : }
      27             : 
      28             : inline GluePoint2::GluePoint2(const css::awt::Point& Position_, const ::sal_Bool& IsRelative_, const css::drawing::Alignment& PositionAlignment_, const css::drawing::EscapeDirection& Escape_, const ::sal_Bool& IsUserDefined_) SAL_THROW(())
      29             :     : Position(Position_)
      30             :     , IsRelative(IsRelative_)
      31             :     , PositionAlignment(PositionAlignment_)
      32             :     , Escape(Escape_)
      33             :     , IsUserDefined(IsUserDefined_)
      34             : {
      35             : }
      36             : 
      37             : } } } }
      38             : 
      39             : namespace com { namespace sun { namespace star { namespace drawing {
      40             : 
      41         288 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::drawing::GluePoint2 const *) {
      42             :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      43             :     static ::typelib_TypeDescriptionReference * the_type = 0;
      44         288 :     if (the_type == 0) {
      45           4 :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.drawing.GluePoint2");
      46             :     }
      47         288 :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      48             : }
      49             : 
      50             : } } } }
      51             : 
      52           0 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::drawing::GluePoint2 const *) SAL_THROW(()) {
      53           0 :     return ::cppu::UnoType< css::drawing::GluePoint2 >::get();
      54             : }
      55             : 
      56             : #endif // INCLUDED_COM_SUN_STAR_DRAWING_GLUEPOINT2_HPP

Generated by: LCOV version 1.10