Branch data 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 : 145 : inline SearchOptions::SearchOptions() SAL_THROW(())
20 : : : algorithmType(::com::sun::star::util::SearchAlgorithms_ABSOLUTE)
21 : : , searchFlag(0)
22 : : , searchString()
23 : : , replaceString()
24 : : , Locale()
25 : : , changedChars(0)
26 : : , deletedChars(0)
27 : : , insertedChars(0)
28 : 145 : , transliterateFlags(0)
29 : : {
30 : 145 : }
31 : :
32 : 108 : inline SearchOptions::SearchOptions(const ::com::sun::star::util::SearchAlgorithms& algorithmType_, const ::sal_Int32& searchFlag_, const ::rtl::OUString& searchString_, const ::rtl::OUString& replaceString_, const ::com::sun::star::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 : 108 : , transliterateFlags(transliterateFlags_)
42 : : {
43 : 108 : }
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 ::com::sun::star::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 ::com::sun::star::util::SearchOptions const *) SAL_THROW(()) {
61 : : return ::cppu::UnoType< ::com::sun::star::util::SearchOptions >::get();
62 : : }
63 : :
64 : : #endif // INCLUDED_COM_SUN_STAR_UTIL_SEARCHOPTIONS_HPP
|