home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Mail / Bundles / HTMLConverter-1.0-MIHS / HTMLConverter.h next >
Encoding:
Text File  |  1997-06-16  |  1.7 KB  |  67 lines

  1. #import <objc/Object.h>
  2.  
  3. /* HTMLConverter bundle class
  4.  * This class is associated with the Mail application.
  5.  * It will convert HTML tags before displaying them in the Mail window.
  6.  */
  7. @interface HTMLConverter:Object
  8. {
  9.     /* conversion info */
  10.     BOOL performHTMLConversion;
  11.     const char *htmlMapFileName;
  12.     NXStringTable *conversionMap;
  13.     
  14.     /* display info */
  15.     BOOL performHTMLDisplay;
  16.     const char *htmlSavePathName;
  17.     const char *htmlServiceName;
  18.     int fileCount;
  19. }
  20.  
  21. /* Class Methods */
  22. + initialize;
  23.  
  24. /* Instance Methods */
  25. - init;
  26. - free;
  27.  
  28. /* Accessor Methods */
  29.     /* conversion info */
  30. - (BOOL)performHTMLConversion;
  31. - (void)setPerformHTMLConversion:(BOOL)value;
  32. - (const char *)htmlMapFileName;
  33. - (void)setHtmlMapFileName:(const char *)value;
  34. - (NXStringTable *)conversionMap;
  35. - (void)setConversionMap:(NXStringTable *)value;
  36.     /* display info */
  37. - (BOOL)performHTMLDisplay;
  38. - (void)setPerformHTMLDisplay:(BOOL)value;
  39. - (const char *)htmlSavePathName;
  40. - (void)setHtmlSavePathName:(const char *)value;
  41. - (const char *)htmlServiceName;
  42. - (void)setHtmlServiceName:(const char *)value;
  43. - (int)fileCount;
  44. - (void)setFileCount:(int)value;
  45.  
  46. - (void)loadDefaults;
  47.  
  48. /* methods to handle HTML display & conversion */
  49. - (BOOL)convertText:(Text*)text;
  50. - (BOOL)openBrowserWithText:(Text*)text;
  51. - (BOOL)saveText:(Text*)text toFileNamed:(const char *)filename;
  52.  
  53.  
  54. /* Delegate Methods */
  55. - (void)willDisplayText:(Text *)text;
  56.  
  57. @end
  58.  
  59.  
  60. /* The bundle's main Class must register itself with NXApp
  61.  * using this method in its +initialize method.
  62.  * Note: "-addDisplayFilter:" takes an instance as an argument (not a Class).
  63.  */
  64. @interface Application(MailDisplayBundle)
  65. - (void)addDisplayFilter:filterObject;
  66. @end
  67.