Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_SHEET_TABLEFILTERFIELD2_HPP
2 : #define INCLUDED_COM_SUN_STAR_SHEET_TABLEFILTERFIELD2_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/sheet/TableFilterField2.hdl"
7 :
8 : #include "com/sun/star/sheet/FilterConnection.hpp"
9 : #include "com/sun/star/uno/Type.hxx"
10 : #include "cppu/unotype.hxx"
11 : #include "rtl/ustring.hxx"
12 : #include "sal/types.h"
13 : #include "typelib/typeclass.h"
14 : #include "typelib/typedescription.h"
15 :
16 : namespace com { namespace sun { namespace star { namespace sheet {
17 :
18 1 : inline TableFilterField2::TableFilterField2() SAL_THROW(())
19 : : Connection(css::sheet::FilterConnection_AND)
20 : , Field(0)
21 : , Operator(0)
22 : , IsNumeric(false)
23 : , NumericValue(0)
24 1 : , StringValue()
25 : {
26 1 : }
27 :
28 : inline TableFilterField2::TableFilterField2(const css::sheet::FilterConnection& Connection_, const ::sal_Int32& Field_, const ::sal_Int32& Operator_, const ::sal_Bool& IsNumeric_, const double& NumericValue_, const ::rtl::OUString& StringValue_) SAL_THROW(())
29 : : Connection(Connection_)
30 : , Field(Field_)
31 : , Operator(Operator_)
32 : , IsNumeric(IsNumeric_)
33 : , NumericValue(NumericValue_)
34 : , StringValue(StringValue_)
35 : {
36 : }
37 :
38 : } } } }
39 :
40 : namespace com { namespace sun { namespace star { namespace sheet {
41 :
42 2 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::sheet::TableFilterField2 const *) {
43 : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
44 : static ::typelib_TypeDescriptionReference * the_type = 0;
45 2 : if (the_type == 0) {
46 2 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.sheet.TableFilterField2");
47 : }
48 2 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
49 : }
50 :
51 : } } } }
52 :
53 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::sheet::TableFilterField2 const *) SAL_THROW(()) {
54 : return ::cppu::UnoType< css::sheet::TableFilterField2 >::get();
55 : }
56 :
57 : #endif // INCLUDED_COM_SUN_STAR_SHEET_TABLEFILTERFIELD2_HPP
|