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