diff options
Diffstat (limited to 'chart2/source/controller/sidebar/ChartSidebarModifyListener.hxx')
-rw-r--r-- | chart2/source/controller/sidebar/ChartSidebarModifyListener.hxx | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/chart2/source/controller/sidebar/ChartSidebarModifyListener.hxx b/chart2/source/controller/sidebar/ChartSidebarModifyListener.hxx new file mode 100644 index 000000000..afcbbdab5 --- /dev/null +++ b/chart2/source/controller/sidebar/ChartSidebarModifyListener.hxx @@ -0,0 +1,42 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#pragma once + +#include <com/sun/star/util/XModifyListener.hpp> +#include <cppuhelper/implbase.hxx> + +namespace chart::sidebar +{ +class ChartSidebarModifyListenerParent +{ +public: + virtual ~ChartSidebarModifyListenerParent(); + + virtual void updateData() = 0; + + virtual void modelInvalid() = 0; +}; + +class ChartSidebarModifyListener : public cppu::WeakImplHelper<css::util::XModifyListener> +{ +public: + explicit ChartSidebarModifyListener(ChartSidebarModifyListenerParent* pParent); + virtual ~ChartSidebarModifyListener() override; + + virtual void SAL_CALL modified(const css::lang::EventObject& rEvent) override; + + virtual void SAL_CALL disposing(const css::lang::EventObject& rEvent) override; + +private: + ChartSidebarModifyListenerParent* mpParent; +}; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |