|
|
@ -5,7 +5,6 @@ import com.fr.base.DynamicUnitList; |
|
|
|
import com.fr.base.Parameter; |
|
|
|
import com.fr.base.Parameter; |
|
|
|
import com.fr.base.ScreenResolution; |
|
|
|
import com.fr.base.ScreenResolution; |
|
|
|
import com.fr.base.extension.FileExtension; |
|
|
|
import com.fr.base.extension.FileExtension; |
|
|
|
import com.fr.base.theme.FormTheme; |
|
|
|
|
|
|
|
import com.fr.base.theme.TemplateThemeCompatible; |
|
|
|
import com.fr.base.theme.TemplateThemeCompatible; |
|
|
|
import com.fr.base.vcs.DesignerMode; |
|
|
|
import com.fr.base.vcs.DesignerMode; |
|
|
|
import com.fr.base.theme.ReportTheme; |
|
|
|
import com.fr.base.theme.ReportTheme; |
|
|
@ -91,7 +90,6 @@ import com.fr.main.impl.WorkBookX; |
|
|
|
import com.fr.main.parameter.ReportParameterAttr; |
|
|
|
import com.fr.main.parameter.ReportParameterAttr; |
|
|
|
import com.fr.nx.app.designer.menu.CalculateAttrAction; |
|
|
|
import com.fr.nx.app.designer.menu.CalculateAttrAction; |
|
|
|
import com.fr.nx.app.designer.utils.CptAndCptxCompatibilityUtil; |
|
|
|
import com.fr.nx.app.designer.utils.CptAndCptxCompatibilityUtil; |
|
|
|
import com.fr.nx.app.designer.utils.CptCompileUtil; |
|
|
|
|
|
|
|
import com.fr.poly.PolyDesigner; |
|
|
|
import com.fr.poly.PolyDesigner; |
|
|
|
import com.fr.poly.creator.BlockCreator; |
|
|
|
import com.fr.poly.creator.BlockCreator; |
|
|
|
import com.fr.privilege.finegrain.WorkSheetPrivilegeControl; |
|
|
|
import com.fr.privilege.finegrain.WorkSheetPrivilegeControl; |
|
|
@ -720,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 (CptAndCptxCompatibilityUtil.enableNewEngine(this.getTarget(), getEditingFILE().getPath())){ |
|
|
|
if (CptAndCptxCompatibilityUtil.isEngineXEnable(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 { |
|
|
@ -750,7 +748,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public ShortCut[] shortcut4TemplateMenu() { |
|
|
|
public ShortCut[] shortcut4TemplateMenu() { |
|
|
|
boolean enableNewEngine = CptAndCptxCompatibilityUtil.enableNewEngine(this.getTarget(), getEditingFILE().getPath()); |
|
|
|
boolean enableNewEngine = CptAndCptxCompatibilityUtil.isEngineXEnable(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), |
|
|
|