1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2/* 3 * This file is part of the LibreOffice project. 4 * 5 * This Source Code Form is subject to the terms of the Mozilla Public 6 * License, v. 2.0. If a copy of the MPL was not distributed with this 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 8 * 9 * This file incorporates work covered by the following license notice: 10 * 11 * Licensed to the Apache Software Foundation (ASF) under one or more 12 * contributor license agreements. See the NOTICE file distributed 13 * with this work for additional information regarding copyright 14 * ownership. The ASF licenses this file to you under the Apache 15 * License, Version 2.0 (the "License"); you may not use this file 16 * except in compliance with the License. You may obtain a copy of 17 * the License at http://www.apache.org/licenses/LICENSE-2.0 . 18 */ 19 20#ifndef __com_sun_star_form_runtime_XFilterControllerListener_idl__ 21#define __com_sun_star_form_runtime_XFilterControllerListener_idl__ 22 23#include <com/sun/star/lang/XEventListener.idl> 24#include <com/sun/star/form/runtime/FilterEvent.idl> 25 26 27module com { module sun { module star { module form { module runtime { 28 29 30/** is implemented by components listening for events fired by an XFilterController. 31 32 @since OOo 3.3 33*/ 34interface XFilterControllerListener : ::com::sun::star::lang::XEventListener 35{ 36 /** is fired when a single <em>predicate expression</em> of the filter represented by the filter 37 controller changed. 38 39 <p>FilterEvent::DisjunctiveTerm is the index of the <em>disjunctive term</em> in which the 40 expression changed. This usually equals XFilterController::ActiveTerm.</p> 41 42 <p>FilterEvent::FilterComponent denotes the index of the filter component whose 43 <em>predicate expression</em> changed.</p> 44 45 <p>FilterEvent::PredicateExpression is the new <em>predicate expressions</em>.</p> 46 */ 47 void predicateExpressionChanged( [in] FilterEvent Event ); 48 49 /** is fired when a <em>disjunctive term</em> was removed from the filter of the filter controller. 50 51 <p>FilterEvent::DisjunctiveTerm is the index of the <em>disjunctive term</em> which was 52 removed.</p> 53 54 <p>FilterEvent::FilterComponent and FilterEvent::PredicateExpression are not 55 used for this event type.</p> 56 */ 57 void disjunctiveTermRemoved( [in] FilterEvent Event ); 58 59 /** is fired when a <em>disjunctive term</em> was added to the filter of the filter controller. 60 61 <p>FilterEvent::DisjunctiveTerm is the index of the <em>disjunctive term</em> which was 62 added.</p> 63 64 <p>FilterEvent::FilterComponent and FilterEvent::PredicateExpression are not 65 used for this event type.</p> 66 */ 67 void disjunctiveTermAdded( [in] FilterEvent Event ); 68}; 69 70 71}; }; }; }; }; 72 73 74#endif 75 76/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 77