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 INCLUDED_TOOLKIT_SOURCE_CONTROLS_GRID_GRIDEVENTFORWARDER_HXX
21 #define INCLUDED_TOOLKIT_SOURCE_CONTROLS_GRID_GRIDEVENTFORWARDER_HXX
23 #include <com/sun/star/awt/grid/XGridDataListener.hpp>
24 #include <com/sun/star/container/XContainerListener.hpp>
26 #include <cppuhelper/implbase2.hxx>
36 //= GridEventForwarder
38 typedef ::cppu::ImplHelper2
< css::awt::grid::XGridDataListener
39 , css::container::XContainerListener
40 > GridEventForwarder_Base
;
42 class GridEventForwarder
: public GridEventForwarder_Base
45 explicit GridEventForwarder( UnoGridControl
& i_parent
);
46 virtual ~GridEventForwarder();
50 virtual void SAL_CALL
acquire() noexcept override
;
51 virtual void SAL_CALL
release() noexcept override
;
54 virtual void SAL_CALL
rowsInserted( const css::awt::grid::GridDataEvent
& Event
) override
;
55 virtual void SAL_CALL
rowsRemoved( const css::awt::grid::GridDataEvent
& Event
) override
;
56 virtual void SAL_CALL
dataChanged( const css::awt::grid::GridDataEvent
& Event
) override
;
57 virtual void SAL_CALL
rowHeadingChanged( const css::awt::grid::GridDataEvent
& Event
) override
;
60 virtual void SAL_CALL
elementInserted( const css::container::ContainerEvent
& Event
) override
;
61 virtual void SAL_CALL
elementRemoved( const css::container::ContainerEvent
& Event
) override
;
62 virtual void SAL_CALL
elementReplaced( const css::container::ContainerEvent
& Event
) override
;
65 virtual void SAL_CALL
disposing( const css::lang::EventObject
& i_event
) override
;
68 UnoGridControl
& m_parent
;
72 } // namespace toolkit
75 #endif // INCLUDED_TOOLKIT_SOURCE_CONTROLS_GRID_GRIDEVENTFORWARDER_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */