|
|
@ -718,7 +718,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void addShortCut(MenuDef exportMenuDef, MenuDef excelExportMenuDef) { |
|
|
|
protected void addShortCut(MenuDef exportMenuDef, MenuDef excelExportMenuDef) { |
|
|
|
if (CptCompileUtil.isNewEngine(this.getTarget())){ |
|
|
|
if (CptCompileUtil.isNewEngine(this.getTarget(), getEditingFILE().getPath())){ |
|
|
|
exportMenuDef.addShortCut(excelExportMenuDef, new PDFExportAction(this), new WordExportAction(this), new SVGExportAction(this), |
|
|
|
exportMenuDef.addShortCut(excelExportMenuDef, new PDFExportAction(this), new WordExportAction(this), new SVGExportAction(this), |
|
|
|
new CSVExportAction(this), new TextExportAction(this)); |
|
|
|
new CSVExportAction(this), new TextExportAction(this)); |
|
|
|
}else { |
|
|
|
}else { |
|
|
@ -748,7 +748,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public ShortCut[] shortcut4TemplateMenu() { |
|
|
|
public ShortCut[] shortcut4TemplateMenu() { |
|
|
|
boolean isNewEngine = CptCompileUtil.isNewEngine(this.getTarget()); |
|
|
|
boolean isNewEngine = CptCompileUtil.isNewEngine(this.getTarget(), getEditingFILE().getPath()); |
|
|
|
ShortCut[] commonShortCut = ArrayUtils.addAll(new ShortCut[]{ |
|
|
|
ShortCut[] commonShortCut = ArrayUtils.addAll(new ShortCut[]{ |
|
|
|
new ReportWebAttrAction(this), |
|
|
|
new ReportWebAttrAction(this), |
|
|
|
new ReportExportAttrAction(this), |
|
|
|
new ReportExportAttrAction(this), |
|
|
|