1*9ee13d13SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*9ee13d13SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*9ee13d13SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*9ee13d13SAndrew Rist * distributed with this work for additional information 6*9ee13d13SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*9ee13d13SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*9ee13d13SAndrew Rist * "License"); you may not use this file except in compliance 9*9ee13d13SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*9ee13d13SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*9ee13d13SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*9ee13d13SAndrew Rist * software distributed under the License is distributed on an 15*9ee13d13SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*9ee13d13SAndrew Rist * KIND, either express or implied. See the License for the 17*9ee13d13SAndrew Rist * specific language governing permissions and limitations 18*9ee13d13SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*9ee13d13SAndrew Rist *************************************************************/ 21*9ee13d13SAndrew Rist 22*9ee13d13SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef CONDITIONUPDATER_HXX 25cdf0e10cSrcweir #define CONDITIONUPDATER_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "conditionalexpression.hxx" 28cdf0e10cSrcweir 29cdf0e10cSrcweir /** === begin UNO includes === **/ 30cdf0e10cSrcweir #include <com/sun/star/beans/PropertyChangeEvent.hpp> 31cdf0e10cSrcweir #include <com/sun/star/report/XReportControlModel.hpp> 32cdf0e10cSrcweir /** === end UNO includes === **/ 33cdf0e10cSrcweir 34cdf0e10cSrcweir #include <boost/noncopyable.hpp> 35cdf0e10cSrcweir 36cdf0e10cSrcweir //........................................................................ 37cdf0e10cSrcweir namespace rptui 38cdf0e10cSrcweir { 39cdf0e10cSrcweir //........................................................................ 40cdf0e10cSrcweir 41cdf0e10cSrcweir //==================================================================== 42cdf0e10cSrcweir //= ConditionUpdater 43cdf0e10cSrcweir //==================================================================== 44cdf0e10cSrcweir class ConditionUpdater : public ::boost::noncopyable 45cdf0e10cSrcweir { 46cdf0e10cSrcweir public: 47cdf0e10cSrcweir ConditionUpdater(); 48cdf0e10cSrcweir ~ConditionUpdater(); 49cdf0e10cSrcweir 50cdf0e10cSrcweir /// notifies the object about the change of a property value, somewhere in the report definition 51cdf0e10cSrcweir void notifyPropertyChange( const ::com::sun::star::beans::PropertyChangeEvent& _rEvent ); 52cdf0e10cSrcweir 53cdf0e10cSrcweir private: 54cdf0e10cSrcweir /// does late initializations, return whether or not successful 55cdf0e10cSrcweir bool impl_lateInit_nothrow(); 56cdf0e10cSrcweir 57cdf0e10cSrcweir void impl_adjustFormatConditions_nothrow( 58cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportControlModel >& _rxRptControlModel, 59cdf0e10cSrcweir const ::rtl::OUString& _rOldDataSource, 60cdf0e10cSrcweir const ::rtl::OUString& _rNewDataSource 61cdf0e10cSrcweir ); 62cdf0e10cSrcweir 63cdf0e10cSrcweir private: 64cdf0e10cSrcweir ConditionalExpressions m_aConditionalExpressions; 65cdf0e10cSrcweir }; 66cdf0e10cSrcweir 67cdf0e10cSrcweir //........................................................................ 68cdf0e10cSrcweir } // namespace rptui 69cdf0e10cSrcweir //........................................................................ 70cdf0e10cSrcweir 71cdf0e10cSrcweir #endif // CONDITIONUPDATER_HXX 72