LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/offapi/com/sun/star/util - SearchOptions.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 6 10 60.0 %
Date: 2012-12-27 Functions: 2 3 66.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_UTIL_SEARCHOPTIONS_HPP
       2             : #define INCLUDED_COM_SUN_STAR_UTIL_SEARCHOPTIONS_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/util/SearchOptions.hdl"
       7             : 
       8             : #include "com/sun/star/lang/Locale.hpp"
       9             : #include "com/sun/star/util/SearchAlgorithms.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 util {
      18             : 
      19           9 : inline SearchOptions::SearchOptions() SAL_THROW(())
      20             :     : algorithmType(css::util::SearchAlgorithms_ABSOLUTE)
      21             :     , searchFlag(0)
      22             :     , searchString()
      23             :     , replaceString()
      24             :     , Locale()
      25             :     , changedChars(0)
      26             :     , deletedChars(0)
      27             :     , insertedChars(0)
      28           9 :     , transliterateFlags(0)
      29             : {
      30           9 : }
      31             : 
      32           8 : inline SearchOptions::SearchOptions(const css::util::SearchAlgorithms& algorithmType_, const ::sal_Int32& searchFlag_, const ::rtl::OUString& searchString_, const ::rtl::OUString& replaceString_, const css::lang::Locale& Locale_, const ::sal_Int32& changedChars_, const ::sal_Int32& deletedChars_, const ::sal_Int32& insertedChars_, const ::sal_Int32& transliterateFlags_) SAL_THROW(())
      33             :     : algorithmType(algorithmType_)
      34             :     , searchFlag(searchFlag_)
      35             :     , searchString(searchString_)
      36             :     , replaceString(replaceString_)
      37             :     , Locale(Locale_)
      38             :     , changedChars(changedChars_)
      39             :     , deletedChars(deletedChars_)
      40             :     , insertedChars(insertedChars_)
      41           8 :     , transliterateFlags(transliterateFlags_)
      42             : {
      43           8 : }
      44             : 
      45             : } } } }
      46             : 
      47             : namespace com { namespace sun { namespace star { namespace util {
      48             : 
      49           0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::util::SearchOptions const *) {
      50             :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      51             :     static ::typelib_TypeDescriptionReference * the_type = 0;
      52           0 :     if (the_type == 0) {
      53           0 :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.util.SearchOptions");
      54             :     }
      55           0 :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      56             : }
      57             : 
      58             : } } } }
      59             : 
      60             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::util::SearchOptions const *) SAL_THROW(()) {
      61             :     return ::cppu::UnoType< css::util::SearchOptions >::get();
      62             : }
      63             : 
      64             : #endif // INCLUDED_COM_SUN_STAR_UTIL_SEARCHOPTIONS_HPP

Generated by: LCOV version 1.10