Browse Source

Pull request #8001: KERNEL-9928 重构水印

Merge in DESIGN/design from ~HOKY.HE/design:release/10.0 to release/10.0

* commit 'b7e5268ee19a3bb8d67812d4cc8d5e935096b9ed':
  KERNEL-9928 重构水印 1.水印接口规范
  无jira 新建水印npe 1.新建决策模板时改成从全局读取水印
security/10.0
Hoky.He 3 years ago
parent
commit
d512d7b014
  1. 4
      designer-realize/src/main/java/com/fr/design/actions/report/ReportWatermarkAction.java

4
designer-realize/src/main/java/com/fr/design/actions/report/ReportWatermarkAction.java

@ -1,8 +1,6 @@
package com.fr.design.actions.report; package com.fr.design.actions.report;
import com.fr.base.iofile.attr.WatermarkAttr; import com.fr.base.iofile.attr.WatermarkAttr;
import com.fr.base.svg.IconUtils;
import com.fr.design.actions.JWorkBookAction; import com.fr.design.actions.JWorkBookAction;
import com.fr.design.dialog.DialogActionAdapter; import com.fr.design.dialog.DialogActionAdapter;
import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.DesignerContext;
@ -39,7 +37,7 @@ public class ReportWatermarkAction extends JWorkBookAction {
return; return;
} }
final WorkBook wbTpl = jwb.getTarget(); final WorkBook wbTpl = jwb.getTarget();
WatermarkAttr watermark = ReportUtils.getWatermarkAttrFromTemplate(wbTpl); WatermarkAttr watermark = ReportUtils.getWatermarkAttrFromTemplateAndGlobal(wbTpl);
final WatermarkSettingPane watermarkPane = new WatermarkSettingPane(); final WatermarkSettingPane watermarkPane = new WatermarkSettingPane();
watermarkPane.populate(watermark); watermarkPane.populate(watermark);
watermarkPane.showWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() { watermarkPane.showWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() {

Loading…
Cancel
Save