User: rt Date: 2008-06-16 13:16:28+0000 Modified: dba/reportdesign/java/com/sun/star/report/pentaho/output/text/TextRawReportProcessor.java
Log: INTEGRATION: CWS rptchart02 (1.3.4); FILE MERGED 2008/05/22 08:04:53 oj 1.3.4.3: #i86902# impl author and title functions 2008/04/16 06:24:05 oj 1.3.4.2: RESYNC: (1.3-1.4); FILE MERGED 2008/03/12 09:42:53 oj 1.3.4.1: impl chart handling and some code refactoring File Changes: Directory: /dba/reportdesign/java/com/sun/star/report/pentaho/output/text/ ========================================================================== File [changed]: TextRawReportProcessor.java Url: http://dba.openoffice.org/source/browse/dba/reportdesign/java/com/sun/star/report/pentaho/output/text/TextRawReportProcessor.java?r1=1.5&r2=1.6 Delta lines: +17 -0 -------------------- --- TextRawReportProcessor.java 2008-05-05 14:46:27+0000 1.5 +++ TextRawReportProcessor.java 2008-06-16 13:16:26+0000 1.6 @@ -33,7 +33,11 @@ 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 com.sun.star.report.pentaho.PentahoReportJob; import org.jfree.report.ReportProcessingException; +import org.jfree.report.data.ReportContextImpl; +import org.jfree.report.flow.ReportContext; import org.jfree.report.flow.ReportJob; import org.jfree.report.flow.ReportStructureRoot; import org.jfree.report.flow.ReportTarget; @@ -97,4 +101,17 @@ return new TextRawReportTarget(job, resourceManager, report.getBaseResource(), inputRepository, outputRepository, targetName, imageService, dataSourceFactory); } + + 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]
