diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-06-16 12:16:26 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-06-16 12:16:26 +0000 |
commit | 3d29d1a92baac801c2a2e7d76f010e62d2e0d653 (patch) | |
tree | b4842edfba089174addcb8b59d286fb6ab4e782c /reportdesign/java | |
parent | 6da35108df43c50a35d0a4140bf6f7097a98b7eb (diff) |
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
Diffstat (limited to 'reportdesign/java')
-rw-r--r-- | reportdesign/java/com/sun/star/report/pentaho/output/text/TextRawReportProcessor.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/reportdesign/java/com/sun/star/report/pentaho/output/text/TextRawReportProcessor.java b/reportdesign/java/com/sun/star/report/pentaho/output/text/TextRawReportProcessor.java index 712268712c4d..491a85df4ba4 100644 --- a/reportdesign/java/com/sun/star/report/pentaho/output/text/TextRawReportProcessor.java +++ b/reportdesign/java/com/sun/star/report/pentaho/output/text/TextRawReportProcessor.java @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: TextRawReportProcessor.java,v $ - * $Revision: 1.5 $ + * $Revision: 1.6 $ * * This file is part of OpenOffice.org. * @@ -33,7 +33,11 @@ import com.sun.star.report.DataSourceFactory; 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 @@ public class TextRawReportProcessor extends SinglePassReportProcessor 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; + } } + |