]> OCCT Git - occt-copy.git/commit
0032125: Application Framework, OCAF - need to have adequate message if document...
authorvro <vladislav.romashko@opencascade.com>
Mon, 19 Jul 2021 16:22:36 +0000 (19:22 +0300)
committervro <vladislav.romashko@opencascade.com>
Mon, 19 Jul 2021 16:22:36 +0000 (19:22 +0300)
commitc723a13eee36471898b6e22478cead511e9a3ecf
treeae5f3cdfcf4c01a897c4693149ed1b3f83f46496
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 by the draw-command.
src/CDF/CDF_StoreList.cxx
src/DDocStd/DDocStd_ApplicationCommands.cxx
src/PCDM/PCDM_StoreStatus.hxx