1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_form_runtime_XFilterControllerListener_idl__
25#define __com_sun_star_form_runtime_XFilterControllerListener_idl__
26
27#include <com/sun/star/lang/XEventListener.idl>
28#include <com/sun/star/form/runtime/FilterEvent.idl>
29
30//=============================================================================
31
32module com { module sun { module star { module form { module runtime {
33
34//=============================================================================
35
36/** is implemented by components listening for events fired by an <type>XFilterController</type>.
37
38    @since OpenOffice 3.3
39*/
40interface XFilterControllerListener : ::com::sun::star::lang::XEventListener
41{
42    /** is fired when a single <em>predicate expression</em> of the filter represented by the filter
43        controller changed.
44
45        <p><member>FilterEvent::DisjunctiveTerm</member> is the index of the <em>disjunctive term</em> in which the
46        expression changed. This usually equals <member>XFilterController::ActiveTerm</member>.</p>
47
48        <p><member>FilterEvent::FilterComponent</member> denotes the index of the filter component whose
49        <em>predicate expression</em> changed.</p>
50
51        <p><member>FilterEvent::PredicateExpression</member> is the new <em>predicate expressions</em>.</p>
52    */
53    void    predicateExpressionChanged( [in] FilterEvent _Event );
54
55    /** is fired when a <em>disjunctive term</em> was removed from the filter of the filter controller.
56
57        <p><member>FilterEvent::DisjunctiveTerm</member> is the index of the <em>disjunctive term</em> which was
58        removed.</p>
59
60        <p><member>FilterEvent::FilterComponent</member> and <member>FilterEvent::PredicateExpression</member> are not
61        used for this event type.</p>
62    */
63    void    disjunctiveTermRemoved( [in] FilterEvent _Event );
64
65    /** is fired when a <em>disjunctive term</em> was added to the filter of the filter controller.
66
67        <p><member>FilterEvent::DisjunctiveTerm</member> is the index of the <em>disjunctive term</em> which was
68        added.</p>
69
70        <p><member>FilterEvent::FilterComponent</member> and <member>FilterEvent::PredicateExpression</member> are not
71        used for this event type.</p>
72    */
73    void    disjunctiveTermAdded( [in] FilterEvent _Event );
74};
75
76//=============================================================================
77
78}; }; }; }; };
79
80//=============================================================================
81
82#endif
83