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