Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_FORM_RUNTIME_XFILTERCONTROLLER_HDL
2 : #define INCLUDED_COM_SUN_STAR_FORM_RUNTIME_XFILTERCONTROLLER_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/uno/RuntimeException.hdl"
7 : namespace com { namespace sun { namespace star { namespace awt { class XControl; } } } }
8 : #include "com/sun/star/lang/IndexOutOfBoundsException.hdl"
9 : namespace com { namespace sun { namespace star { namespace form { namespace runtime { class XFilterControllerListener; } } } } }
10 : #include "com/sun/star/uno/XInterface.hdl"
11 : #include "com/sun/star/uno/Reference.h"
12 : #include "com/sun/star/uno/Sequence.h"
13 : #include "cppu/macros.hxx"
14 : #include "rtl/ustring.hxx"
15 : #include "sal/types.h"
16 :
17 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
18 :
19 : namespace com { namespace sun { namespace star { namespace form { namespace runtime {
20 :
21 0 : class SAL_NO_VTABLE XFilterController : public css::uno::XInterface
22 : {
23 : public:
24 :
25 : // Attributes
26 : virtual ::sal_Int32 SAL_CALL getFilterComponents() = 0;
27 : virtual ::sal_Int32 SAL_CALL getDisjunctiveTerms() = 0;
28 : virtual ::sal_Int32 SAL_CALL getActiveTerm() = 0;
29 : virtual void SAL_CALL setActiveTerm( ::sal_Int32 _activeterm ) = 0;
30 :
31 : // Methods
32 : virtual void SAL_CALL addFilterControllerListener( const ::com::sun::star::uno::Reference< css::form::runtime::XFilterControllerListener >& _Listener ) = 0;
33 : virtual void SAL_CALL removeFilterControllerListener( const ::com::sun::star::uno::Reference< css::form::runtime::XFilterControllerListener >& _Listener ) = 0;
34 : virtual void SAL_CALL setPredicateExpression( ::sal_Int32 _Component, ::sal_Int32 _Term, const ::rtl::OUString& _PredicateExpression ) = 0;
35 : virtual ::com::sun::star::uno::Reference< css::awt::XControl > SAL_CALL getFilterComponent( ::sal_Int32 _Component ) = 0;
36 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::rtl::OUString > > SAL_CALL getPredicateExpressions() = 0;
37 : virtual void SAL_CALL removeDisjunctiveTerm( ::sal_Int32 _Term ) = 0;
38 : virtual void SAL_CALL appendEmptyDisjunctiveTerm() = 0;
39 :
40 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
41 :
42 : protected:
43 0 : ~XFilterController() throw () {} // avoid warnings about virtual members and non-virtual dtor
44 : };
45 :
46 :
47 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::form::runtime::XFilterController const *);
48 : } } } } }
49 :
50 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::form::runtime::XFilterController > *) SAL_THROW(());
51 :
52 : #endif
|