|
|
|
@ -42,7 +42,11 @@ class CptApp extends AbstractWorkBookApp {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public WorkBook asIOFile(FILE file) { |
|
|
|
|
return asIOFile(file, true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public WorkBook asIOFile(FILE file, boolean needCheck) { |
|
|
|
|
if (XMLEncryptUtils.isCptEncoded() && |
|
|
|
|
!XMLEncryptUtils.checkVaild(DesignerEnvManager.getEnvManager().getEncryptionKey())) { |
|
|
|
|
if (!new DecodeDialog(file).isPwdRight()) { |
|
|
|
@ -67,7 +71,9 @@ class CptApp extends AbstractWorkBookApp {
|
|
|
|
|
} catch (Exception exp) { |
|
|
|
|
FineLoggerFactory.getLogger().error(Toolkit.i18nText("Fine-Design_Report_NS_Exception_ReadError") + file, exp); |
|
|
|
|
} |
|
|
|
|
checkNameStyle(namestyle); |
|
|
|
|
if (needCheck) { |
|
|
|
|
checkNameStyle(namestyle); |
|
|
|
|
} |
|
|
|
|
return tpl; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|