xref: /aoo4110/main/svx/source/inc/datalistener.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 #ifndef _SVX_DATALISTENER_HXX
24 #define _SVX_DATALISTENER_HXX
25 
26 #include <cppuhelper/implbase3.hxx>
27 #include <com/sun/star/container/XContainerListener.hpp>
28 #include <com/sun/star/frame/XFrameActionListener.hpp>
29 #include <com/sun/star/xml/dom/events/XEventListener.hpp>
30 
31 //............................................................................
32 namespace svxform
33 {
34 //............................................................................
35 
36     class DataNavigatorWindow;
37 
38     typedef cppu::WeakImplHelper3<
39         com::sun::star::container::XContainerListener,
40         com::sun::star::frame::XFrameActionListener,
41         com::sun::star::xml::dom::events::XEventListener > DataListener_t;
42 
43     class DataListener : public DataListener_t
44     {
45     private:
46         DataNavigatorWindow*        m_pNaviWin;
47 
48     public:
49         DataListener( DataNavigatorWindow* pNaviWin );
50 
51     protected:
52         ~DataListener();
53 
54     public:
55         // XContainerListener
56         virtual void SAL_CALL elementInserted( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
57         virtual void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
58         virtual void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
59 
60         // XFrameActionListener
61         virtual void SAL_CALL frameAction( const ::com::sun::star::frame::FrameActionEvent& Action ) throw (::com::sun::star::uno::RuntimeException);
62 
63         // xml::dom::events::XEventListener
64         virtual void SAL_CALL handleEvent( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::events::XEvent >& evt ) throw (::com::sun::star::uno::RuntimeException);
65 
66         // lang::XEventListener
67         virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
68     };
69 
70 //............................................................................
71 }   // namespace svxform
72 //............................................................................
73 
74 #endif // #ifndef _SVX_DATALISTENER_HXX
75 
76