home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / SourceCode / AdobeExamples / NX_ImportInt / README < prev    next >
Encoding:
Text File  |  1992-12-19  |  2.6 KB  |  53 lines

  1.  
  2. README file for the ImportIntro application.
  3.  
  4. The ImportIntro application is intended to highlight a few areas concerning importing of
  5. Encapsulated PostScript files (EPS) and TIFF images. This application includes parsing
  6. routines for extracting bounding boxes, skipping included documents and checking for
  7. included resources. It also images each file in an NXImage. This reduces the amount 
  8. redrawing thats necessary during a scroll and redraw. In addition, each EPS file is imaged
  9. within a subclass of the NXEPSImageRep. This class provides a separate DPS context
  10. which protects the application context from any errors in an EPS file.
  11.  
  12. A second application, ImportAdvanced, shows more features such as rotating and 
  13. zooming in and out.  Portions of the source code in this application are based on
  14. source code from the Draw example application provided by NeXT.
  15.  
  16. Below lies an annotated list of the files used in the application. The
  17. classes listed first form the majority of the application and are
  18. the more important ones to note. The others fill support roles.
  19.  
  20. ImportApp            - A subclass of Application. Manages the global operations.
  21. Document        - A subclass of Responder. Manages the operations for a document.
  22.                     Operations such as import, save, etc.
  23. DrawingView        - A subclass of View. The view that manages the drawing for a
  24.                     document. Contains the list of graphics.
  25. GraphicImport        - A subclass of Object. Each imported eps and tiff  file is managed
  26.                     through an instance of this object. Uses an NXImage to retain
  27.                     the image of the file offscreen and an NXEPSImageRepSub
  28.                     to swiche DPS contexts when imaging to protect the application's
  29.                     context.
  30. NXEPSImageRepSub - A subclass of NXEPSImageRep. Adds the resource parsing and
  31.                     checking routines, the include file handling and the drawing
  32.                     with rotation.
  33. NXBitmapImageRepSub - A subclass of NXBitmapImageRep. Adds the drawing
  34.                     with rotation.
  35.  
  36. SaveToPanel        - A subclass of SavePanel. 
  37. ResourcePanel    - A subclass of Panel that displays the resources specified in the
  38.                     Epsf file but not found in the system.
  39.  
  40. epsfreader.m        - Routines for parsing Eps files.
  41. epsfwriter.m        - Routines for writing Eps files.
  42. epsferror.m        - Error codes and messages for parsing errors.
  43.  
  44.  
  45. Topics of interest from ImportIntro:
  46.  
  47. Parsing an Eps file (epsfreader)
  48. Resource checking and error flagging (epsfreader, GraphicImport, ResourcePanel)
  49. Imaging an Eps file (epsfwriter, GraphicEpsf)
  50. Imaging an Eps file into an NXImage (GraphicImport)
  51. Dragging out the place for an Eps file (DrawingView, GraphicImport)
  52. Saving As EPS/Illustrator (Document, DrawingView, GraphicImport, NXEPSImageRepSub)
  53.