From 999aab41c60b94a04b231c70d758a5f9f09d1be0 Mon Sep 17 00:00:00 2001 From: "Bruce.Deng" Date: Wed, 16 Aug 2023 15:22:34 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-103247=20=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8E=EF=BC=8C=E6=9C=AA=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=8E=9F=E6=9D=A5=E7=9A=84=E3=80=90=E7=89=B9=E6=AE=8A=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E5=AF=BC=E5=87=BA=E4=BC=98=E5=8C=96=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/report/ExportUniversalPane.java | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/designer-realize/src/main/java/com/fr/design/report/ExportUniversalPane.java b/designer-realize/src/main/java/com/fr/design/report/ExportUniversalPane.java index 4da3b89e81..9c07bd157b 100644 --- a/designer-realize/src/main/java/com/fr/design/report/ExportUniversalPane.java +++ b/designer-realize/src/main/java/com/fr/design/report/ExportUniversalPane.java @@ -1,25 +1,17 @@ package com.fr.design.report; import com.fr.base.CustomConfig; -import com.fr.design.constants.UIConstants; import com.fr.design.dialog.BasicPane; import com.fr.design.gui.icheckbox.UICheckBox; -import com.fr.design.gui.ilable.ActionLabel; -import com.fr.design.gui.ilable.UILabel; import com.fr.design.i18n.LocaleLinkProvider; import com.fr.design.i18n.Toolkit; import com.fr.design.layout.FRGUIPaneFactory; -import com.fr.design.utils.BrowseUtils; import com.fr.io.attr.ReportExportAttr; import com.fr.transaction.Configurations; import com.fr.transaction.WorkerFacade; import javax.swing.BorderFactory; import javax.swing.JPanel; -import java.awt.BorderLayout; -import java.awt.Color; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; /** * 通用 @@ -42,7 +34,6 @@ public class ExportUniversalPane extends BasicPane { private static final String HELP_URL = LocaleLinkProvider.getInstance().getLink(PROPS_LINK_KEY, PROPS_LINK_KEY_DEFAULT); - private UICheckBox specialCharacterExport; // 密码支持公式 private UICheckBox passwordSupportFormula; @@ -51,25 +42,6 @@ public class ExportUniversalPane extends BasicPane { this.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); JPanel outerNorthPane = FRGUIPaneFactory.createTitledBorderPane(Toolkit.i18nText("Fine-Design_Report_Universal_Export_Config")); JPanel northPane = FRGUIPaneFactory.createY_AXISBoxInnerContainer_M_Pane(); - JPanel specialCharacterExportPane = FRGUIPaneFactory.createNormalFlowInnerContainer_M_Pane(); - specialCharacterExport = new UICheckBox(Toolkit.i18nText("Fine-Design_Report_Universal_Export_Special_Character")); - specialCharacterExport.setSelected(true); - specialCharacterExportPane.add(specialCharacterExport); - northPane.add(specialCharacterExportPane); - JPanel labelPane = new JPanel(new BorderLayout()); - labelPane.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); - UILabel centerLabel = new UILabel(Toolkit.i18nText("Fine-Design_Report_Universal_Export_Special_Character_Tip")); - centerLabel.setForeground(Color.GRAY); - ActionLabel rightLabel = new ActionLabel(Toolkit.i18nText("Fine-Design_Report_Universal_Export_More_Alternative_Fonts"), UIConstants.FLESH_BLUE); - rightLabel.addActionListener(new ActionListener() { - @Override - public void actionPerformed(ActionEvent e) { - BrowseUtils.browser(HELP_URL); - } - }); - labelPane.add(centerLabel, BorderLayout.CENTER); - labelPane.add(rightLabel, BorderLayout.EAST); - northPane.add(labelPane); JPanel passwordSupportPane = FRGUIPaneFactory.createNormalFlowInnerContainer_M_Pane(); passwordSupportFormula = new UICheckBox(Toolkit.i18nText("Fine-Design_Report_Universal_Export_Password_Support_Formula")); passwordSupportFormula.setSelected(false); @@ -90,7 +62,6 @@ public class ExportUniversalPane extends BasicPane { * @param reportExportAttr 报表导出属性 */ public void populate(ReportExportAttr reportExportAttr) { - this.specialCharacterExport.setSelected(CustomConfig.getInstance().isOptimizedSpecialCharacterExport()); this.passwordSupportFormula.setSelected(reportExportAttr.isPwdSupportFormula()); } @@ -103,7 +74,6 @@ public class ExportUniversalPane extends BasicPane { Configurations.modify(new WorkerFacade(CustomConfig.class) { @Override public void run() { - CustomConfig.getInstance().setOptimizedSpecialCharacterExport(specialCharacterExport.isSelected()); reportExportAttr.setPwdSupportFormula(passwordSupportFormula.isSelected()); } });