home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / NXPrinter.h < prev    next >
Text File  |  1992-01-30  |  2KB  |  69 lines

  1.  
  2.  
  3. #import <objc/Object.h>
  4. #import <sys/time.h>
  5. #import "graphics.h"
  6.  
  7.  
  8. #define NX_PRINTKEYMAXUE4(1024)        // Max num of chars in key.
  9.  
  10. #define NX_PRINTERTABLEOK    (0)
  11. #define NX_PRINTERTABLENOTFOUND    (1)
  12. #define NX_PRINTERTABLEERROR    (2)
  13.  
  14.  
  15. @interface NXPrinter:Object
  16. {
  17.     const char    *printerName;
  18.     const char    *hostName;
  19.     const char    *domainName;
  20.     const char    *printerType;
  21.     BOOL    _ignore;
  22.     BOOL    _valid;
  23.     int        _creationNum;
  24.     void    *_nodes;
  25.     struct timeval _previousValid;
  26.     long    _niInstance;
  27.     void    *_priv;
  28.     void    *reserved[10];
  29. }
  30.  
  31. + (NXPrinter *)newForName:(const char *)name;
  32. + (NXPrinter *)newForName:(const char *)name host:(const char *)host;
  33. + (NXPrinter *)newForName:(const char *)name host:(const char *)host
  34.                    domain:(const char *)domain includeUnavailable:(BOOL)flag;
  35. + (NXPrinter *)newForType:(const char *)type;
  36. + (char **)printerTypes:(BOOL)types custom:(BOOL)custom;
  37.  
  38. - (const char *)name;
  39. - (const char *)domain;
  40. - (const char *)host;
  41. - (const char *)type;
  42. - (const char *)note;
  43. - (BOOL)isColor;
  44. - (BOOL)acceptsBinary;
  45. - (BOOL)isOutputStackInReverseOrder;
  46. - (NXSize)pageSizeForPaper:(const char *)paperName;
  47. - (NXRect)imageRectForPaper:(const char *)paperName;
  48. - (int)languageLevel;
  49. - (BOOL)isFontAvailable:(const char *)faceName;
  50. - (BOOL)isReallyAPrinter;
  51. - (int)statusForTable:(const char *)table;
  52. - (BOOL)isValid;
  53.  
  54. - (BOOL)isKey:(const char *)key inTable:(const char *)table;
  55. - (const char *)stringForKey:(const char *)key inTable:(const char *)table;
  56. - (NXSize)sizeForKey:(const char *)key inTable:(const char *)table;
  57. - (NXRect)rectForKey:(const char *)key inTable:(const char *)table;
  58. - (int)intForKey:(const char *)key inTable:(const char *)table;
  59. - (float)floatForKey:(const char *)key inTable:(const char *)table;
  60. - (BOOL)booleanForKey:(const char *)key inTable:(const char *)table;
  61. - (void *)dataForKey:(const char *)key inTable:(const char *)table length:(int *)lenp;
  62. - (const char **)stringListForKey:(const char *)key inTable:(const char *)table;
  63.  
  64. - init;
  65. - free;
  66.  
  67.  
  68. @end
  69.