1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: datalistener.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_DATALISTENER_HXX
31 #define _SVX_DATALISTENER_HXX
33 #include <cppuhelper/implbase3.hxx>
34 #include <com/sun/star/container/XContainerListener.hpp>
35 #include <com/sun/star/frame/XFrameActionListener.hpp>
36 #include <com/sun/star/xml/dom/events/XEventListener.hpp>
38 //............................................................................
41 //............................................................................
43 class DataNavigatorWindow
;
45 typedef cppu::WeakImplHelper3
<
46 com::sun::star::container::XContainerListener
,
47 com::sun::star::frame::XFrameActionListener
,
48 com::sun::star::xml::dom::events::XEventListener
> DataListener_t
;
50 class DataListener
: public DataListener_t
53 DataNavigatorWindow
* m_pNaviWin
;
56 DataListener( DataNavigatorWindow
* pNaviWin
);
63 virtual void SAL_CALL
elementInserted( const ::com::sun::star::container::ContainerEvent
& Event
) throw (::com::sun::star::uno::RuntimeException
);
64 virtual void SAL_CALL
elementRemoved( const ::com::sun::star::container::ContainerEvent
& Event
) throw (::com::sun::star::uno::RuntimeException
);
65 virtual void SAL_CALL
elementReplaced( const ::com::sun::star::container::ContainerEvent
& Event
) throw (::com::sun::star::uno::RuntimeException
);
67 // XFrameActionListener
68 virtual void SAL_CALL
frameAction( const ::com::sun::star::frame::FrameActionEvent
& Action
) throw (::com::sun::star::uno::RuntimeException
);
70 // xml::dom::events::XEventListener
71 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
);
73 // lang::XEventListener
74 virtual void SAL_CALL
disposing( const ::com::sun::star::lang::EventObject
& Source
) throw (::com::sun::star::uno::RuntimeException
);
77 //............................................................................
78 } // namespace svxform
79 //............................................................................
81 #endif // #ifndef _SVX_DATALISTENER_HXX