diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-16 21:29:20 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-16 22:19:53 +0200 |
commit | 0ae9523012269ee2d093f35ecbf58da1d7f13f53 (patch) | |
tree | e01f6cc40757b05203a42706410156318f52cde3 /chart2/source/controller/sidebar/ChartSidebarModifyListener.cxx | |
parent | handle trendline checkbox in series panel (diff) | |
download | core-0ae9523012269ee2d093f35ecbf58da1d7f13f53.tar.gz core-0ae9523012269ee2d093f35ecbf58da1d7f13f53.zip |
extract the modify listener
Change-Id: Ie191e47b009afc5e3d4655d9b83189540e280dca
Diffstat (limited to 'chart2/source/controller/sidebar/ChartSidebarModifyListener.cxx')
-rw-r--r-- | chart2/source/controller/sidebar/ChartSidebarModifyListener.cxx | 42 |
1 files changed, 42 insertions, 0 deletions
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: */ |