1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef TOOLKIT_GRIDEVENTFORWARDER_HXX
21 #define TOOLKIT_GRIDEVENTFORWARDER_HXX
23 #include <com/sun/star/awt/grid/XGridDataListener.hpp>
24 #include <com/sun/star/awt/grid/XGridColumnListener.hpp>
25 #include <com/sun/star/container/XContainerListener.hpp>
27 #include <cppuhelper/implbase2.hxx>
29 //......................................................................................................................
32 //......................................................................................................................
36 //==================================================================================================================
37 //= GridEventForwarder
38 //==================================================================================================================
39 typedef ::cppu::ImplHelper2
< ::com::sun::star::awt::grid::XGridDataListener
40 , ::com::sun::star::container::XContainerListener
41 > GridEventForwarder_Base
;
43 class GridEventForwarder
: public GridEventForwarder_Base
46 GridEventForwarder( UnoGridControl
& i_parent
);
47 virtual ~GridEventForwarder();
51 virtual void SAL_CALL
acquire() throw();
52 virtual void SAL_CALL
release() throw();
55 virtual void SAL_CALL
rowsInserted( const ::com::sun::star::awt::grid::GridDataEvent
& Event
) throw (::com::sun::star::uno::RuntimeException
);
56 virtual void SAL_CALL
rowsRemoved( const ::com::sun::star::awt::grid::GridDataEvent
& Event
) throw (::com::sun::star::uno::RuntimeException
);
57 virtual void SAL_CALL
dataChanged( const ::com::sun::star::awt::grid::GridDataEvent
& Event
) throw (::com::sun::star::uno::RuntimeException
);
58 virtual void SAL_CALL
rowHeadingChanged( const ::com::sun::star::awt::grid::GridDataEvent
& Event
) throw (::com::sun::star::uno::RuntimeException
);
61 virtual void SAL_CALL
elementInserted( const ::com::sun::star::container::ContainerEvent
& Event
) throw (::com::sun::star::uno::RuntimeException
);
62 virtual void SAL_CALL
elementRemoved( const ::com::sun::star::container::ContainerEvent
& Event
) throw (::com::sun::star::uno::RuntimeException
);
63 virtual void SAL_CALL
elementReplaced( const ::com::sun::star::container::ContainerEvent
& Event
) throw (::com::sun::star::uno::RuntimeException
);
66 virtual void SAL_CALL
disposing( const ::com::sun::star::lang::EventObject
& i_event
) throw (::com::sun::star::uno::RuntimeException
);
69 UnoGridControl
& m_parent
;
72 //......................................................................................................................
73 } // namespace toolkit
74 //......................................................................................................................
76 #endif // TOOLKIT_GRIDEVENTFORWARDER_HXX
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */