home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / DevTools / eText5 / Source / Component.subproj / eTImageComponent.h < prev    next >
Encoding:
Text File  |  1995-01-22  |  1.6 KB  |  42 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //    FILENAME:    eTImageComponent.h
  3. //    SUMMARY:    Interface for a container of imageable data.
  4. //    SUPERCLASS:    Object
  5. //    INTERFACE:    None, but it "exports" eTImageComponentIcon.
  6. //    PROTOCOLS:    <ComponentData,
  7. //                ETFDSupport,HTMDSupport,LaTeXSupport>
  8. //    AUTHOR:        Rohit Khare
  9. //    COPYRIGHT:    (c) 1994 California Institure of Technology, eText Project
  10. ///////////////////////////////////////////////////////////////////////////////
  11. //    DESCRIPTION
  12. //        This is a subclass that externalizes image components. Manages
  13. //    an NXImage object, eps to tiff, tiff to eps and tiff to gif conversion
  14. ///////////////////////////////////////////////////////////////////////////////
  15. //    HISTORY
  16. //    01/22/95:    Added call to handle caption strings.
  17. //    07/19/94:    Rearchitected; see eTComponent and Actors/eTComponent.rtf.
  18. //    07/14/94:    Created. Aliases the NeXTSTEP NXImage API.
  19. ///////////////////////////////////////////////////////////////////////////////
  20.  
  21. #import "eTComponent.h"
  22.  
  23. @interface eTImageComponent:eTComponent <ComponentData,ETFDSupport,HTMDSupport,LaTeXSupport>
  24. {
  25.     NXImage    *theImage;
  26.     BOOL    isShared;
  27. }
  28.  
  29. + newImageNamed:(const char *)theName;
  30. - theImage;
  31. - (BOOL)isShared; // this is valid, but not suggested
  32. // semi-private API
  33. - useImage:(NXImage *)newImage 
  34.       name:(const char *) newComponentName
  35.       path:(const char *) newCurrentPath
  36.     shared:(BOOL) newShared;
  37. // VERY PRIVATE API
  38. - writeHTML:(NXStream *)stream forView:view withCaption:(NXAtom)caption;
  39. - setImage:newImg;
  40. - setShared:(BOOL)newState;
  41. - registerError;
  42. @end