LCOV - code coverage report
Current view: top level - awt - WindowDescriptor.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 10 10 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_AWT_WINDOWDESCRIPTOR_HPP
       2             : #define INCLUDED_COM_SUN_STAR_AWT_WINDOWDESCRIPTOR_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/awt/WindowDescriptor.hdl"
       7             : 
       8             : #include "com/sun/star/awt/Rectangle.hpp"
       9             : #include "com/sun/star/awt/WindowClass.hpp"
      10             : #include "com/sun/star/awt/XWindowPeer.hpp"
      11             : #include "com/sun/star/uno/Reference.hxx"
      12             : #include "com/sun/star/uno/Type.hxx"
      13             : #include "cppu/unotype.hxx"
      14             : #include "rtl/ustring.hxx"
      15             : #include "sal/types.h"
      16             : #include "typelib/typeclass.h"
      17             : #include "typelib/typedescription.h"
      18             : 
      19             : namespace com { namespace sun { namespace star { namespace awt {
      20             : 
      21       10300 : inline WindowDescriptor::WindowDescriptor() SAL_THROW(())
      22             :     : Type(css::awt::WindowClass_TOP)
      23             :     , WindowServiceName()
      24             :     , Parent()
      25             :     , ParentIndex(0)
      26             :     , Bounds()
      27       10300 :     , WindowAttributes(0)
      28             : {
      29       10300 : }
      30             : 
      31           1 : inline WindowDescriptor::WindowDescriptor(const css::awt::WindowClass& Type_, const ::rtl::OUString& WindowServiceName_, const ::com::sun::star::uno::Reference< css::awt::XWindowPeer >& Parent_, const ::sal_Int16& ParentIndex_, const css::awt::Rectangle& Bounds_, const ::sal_Int32& WindowAttributes_) SAL_THROW(())
      32             :     : Type(Type_)
      33             :     , WindowServiceName(WindowServiceName_)
      34             :     , Parent(Parent_)
      35             :     , ParentIndex(ParentIndex_)
      36             :     , Bounds(Bounds_)
      37           1 :     , WindowAttributes(WindowAttributes_)
      38             : {
      39           1 : }
      40             : 
      41             : } } } }
      42             : 
      43             : namespace com { namespace sun { namespace star { namespace awt {
      44             : 
      45           1 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::awt::WindowDescriptor const *) {
      46             :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      47             :     static ::typelib_TypeDescriptionReference * the_type = 0;
      48           1 :     if (the_type == 0) {
      49           1 :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.awt.WindowDescriptor");
      50             :     }
      51           1 :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      52             : }
      53             : 
      54             : } } } }
      55             : 
      56             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::awt::WindowDescriptor const *) SAL_THROW(()) {
      57             :     return ::cppu::UnoType< css::awt::WindowDescriptor >::get();
      58             : }
      59             : 
      60             : #endif // INCLUDED_COM_SUN_STAR_AWT_WINDOWDESCRIPTOR_HPP

Generated by: LCOV version 1.10