Branch data 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 : 20 : class SAL_NO_VTABLE XFilterController : public ::com::sun::star::uno::XInterface
22 : : {
23 : : public:
24 : :
25 : : // Attributes
26 : : virtual ::sal_Int32 SAL_CALL getFilterComponents() throw (::com::sun::star::uno::RuntimeException) = 0;
27 : : virtual ::sal_Int32 SAL_CALL getDisjunctiveTerms() throw (::com::sun::star::uno::RuntimeException) = 0;
28 : : virtual ::sal_Int32 SAL_CALL getActiveTerm() throw (::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual void SAL_CALL setActiveTerm( ::sal_Int32 _activeterm ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
30 : :
31 : : // Methods
32 : : virtual void SAL_CALL addFilterControllerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::form::runtime::XFilterControllerListener >& _Listener ) throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual void SAL_CALL removeFilterControllerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::form::runtime::XFilterControllerListener >& _Listener ) throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual void SAL_CALL setPredicateExpression( ::sal_Int32 _Component, ::sal_Int32 _Term, const ::rtl::OUString& _PredicateExpression ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > SAL_CALL getFilterComponent( ::sal_Int32 _Component ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::rtl::OUString > > SAL_CALL getPredicateExpressions( ) throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual void SAL_CALL removeDisjunctiveTerm( ::sal_Int32 _Term ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual void SAL_CALL appendEmptyDisjunctiveTerm( ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : :
40 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
41 : :
42 : : protected:
43 : 17 : ~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 ::com::sun::star::form::runtime::XFilterController const *);
48 : : } } } } }
49 : :
50 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::form::runtime::XFilterController > *) SAL_THROW(());
51 : :
52 : : #endif
|