Browse Source

REPORT-3899 [9.0一轮回归]聚合报表聚合块复制粘贴功能不可用

master
plough 7 years ago
parent
commit
8594603c2a
  1. 13
      designer/src/com/fr/poly/PolyDesigner.java

13
designer/src/com/fr/poly/PolyDesigner.java

@ -738,7 +738,7 @@ public class PolyDesigner extends ReportComponent<PolyWorkSheet, PolyElementCase
* @return 工具 * @return 工具
*/ */
public ToolBarDef[] toolbars4Target() { public ToolBarDef[] toolbars4Target() {
return selection == null || isChooseBlock() ? null : this.selection.toolbars4Target(); return selection == null || isChooseBlock() || isChooseChartInner() ? null : this.selection.toolbars4Target();
} }
/** /**
@ -753,7 +753,7 @@ public class PolyDesigner extends ReportComponent<PolyWorkSheet, PolyElementCase
} }
if (selection == null || isChooseBlock()) { if (selection == null || isChooseBlock() || isChooseChartInner()) {
setToolBarElemEnabled(selection != null); setToolBarElemEnabled(selection != null);
return toolBarComponent; return toolBarComponent;
} else { } else {
@ -909,6 +909,15 @@ public class PolyDesigner extends ReportComponent<PolyWorkSheet, PolyElementCase
return selectedtype == SelectionType.BLOCK; return selectedtype == SelectionType.BLOCK;
} }
/**
* 是否选中图表聚合块内部
*
* @return 是则返回true
*/
public boolean isChooseChartInner() {
return selectedtype == SelectionType.CHART_INNER;
}
/** /**
* Fire gridSelection Changed * Fire gridSelection Changed
*/ */

Loading…
Cancel
Save