home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextLibrary / Frameworks / AppKit.framework / Versions / B / Headers / NSPrinter.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  2.0 KB  |  77 lines

  1. /*
  2.     NSPrinter.h
  3.     Application Kit
  4.     Copyright (c) 1994-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8. #import <Foundation/NSObject.h>
  9. #import <AppKit/NSGraphics.h>
  10.  
  11. @class NSString;
  12. @class NSDate;
  13.  
  14. typedef enum _NSPrinterTableStatus {
  15.     NSPrinterTableOK            = (0),
  16.     NSPrinterTableNotFound        = (1),
  17.     NSPrinterTableError            = (2),
  18. } NSPrinterTableStatus;
  19.  
  20. @interface NSPrinter:NSObject <NSCopying, NSCoding>
  21. {
  22.     NSString *_printerName;
  23.     NSString *_hostName;
  24.     NSString *_domainName;
  25.     NSString *_printerType;
  26.     BOOL _ignore;
  27.     BOOL _valid;
  28.     int _creationNum;
  29.     void *_nodes;
  30.     NSDate *_previousValid;
  31.     long _niInstance;
  32.     NSDictionary *_deviceDict;
  33.     void *_priv;
  34. #ifdef WIN32
  35.     NSString *_comment;
  36.     NSMutableDictionary *_papers;
  37. #endif
  38. }
  39.  
  40. + (NSPrinter *)printerWithName:(NSString *)name;
  41.  
  42. #ifndef WIN32
  43. #ifndef STRICT_OPENSTEP
  44. - (NSString *)domain;
  45. + (NSPrinter *)printerWithName:(NSString *)name domain:(NSString *)domain includeUnavailable:(BOOL)flag;
  46. #endif STRICT_OPENSTEP
  47. #endif WIN32
  48.  
  49. + (NSArray *)printerNames;
  50. + (NSPrinter *)printerWithType:(NSString *)type;
  51. + (NSArray *)printerTypes;
  52.  
  53. - (NSString *)name;
  54. - (NSString *)host;
  55. - (NSString *)type;
  56. - (NSString *)note;
  57. - (BOOL)isColor;
  58. - (BOOL)acceptsBinary;
  59. - (BOOL)isOutputStackInReverseOrder;
  60. - (NSSize)pageSizeForPaper:(NSString *)paperName;
  61. - (NSRect)imageRectForPaper:(NSString *)paperName;
  62. - (int)languageLevel;
  63. - (BOOL)isFontAvailable:(NSString *)faceName;
  64. - (NSPrinterTableStatus)statusForTable:(NSString *)table;
  65. - (NSDictionary *)deviceDescription;
  66.  
  67. - (BOOL)isKey:(NSString *)key inTable:(NSString *)table;
  68. - (NSString *)stringForKey:(NSString *)key inTable:(NSString *)table;
  69. - (NSSize)sizeForKey:(NSString *)key inTable:(NSString *)table;
  70. - (NSRect)rectForKey:(NSString *)key inTable:(NSString *)table;
  71. - (int)intForKey:(NSString *)key inTable:(NSString *)table;
  72. - (float)floatForKey:(NSString *)key inTable:(NSString *)table;
  73. - (BOOL)booleanForKey:(NSString *)key inTable:(NSString *)table;
  74. - (NSArray *)stringListForKey:(NSString *)key inTable:(NSString *)table;
  75.  
  76. @end
  77.