You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.5 KiB
45 lines
1.5 KiB
/* |
|
* Copyright (C), 2018-2021 |
|
* Project: starter |
|
* FileName: StreamExcel2007Exporter4LayerPlus |
|
* Author: Louis |
|
* Date: 2021/12/3 11:55 |
|
*/ |
|
package com.fr.plugin.ibgq.export; |
|
|
|
import com.fr.io.exporter.poi.wrapper.POIWorkbookAction; |
|
import com.fr.main.workbook.ResultWorkBook; |
|
import com.fr.page.PaperSettingProvider; |
|
import com.fr.plugin.ibgq.excel.exporter.StreamExcel2007Exporter4Layer; |
|
import com.fr.plugin.ibgq.utils.ExcelHandler; |
|
import com.fr.report.report.Report; |
|
|
|
import java.io.OutputStream; |
|
import java.util.List; |
|
|
|
/** |
|
* <Function Description><br> |
|
* <StreamExcel2007Exporter4LayerPlus> |
|
* |
|
* @author fr.open |
|
* @since 1.0.0 |
|
*/ |
|
public class StreamExcel2007Exporter4LayerPlus<T> extends StreamExcel2007Exporter4Layer<T> { |
|
private ResultWorkBook resultWorkBook; |
|
|
|
public StreamExcel2007Exporter4LayerPlus(List<PaperSettingProvider> paperSettingProviders, boolean b) { |
|
super(paperSettingProviders, b); |
|
} |
|
|
|
@Override |
|
public void export(OutputStream outputStream, ResultWorkBook resultWorkBook, boolean b) throws Exception { |
|
this.resultWorkBook = resultWorkBook; |
|
super.export(outputStream, resultWorkBook, b); |
|
} |
|
|
|
@Override |
|
protected void exportBook(ResultWorkBook resultWorkBook, POIWorkbookAction poiWorkbookAction, List list, List<String> list1, List<Report> reports, boolean b) throws Exception { |
|
super.exportBook(resultWorkBook, poiWorkbookAction, list, list1, reports, b); |
|
ExcelHandler.setCustomProperties(this.resultWorkBook, poiWorkbookAction); |
|
} |
|
} |