User: rt Date: 2008-06-16 13:15:23+0000 Modified: dba/reportdesign/java/com/sun/star/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java
Log: INTEGRATION: CWS rptchart02 (1.4.4); FILE MERGED 2008/05/22 08:04:53 oj 1.4.4.3: #i86902# impl author and title functions 2008/04/16 06:23:53 oj 1.4.4.2: RESYNC: (1.4-1.5); FILE MERGED 2008/03/12 09:42:52 oj 1.4.4.1: impl chart handling and some code refactoring File Changes: Directory: /dba/reportdesign/java/com/sun/star/report/pentaho/output/spreadsheet/ ================================================================================= File [changed]: SpreadsheetRawReportProcessor.java Url: http://dba.openoffice.org/source/browse/dba/reportdesign/java/com/sun/star/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java?r1=1.6&r2=1.7 Delta lines: +15 -0 -------------------- --- SpreadsheetRawReportProcessor.java 2008-05-05 14:37:17+0000 1.6 +++ SpreadsheetRawReportProcessor.java 2008-06-16 13:15:20+0000 1.7 @@ -41,6 +41,9 @@ import com.sun.star.report.OutputRepository; import com.sun.star.report.InputRepository; import com.sun.star.report.ImageService; +import com.sun.star.report.pentaho.PentahoFormulaContext; +import org.jfree.report.data.ReportContextImpl; +import org.jfree.report.flow.ReportContext; /** * @author Michael D'Amour @@ -104,4 +107,16 @@ // second run: uses table cell data to output a single uniform table processReportRun(job, reportTarget); } + + protected ReportContext createReportContext(final ReportJob job, + final ReportTarget target) + { + final ReportContext context = super.createReportContext(job, target); + if (context instanceof ReportContextImpl) + { + ReportContextImpl impl = (ReportContextImpl) context; + impl.setFormulaContext(new PentahoFormulaContext(impl.getFormulaContext(),job.getConfiguration())); + } + return context; + } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
