Impress Remote 1.0.5, tag sdremote-1.0.5
[LibreOffice.git] / toolkit / source / controls / grid / grideventforwarder.hxx
blob87a0efad4d25876179d6e8b1a02bf3a8a2a7427a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 //......................................................................................................................
30 namespace toolkit
32 //......................................................................................................................
34 class UnoGridControl;
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
45 public:
46 GridEventForwarder( UnoGridControl& i_parent );
47 virtual ~GridEventForwarder();
49 public:
50 // XInterface
51 virtual void SAL_CALL acquire() throw();
52 virtual void SAL_CALL release() throw();
54 // XGridDataListener
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);
60 // XContainerListener
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);
65 // XEventListener
66 virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& i_event ) throw (::com::sun::star::uno::RuntimeException);
68 private:
69 UnoGridControl& m_parent;
72 //......................................................................................................................
73 } // namespace toolkit
74 //......................................................................................................................
76 #endif // TOOLKIT_GRIDEVENTFORWARDER_HXX
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */