xref: /aoo4110/main/sfx2/source/bastyp/fltlst.hxx (revision b1cdbd2c)
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 _SFX_FLTLST_HXX
25 #define _SFX_FLTLST_HXX
26 
27 //*****************************************************************************************************************
28 //  includes
29 //*****************************************************************************************************************
30 #include <sfx2/fcontnr.hxx>
31 #include <cppuhelper/implbase1.hxx>
32 #include <rtl/ustring.hxx>
33 #include <com/sun/star/uno/Reference.hxx>
34 #include <com/sun/star/util/XRefreshable.hpp>
35 #include <com/sun/star/util/XRefreshListener.hpp>
36 #include <com/sun/star/document/XEventListener.hpp>
37 #include <com/sun/star/lang/EventObject.hpp>
38 #include <com/sun/star/uno/RuntimeException.hpp>
39 
40 //*****************************************************************************************************************
41 //  declarations
42 //*****************************************************************************************************************
43 class SfxFilterListener : public ::cppu::WeakImplHelper1< ::com::sun::star::util::XRefreshListener >
44 {
45     // member
46     private:
47         ::com::sun::star::uno::Reference< ::com::sun::star::util::XRefreshable >  m_xFilterCache;
48 
49     // c++ interface
50     public:
51               SfxFilterListener();
52              ~SfxFilterListener();
53 
54     // uno interface
55     public:
56         // XRefreshListener
57         virtual void SAL_CALL refreshed( const ::com::sun::star::lang::EventObject& aSource ) throw( ::com::sun::star::uno::RuntimeException );
58         // XEventListener
59         virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aSource ) throw( ::com::sun::star::uno::RuntimeException );
60 
61 };  // SfxFilterListener
62 
63 #endif // _SFX_FLTLST_HXX
64