Browse Source

Merge pull request #8083 in DESIGN/design from final/10.0 to persist/10.0

* commit 'cb773494f4cd67e213fcb135304d5ee18d9ec1be':
  REPORT-67359 模板-水印-点击无反应 1.水印接口规范
persist/10.0 10.0.19.2022.03.01
superman 3 years ago
parent
commit
a6befdf048
  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