occt: master 632deee0

Author Committer Branch Timestamp Parent
vro bugmaster master 2021-09-01 08:47:41 master 9443cf8e
Affected Issues  0032125: Application Framework, OCAF - need to have adequate message if document cannot be saved due to unrecognized format
Changeset 0032125: Application Framework, OCAF - need to have adequate message if document cannot be saved due to unrecognized format

A list of storage statuses (PCDM_StoreStatus) is extended for PCDM_SS_UnrecognizedFormat. It is set if
- extension of a document file name is not defined (the extension doesn't correspond to any declared file formats) or
- a storage driver is not found for the document storage format.

Modified:
CDF_StoreList.cxx: the mechanism of raising and catching exceptions is replaced by direct setting the status and error message for each particular error.
PCDM_StoreStatus.hxx: a new enumeration value is added - PCDM_SS_UnrecognizedFormat. Also, a short explanation is added to each enumeration value.
DDocStd_ApplicationCommands.cxx: processing of a new enumeration value by the draw-command.
XDEDRAW.cxx: processed a new enumeration value PCDM_SS_UnrecognizedFormat by saveDoc draw-command.

Deleted:
CDF_MetaDataDriverError.hxx: It is not used anywhere and it seems it will not be used by someone.
rm - src/CDF/CDF_MetaDataDriverError.hxx Diff File
mod - src/CDF/CDF_StoreList.cxx Diff File
mod - src/CDF/FILES Diff File
mod - src/PCDM/PCDM_StoreStatus.hxx Diff File
mod - src/TDocStd/TDocStd_Application.cxx Diff File
mod - src/XDEDRAW/XDEDRAW.cxx Diff File