LibreOffice Module toolkit (master) 1
grideventforwarder.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_TOOLKIT_SOURCE_CONTROLS_GRID_GRIDEVENTFORWARDER_HXX
21#define INCLUDED_TOOLKIT_SOURCE_CONTROLS_GRID_GRIDEVENTFORWARDER_HXX
22
23#include <com/sun/star/awt/grid/XGridDataListener.hpp>
24#include <com/sun/star/container/XContainerListener.hpp>
25
27
28
29namespace toolkit
30{
31
32
33 class UnoGridControl;
34
35
36 //= GridEventForwarder
37
38 typedef ::cppu::ImplHelper2 < css::awt::grid::XGridDataListener
39 , css::container::XContainerListener
41
43 {
44 public:
45 explicit GridEventForwarder( UnoGridControl& i_parent );
46 virtual ~GridEventForwarder();
47
48 public:
49 // XInterface
50 virtual void SAL_CALL acquire() noexcept override;
51 virtual void SAL_CALL release() noexcept override;
52
53 // XGridDataListener
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;
58
59 // XContainerListener
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;
63
64 // XEventListener
65 virtual void SAL_CALL disposing( const css::lang::EventObject& i_event ) override;
66
67 private:
69 };
70
71
72} // namespace toolkit
73
74
75#endif // INCLUDED_TOOLKIT_SOURCE_CONTROLS_GRID_GRIDEVENTFORWARDER_HXX
76
77/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL release() noexcept override
virtual void SAL_CALL dataChanged(const css::awt::grid::GridDataEvent &Event) override
GridEventForwarder(UnoGridControl &i_parent)
virtual void SAL_CALL rowHeadingChanged(const css::awt::grid::GridDataEvent &Event) override
virtual void SAL_CALL disposing(const css::lang::EventObject &i_event) override
virtual void SAL_CALL elementReplaced(const css::container::ContainerEvent &Event) override
virtual void SAL_CALL elementInserted(const css::container::ContainerEvent &Event) override
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL rowsRemoved(const css::awt::grid::GridDataEvent &Event) override
virtual void SAL_CALL elementRemoved(const css::container::ContainerEvent &Event) override
virtual void SAL_CALL rowsInserted(const css::awt::grid::GridDataEvent &Event) override
::cppu::ImplHelper2< css::awt::grid::XGridDataListener, css::container::XContainerListener > GridEventForwarder_Base