22#include <com/sun/star/report/XFormatCondition.hpp>
31 using ::com::sun::star::beans::PropertyChangeEvent;
32 using ::com::sun::star::uno::Reference;
33 using ::com::sun::star::report::XReportControlModel;
34 using ::com::sun::star::uno::UNO_QUERY;
35 using ::com::sun::star::report::XFormatCondition;
36 using ::com::sun::star::uno::UNO_QUERY_THROW;
37 using ::com::sun::star::uno::Exception;
58 if ( xRptControlModel.is() && _rEvent.PropertyName ==
"DataField" )
60 OUString sOldDataSource, sNewDataSource;
61 OSL_VERIFY( _rEvent.OldValue >>= sOldDataSource );
62 OSL_VERIFY( _rEvent.NewValue >>= sNewDataSource );
78 const OUString& _rOldDataSource,
const OUString& _rNewDataSource )
87 sal_Int32
nCount( _rxRptControlModel->getCount() );
89 OUString sFormulaExpression, sLHS, sRHS;
92 xFormatCondition.set( _rxRptControlModel->getByIndex(
i ), UNO_QUERY_THROW );
97 if ( !rEntry.second->matchExpression( sFormulaExpression, sOldUnprefixed, sLHS, sRHS ) )
101 sFormulaExpression = rEntry.second->assembleExpression( sNewUnprefixed, sLHS, sRHS );
void impl_lateInit_nothrow()
does late initializations, return whether or not successful
ConditionalExpressions m_aConditionalExpressions
void impl_adjustFormatConditions_nothrow(const css::uno::Reference< css::report::XReportControlModel > &_rxRptControlModel, const OUString &_rOldDataSource, const OUString &_rNewDataSource)
void notifyPropertyChange(const css::beans::PropertyChangeEvent &_rEvent)
notifies the object about the change of a property value, somewhere in the report definition
static size_t getKnownConditionalExpressions(ConditionalExpressions &_out_rCondExp)
fills the given map with all ConditionalExpressions which we know
#define DBG_UNHANDLED_EXCEPTION(...)