|
|
@ -2,6 +2,7 @@ package com.fr.design.mainframe; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import com.fr.base.DynamicUnitList; |
|
|
|
import com.fr.base.DynamicUnitList; |
|
|
|
|
|
|
|
import com.fr.form.ui.NameBackground; |
|
|
|
import com.fr.base.Parameter; |
|
|
|
import com.fr.base.Parameter; |
|
|
|
import com.fr.base.ScreenResolution; |
|
|
|
import com.fr.base.ScreenResolution; |
|
|
|
import com.fr.base.extension.FileExtension; |
|
|
|
import com.fr.base.extension.FileExtension; |
|
|
@ -93,6 +94,8 @@ import com.fr.report.cell.cellattr.CellImage; |
|
|
|
import com.fr.report.cell.painter.CellImagePainter; |
|
|
|
import com.fr.report.cell.painter.CellImagePainter; |
|
|
|
import com.fr.report.elementcase.TemplateElementCase; |
|
|
|
import com.fr.report.elementcase.TemplateElementCase; |
|
|
|
import com.fr.report.poly.PolyWorkSheet; |
|
|
|
import com.fr.report.poly.PolyWorkSheet; |
|
|
|
|
|
|
|
import com.fr.report.report.Report; |
|
|
|
|
|
|
|
import com.fr.report.stable.ReportSettings; |
|
|
|
import com.fr.report.worksheet.WorkSheet; |
|
|
|
import com.fr.report.worksheet.WorkSheet; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.AssistUtils; |
|
|
|
import com.fr.stable.AssistUtils; |
|
|
@ -135,9 +138,21 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
|
|
|
|
|
|
|
|
public JWorkBook() { |
|
|
|
public JWorkBook() { |
|
|
|
super(new WorkBook(new WorkSheet()), DEFAULT_WB_FILE_PREFIX); |
|
|
|
super(new WorkBook(new WorkSheet()), DEFAULT_WB_FILE_PREFIX); |
|
|
|
|
|
|
|
initPredefinedInfo(); |
|
|
|
populateReportParameterAttr(); |
|
|
|
populateReportParameterAttr(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void initPredefinedInfo() { |
|
|
|
|
|
|
|
WorkBook workBook = this.getTarget(); |
|
|
|
|
|
|
|
for (int i = 0; i < workBook.getReportCount(); i++) { |
|
|
|
|
|
|
|
Report report = workBook.getReport(i); |
|
|
|
|
|
|
|
if (report != null) { |
|
|
|
|
|
|
|
NameBackground initBackground = NameBackground.createPredefinedStyle(StringUtils.EMPTY); |
|
|
|
|
|
|
|
((ReportSettings) report.getReportSettings()).setNameBackground(initBackground); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public JWorkBook(WorkBookX workBookX) { |
|
|
|
public JWorkBook(WorkBookX workBookX) { |
|
|
|
super(new WorkBookAdapter(workBookX), DEFAULT_WBX_FILE_PREFIX); |
|
|
|
super(new WorkBookAdapter(workBookX), DEFAULT_WBX_FILE_PREFIX); |
|
|
|
populateReportParameterAttr(); |
|
|
|
populateReportParameterAttr(); |
|
|
@ -153,9 +168,6 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
populateReportParameterAttr(); |
|
|
|
populateReportParameterAttr(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void resetPreferenceStyle(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void addPane(PropertyItemPaneProvider provider) { |
|
|
|
protected void addPane(PropertyItemPaneProvider provider) { |
|
|
|