LCOV - code coverage report
Current view: top level - awt - DeviceInfo.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 3 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_AWT_DEVICEINFO_HPP
       2             : #define INCLUDED_COM_SUN_STAR_AWT_DEVICEINFO_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/awt/DeviceInfo.hdl"
       7             : 
       8             : #include "com/sun/star/uno/Type.hxx"
       9             : #include "cppu/unotype.hxx"
      10             : #include "sal/types.h"
      11             : #include "typelib/typeclass.h"
      12             : #include "typelib/typedescription.h"
      13             : 
      14             : namespace com { namespace sun { namespace star { namespace awt {
      15             : 
      16       12552 : inline DeviceInfo::DeviceInfo() SAL_THROW(())
      17             :     : Width(0)
      18             :     , Height(0)
      19             :     , LeftInset(0)
      20             :     , TopInset(0)
      21             :     , RightInset(0)
      22             :     , BottomInset(0)
      23             :     , PixelPerMeterX(0)
      24             :     , PixelPerMeterY(0)
      25             :     , BitsPerPixel(0)
      26       12552 :     , Capabilities(0)
      27             : {
      28       12552 : }
      29             : 
      30             : inline DeviceInfo::DeviceInfo(const ::sal_Int32& Width_, const ::sal_Int32& Height_, const ::sal_Int32& LeftInset_, const ::sal_Int32& TopInset_, const ::sal_Int32& RightInset_, const ::sal_Int32& BottomInset_, const double& PixelPerMeterX_, const double& PixelPerMeterY_, const ::sal_Int16& BitsPerPixel_, const ::sal_Int32& Capabilities_) SAL_THROW(())
      31             :     : Width(Width_)
      32             :     , Height(Height_)
      33             :     , LeftInset(LeftInset_)
      34             :     , TopInset(TopInset_)
      35             :     , RightInset(RightInset_)
      36             :     , BottomInset(BottomInset_)
      37             :     , PixelPerMeterX(PixelPerMeterX_)
      38             :     , PixelPerMeterY(PixelPerMeterY_)
      39             :     , BitsPerPixel(BitsPerPixel_)
      40             :     , Capabilities(Capabilities_)
      41             : {
      42             : }
      43             : 
      44             : } } } }
      45             : 
      46             : namespace com { namespace sun { namespace star { namespace awt {
      47             : 
      48             : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::awt::DeviceInfo const *) {
      49             :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      50             :     static ::typelib_TypeDescriptionReference * the_type = 0;
      51             :     if (the_type == 0) {
      52             :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.awt.DeviceInfo");
      53             :     }
      54             :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      55             : }
      56             : 
      57             : } } } }
      58             : 
      59             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::awt::DeviceInfo const *) SAL_THROW(()) {
      60             :     return ::cppu::UnoType< css::awt::DeviceInfo >::get();
      61             : }
      62             : 
      63             : #endif // INCLUDED_COM_SUN_STAR_AWT_DEVICEINFO_HPP

Generated by: LCOV version 1.10