bump product version to 5.0.4.1
[LibreOffice.git] / reportdesign / source / core / inc / conditionupdater.hxx
blobcbd23f68d8c601593b3233810914aa11a76c69c6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_REPORTDESIGN_SOURCE_CORE_INC_CONDITIONUPDATER_HXX
21 #define INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_CONDITIONUPDATER_HXX
23 #include "conditionalexpression.hxx"
25 #include <com/sun/star/beans/PropertyChangeEvent.hpp>
26 #include <com/sun/star/report/XReportControlModel.hpp>
28 #include <boost/noncopyable.hpp>
31 namespace rptui
36 //= ConditionUpdater
38 class ConditionUpdater : public ::boost::noncopyable
40 public:
41 ConditionUpdater();
42 ~ConditionUpdater();
44 /// notifies the object about the change of a property value, somewhere in the report definition
45 void notifyPropertyChange( const ::com::sun::star::beans::PropertyChangeEvent& _rEvent );
47 private:
48 /// does late initializations, return whether or not successful
49 bool impl_lateInit_nothrow();
51 void impl_adjustFormatConditions_nothrow(
52 const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportControlModel >& _rxRptControlModel,
53 const OUString& _rOldDataSource,
54 const OUString& _rNewDataSource
57 private:
58 ConditionalExpressions m_aConditionalExpressions;
62 } // namespace rptui
65 #endif // INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_CONDITIONUPDATER_HXX
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */