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