|
|
|
@ -1475,7 +1475,6 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String getSuffix() { |
|
|
|
|
//这里需要重写getPath(),getPath()方法中,使用到了getSuffix()方法
|
|
|
|
|
CptxMetadata metadata = CptxFileUtils.getMetadata(this.getEditingFILE().getPath()); |
|
|
|
|
if (metadata != null && metadata.isForceCpt()) { |
|
|
|
|
//返回分页引擎未生效
|
|
|
|
@ -1620,13 +1619,13 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
|
|
|
|
|
if (isChangedFile){ |
|
|
|
|
callBackForSave(); |
|
|
|
|
CptCompileUtil.compile(JTemplate.this); |
|
|
|
|
} else{ |
|
|
|
|
callBackForSave(); |
|
|
|
|
} |
|
|
|
|
callBackForSave(); |
|
|
|
|
// 当前打开的是正在保存的模板才刷新
|
|
|
|
|
if (ComparatorUtils.equals(JTemplate.this.template.getTemplateID(), |
|
|
|
|
HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().template.getTemplateID())) { |
|
|
|
|
refreshToolArea(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
DesignerFrameFileDealerPane.getInstance().refresh(); |
|
|
|
|
} |
|
|
|
|