Changes between Version 21 and Version 22 of RESOURCES_EXPORT_IMPORT_R0
- Timestamp:
- 10/26/09 10:47:55 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RESOURCES_EXPORT_IMPORT_R0
v21 v22 90 90 * {{{ImmSize computeFrameSize(D data)}}} : Many resources compute their frames size in different ways so that methods is necessary, by default it returns the default frame size. 91 91 * {{{void insertFrame(...)}}} Inserts frame, and because the logic for inserting frames is the same for every resource it is implemented in the base class. 92 * For every importable resource there will be ResourceImportManager implementation and all the repeated logic in the modules for inserting and importing will be removed. There is one spesial SophieFormatImportManager that imports resources into Sophie 2.0 format... It is special because all the resources are able to be imported with it. For resources that have no special data like the Browser there is EmptyDataImportManager to be extended by them.92 * For every importable resource there will be ResourceImportManager implementation and all the repeated logic in the modules for inserting and importing will be removed. There is one spesial SophieFormatImportManager that imports resources into Sophie 2.0 format... It is special because all the resources are able to be imported with it. For resources that have no special data like the Browser there is EmptyDataImportManager to be extended by them. 93 93 * ResourceImportUtil : The util provides methods that can insert frame and create resource, import resources, insert frames for existing resources and is able to handle dropped resources from the DND. These methods work with the appropriate provider and additional parameters like current book for example. 94 94 * ResourceImportLogic : This logic handles all the imports of resources in Sophie 2. It uses the ResourceImportUtil's methods. Handlers: … … 103 103 * The manager will have {{{getResourceKind}}} method and {{{getFileFilter}}} method too, it will have {{{getExportRole}}} method which will give a description on the export of the 104 104 * The {{{getResourceKind}}} of the interface will have special role, if the kind is just the {{{resourceR4.KIND}}} kind, it will mean that the export manager will be able to export any resource to it's format. 105 resource.106 105 * In the func.resources module there will be one implementation for SophieFormatExportManager. It will be able to export any resource to the Sophie 2.0 format: 107 106 * Problem will be that the exported resources will not contain their outer references, but in the future, the persistence will support caching of resources in the format, so for now that works.