return false;
}
protected LayoutController delegateContentGeneration(final ReportTarget target) throws ReportProcessingException, ReportDataFactoryException, DataSourceException
{
final ObjectOleElement element = (ObjectOleElement) getNode();
final String url = element.getUrl();
if (url != null)
{
final AttributeMap ole = new AttributeMap();
ole.setAttribute(JFreeReportInfo.REPORT_NAMESPACE, Element.NAMESPACE_ATTRIBUTE, JFreeReportInfo.REPORT_NAMESPACE);
ole.setAttribute(JFreeReportInfo.REPORT_NAMESPACE, Element.TYPE_ATTRIBUTE, OfficeToken.OBJECT_OLE);
ole.setAttribute(JFreeReportInfo.REPORT_NAMESPACE, "href", url);
ole.setAttribute(JFreeReportInfo.REPORT_NAMESPACE, "class-id", element.getClassid());
final List masterfields = element.getMasterfields();
final List values = new ArrayList();
final DataRow view = getFlowController().getMasterRow().getGlobalView();
for (final Iterator iter = masterfields.iterator(); iter.hasNext();)
{
final String master = (String) iter.next();
try
{
final DataFlags flags = view.getFlags(master);
if (flags != null)
{
values.add(flags.getValue());
}
}
catch (DataSourceException e)
{
// ignore .. assume that the reference has not changed.
}
}
ole.setAttribute(JFreeReportInfo.REPORT_NAMESPACE, SDBCReportDataFactory.MASTER_COLUMNS, masterfields);
ole.setAttribute(JFreeReportInfo.REPORT_NAMESPACE, SDBCReportDataFactory.MASTER_VALUES, values);
ole.setAttribute(JFreeReportInfo.REPORT_NAMESPACE, SDBCReportDataFactory.DETAIL_COLUMNS, element.getDetailfields());
target.startElement(ole);
target.endElement(ole);
}