diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-06-16 12:15:20 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-06-16 12:15:20 +0000 |
commit | 82b9b4a37d9be09a210461ae630f6ff078198b26 (patch) | |
tree | 7e029e6b75dbf27dc7f44613ce5ff236ddc054f1 /reportdesign/java | |
parent | 51f6ad50775d2f25568cc61d531cc3aeba5acf2e (diff) |
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
Diffstat (limited to 'reportdesign/java')
-rw-r--r-- | reportdesign/java/com/sun/star/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/reportdesign/java/com/sun/star/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java b/reportdesign/java/com/sun/star/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java index 398f627f9e4e..5f3530a2b3a7 100644 --- a/reportdesign/java/com/sun/star/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java +++ b/reportdesign/java/com/sun/star/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SpreadsheetRawReportProcessor.java,v $ - * $Revision: 1.6 $ + * $Revision: 1.7 $ * * This file is part of OpenOffice.org. * @@ -41,6 +41,9 @@ import org.jfree.resourceloader.ResourceManager; 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 @@ public class SpreadsheetRawReportProcessor extends AbstractReportProcessor // 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; + } } |