using ::com::sun::star::beans::PropertyChangeEvent; using ::com::sun::star::uno::Reference; using ::com::sun::star::report::XReportControlModel; using ::com::sun::star::uno::UNO_QUERY; using ::com::sun::star::report::XFormatCondition; using ::com::sun::star::uno::UNO_QUERY_THROW; using ::com::sun::star::uno::Exception;
for (constauto& rEntry : m_aConditionalExpressions)
{ if ( !rEntry.second->matchExpression( sFormulaExpression, sOldUnprefixed, sLHS, sRHS ) ) continue;
// the expression matches -> translate it to the new data source of the report control model
sFormulaExpression = rEntry.second->assembleExpression( sNewUnprefixed, sLHS, sRHS );
ReportFormula aFormula(ReportFormula(ReportFormula::Expression, sFormulaExpression));
xFormatCondition->setFormula(aFormula.getCompleteFormula()); break;
}
}
} catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION("reportdesign");
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.