]> OCCT Git - occt-copy.git/commit
0032125: Application Framework, OCAF - need to have adequate message if document... CR32125_1
authorvro <vladislav.romashko@opencascade.com>
Tue, 20 Jul 2021 02:02:43 +0000 (05:02 +0300)
committervro <vladislav.romashko@opencascade.com>
Tue, 20 Jul 2021 02:02:43 +0000 (05:02 +0300)
commitfbeed435b4536e4c6ec287cc267b40328901a954
treef3219cb315a245072554b8e97704cd6c5ecbad59
parentacab849d30f2acb733586120dcd2b43f2ae59769
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.

Modifications:
- CDF_StoreList.cxx: a unique exception is raised in case of the driver is not found by the document format.
- PCDM_StoreStatus.hxx: a new enumeration value is added - PCDM_SS_UnrecognizedFormat.
- DDocStd_ApplicationCommands.cxx: processing of a new enumeration value PCDM_SS_UnrecognizedFormat by SaveAs draw-command.
- XDEDRAW.cxx: processing of a new enumeration value PCDM_SS_UnrecognizedFormat by saveDoc draw-command.
src/CDF/CDF_StoreList.cxx
src/DDocStd/DDocStd_ApplicationCommands.cxx
src/PCDM/PCDM_StoreStatus.hxx
src/XDEDRAW/XDEDRAW.cxx