|
|
@ -1,26 +1,21 @@ |
|
|
|
package com.fr.design.actions.replace.utils; |
|
|
|
package com.fr.design.actions.replace.utils; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.Formula; |
|
|
|
import com.fr.base.Formula; |
|
|
|
import com.fr.base.chart.chartdata.TopDefinitionProvider; |
|
|
|
|
|
|
|
import com.fr.chart.chartattr.Chart; |
|
|
|
|
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
import com.fr.chart.chartdata.TableDataDefinition; |
|
|
|
|
|
|
|
import com.fr.chartx.attr.ChartProvider; |
|
|
|
|
|
|
|
import com.fr.data.TableReplacementEntity; |
|
|
|
import com.fr.data.TableReplacementEntity; |
|
|
|
import com.fr.design.actions.replace.action.content.cell.SearchCellAction; |
|
|
|
import com.fr.design.actions.replace.action.content.cell.SearchCellAction; |
|
|
|
import com.fr.design.actions.replace.action.content.formula.SearchFormulaManager; |
|
|
|
import com.fr.design.actions.replace.action.content.formula.SearchFormulaManager; |
|
|
|
import com.fr.design.actions.replace.action.content.formula.cell.SearchCellFormulaAction; |
|
|
|
import com.fr.design.actions.replace.action.content.formula.cell.SearchCellFormulaAction; |
|
|
|
import com.fr.design.actions.replace.action.content.formula.chart.SearchChartCollectionFormulaAction; |
|
|
|
import com.fr.design.actions.replace.action.content.formula.chart.SearchChartCollectionFormulaAction; |
|
|
|
import com.fr.design.actions.replace.action.content.formula.widget.SearchWidgetFormulaAction; |
|
|
|
import com.fr.design.actions.replace.action.content.formula.widget.SearchWidgetFormulaAction; |
|
|
|
import com.fr.design.actions.replace.action.content.tabledata.TableDataFormulaUtils; |
|
|
|
|
|
|
|
import com.fr.design.actions.replace.action.content.tabledata.TableDataFormulaType; |
|
|
|
import com.fr.design.actions.replace.action.content.tabledata.TableDataFormulaType; |
|
|
|
|
|
|
|
import com.fr.design.actions.replace.action.content.tabledata.TableDataFormulaUtils; |
|
|
|
import com.fr.design.actions.replace.action.content.widget.SearchWidgetAction; |
|
|
|
import com.fr.design.actions.replace.action.content.widget.SearchWidgetAction; |
|
|
|
import com.fr.design.actions.replace.info.CellInfo; |
|
|
|
import com.fr.design.actions.replace.info.CellInfo; |
|
|
|
import com.fr.design.actions.replace.info.FormulaInfo; |
|
|
|
import com.fr.design.actions.replace.info.FormulaInfo; |
|
|
|
import com.fr.design.actions.replace.info.WidgetInfo; |
|
|
|
import com.fr.design.actions.replace.info.WidgetInfo; |
|
|
|
import com.fr.design.actions.replace.info.base.ITContent; |
|
|
|
import com.fr.design.actions.replace.info.base.ITContent; |
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
import com.fr.extended.chart.ChartTableDataDefinitionReplacer; |
|
|
|
|
|
|
|
import com.fr.form.FormElementCaseProvider; |
|
|
|
import com.fr.form.FormElementCaseProvider; |
|
|
|
import com.fr.form.ui.ElementCaseEditor; |
|
|
|
import com.fr.form.ui.ElementCaseEditor; |
|
|
|
import com.fr.main.impl.WorkBook; |
|
|
|
import com.fr.main.impl.WorkBook; |
|
|
@ -30,7 +25,6 @@ import com.fr.report.utils.ElementCaseHelper; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
@ -181,7 +175,7 @@ public class ReplaceUtils { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void replaceChart(ChartCollection chartCollection, List<TableReplacementEntity> entities) { |
|
|
|
public static void replaceChart(ChartCollection chartCollection, List<TableReplacementEntity> entities) { |
|
|
|
// 非公式部分
|
|
|
|
// 非公式部分
|
|
|
|
chartCollection.replaceTableData(entities); |
|
|
|
chartCollection.replace(entities); |
|
|
|
// 公式部分
|
|
|
|
// 公式部分
|
|
|
|
List<FormulaInfo> formulaInfos = new ArrayList<>(); |
|
|
|
List<FormulaInfo> formulaInfos = new ArrayList<>(); |
|
|
|
SearchChartCollectionFormulaAction.getInstance().searchChartCollectionFormula(formulaInfos, new ITContent(), chartCollection); |
|
|
|
SearchChartCollectionFormulaAction.getInstance().searchChartCollectionFormula(formulaInfos, new ITContent(), chartCollection); |
|
|
|