home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / AppKit.framework / Versions / B / Headers / NSPageLayout.h < prev    next >
Text File  |  1996-11-26  |  2KB  |  110 lines

  1.  
  2. /*
  3.     NSPageLayout.h
  4.     Application Kit
  5.     Copyright (c) 1994-1996, NeXT Software, Inc.
  6.     All rights reserved.
  7. */
  8.  
  9. #import <AppKit/NSApplication.h>
  10. #import <AppKit/NSPanel.h>
  11. #import <AppKit/AppKitDefines.h>
  12.  
  13. @class NSButton;
  14. @class NSPrintInfo;
  15.  
  16. #ifndef STRICT_OPENSTEP
  17. #ifndef WIN32
  18. enum {
  19.     NSPLImageButton            = 50,
  20.     NSPLTitleField            = 51,
  21.     NSPLPaperNameButton            = 52,
  22.     NSPLUnitsButton            = 54,
  23.     NSPLWidthForm            = 55,
  24.     NSPLHeightForm            = 56,
  25.     NSPLOrientationMatrix        = 57,
  26.     NSPLCancelButton            = NSCancelButton,
  27.     NSPLOKButton            = NSOKButton
  28. };
  29. #endif WIN32
  30. #endif STRICT_OPENSTEP
  31.  
  32. #ifndef WIN32
  33. @interface NSPageLayout : NSPanel
  34. {
  35.     id                  _height;
  36.     id                  _width;
  37.     NSButton         *_ok;
  38.     id                  _cancel;
  39.     id                  _orientation;
  40.     id                  _paperNamePopUp;
  41.     id                  _unitsPopUp;
  42.     int                 _exitTag;
  43.     id                  _paperView;
  44.     id                  _paperViewShadow;
  45.     id                  _accessoryView;
  46.     NSPrintInfo        *_printInfo;
  47.     unsigned char    _currUnits;
  48.     BOOL                _otherPaper;
  49.     BOOL        _recyclable;
  50.     unsigned int _reservedPageLayout1;
  51. }
  52.  
  53. + (NSPageLayout *)pageLayout;
  54.  
  55. - (void)setAccessoryView:(NSView *)aView;
  56. - (NSView *)accessoryView;
  57.  
  58. #ifndef STRICT_OPENSTEP
  59. #ifndef WIN32
  60. - (void)pickedButton:(id)sender;
  61. - (void)pickedPaperSize:(id)sender;
  62. - (void)pickedOrientation:(id)sender;
  63. - (void)pickedUnits:(id)sender;
  64. - (void)convertOldFactor:(float *)oldFactor newFactor:(float *)newFactor;
  65. #endif WIN32
  66. #endif STRICT_OPENSTEP
  67.  
  68. - (void)readPrintInfo;
  69. - (void)writePrintInfo;
  70. - (NSPrintInfo *)printInfo;
  71. - (int)runModalWithPrintInfo:(NSPrintInfo *)pInfo;
  72. - (int)runModal;
  73.  
  74. @end
  75.  
  76. @interface NSApplication(NSPageLayoutPanel)
  77. - (void)runPageLayout:(id)sender;
  78. @end
  79.  
  80. #else  WIN32
  81.  
  82. @interface NSPageLayout : NSObject
  83. {
  84.     void *_printdlg;
  85.     NSPrintInfo *_printInfo;
  86.     id _accessoryView;
  87.     unsigned int _reservedPageLayout1;
  88. }
  89.  
  90. + (NSPageLayout *)pageLayout;
  91.  
  92. - (void)setAccessoryView:(NSView *)aView;
  93. - (NSView *)accessoryView;
  94. - (void)readPrintInfo;
  95. - (void)writePrintInfo;
  96. - (NSPrintInfo *)printInfo;
  97. - (int)runModalWithPrintInfo:(NSPrintInfo *)pInfo;
  98. - (int)runModal;
  99.  
  100. @end
  101.  
  102. @interface NSApplication(NSPageLayoutPanel)
  103. - (void)runPageLayout:(id)sender;
  104. @end
  105.  
  106.  
  107. #endif WIN32
  108.  
  109.  
  110.