From 0ae9523012269ee2d093f35ecbf58da1d7f13f53 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 16 Jul 2015 21:29:20 +0200 Subject: extract the modify listener Change-Id: Ie191e47b009afc5e3d4655d9b83189540e280dca --- .../sidebar/ChartSidebarModifyListener.cxx | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 chart2/source/controller/sidebar/ChartSidebarModifyListener.cxx (limited to 'chart2/source/controller/sidebar/ChartSidebarModifyListener.cxx') diff --git a/chart2/source/controller/sidebar/ChartSidebarModifyListener.cxx b/chart2/source/controller/sidebar/ChartSidebarModifyListener.cxx new file mode 100644 index 000000000000..fdf2dc14a460 --- /dev/null +++ b/chart2/source/controller/sidebar/ChartSidebarModifyListener.cxx @@ -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/. + */ + +#include "ChartSidebarModifyListener.hxx" + +namespace chart { +namespace sidebar { + +ChartSidebarModifyListenerParent::~ChartSidebarModifyListenerParent() +{ +} + +ChartSidebarModifyListener::ChartSidebarModifyListener(ChartSidebarModifyListenerParent* pParent): + mpParent(pParent) +{ +} + +ChartSidebarModifyListener::~ChartSidebarModifyListener() +{ +} + +void ChartSidebarModifyListener::modified(const css::lang::EventObject& /*rEvent*/) + throw (::css::uno::RuntimeException, ::std::exception) +{ + mpParent->updateData(); +} + +void ChartSidebarModifyListener::disposing(const css::lang::EventObject& /*rEvent*/) + throw (::css::uno::RuntimeException, ::std::exception) +{ + mpParent->modelInvalid(); +} + +} } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit