home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks4 / AppKit.framework / Headers / NSPageLayout.h < prev    next >
Encoding:
Text File  |  1996-03-28  |  2.0 KB  |  80 lines

  1. /*
  2.     PageLayout.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "NSApplication.h"
  8. #import "NSPanel.h"
  9.  
  10. typedef enum _NXMeasurementUnit {
  11.     NSInchUnit = 0,
  12.     NSCentimeterUnit = 1,
  13.     NSPointUnit = 2,
  14.     NSPicaUnit = 3
  15. } NSMeasurementUnit;
  16.  
  17. /* Tags of Controls in the Page Layout panel */
  18.  
  19. enum {
  20.     NSPLImageButton            = 50,
  21.     NSPLTitleField            = 51,
  22.     NSPLPaperNameButton            = 52,
  23.     NSPLUnitsButton            = 54,
  24.     NSPLWidthForm            = 55,
  25.     NSPLHeightForm            = 56,
  26.     NSPLOrientationMatrix        = 57,
  27.     NSPLCancelButton            = NSCancelButton,
  28.     NSPLOKButton            = NSOKButton
  29. };
  30.  
  31. @class NSPrintInfo;
  32.  
  33. @interface NSPageLayout : NSPanel
  34. {
  35.     id                  appIcon;
  36.     id                  height;
  37.     id                  width;
  38.     id                  ok;
  39.     id                  cancel;
  40.     id                  orientation;
  41.     id                  scale;
  42.     id                  paperSizeList;
  43.     id                  layoutList;
  44.     id                  unitsList;
  45.     int                 exitTag;
  46.     id                  paperView;
  47.     id                  _paperViewShadow;
  48.     id                  accessoryView;
  49.     char                _currUnits;
  50.     BOOL                _otherPaper;
  51.     unsigned short      _reservedPageLayout1;
  52.     unsigned int        _reservedPageLayout2;
  53.     unsigned int        _reservedPageLayout3;
  54.     unsigned int        _reservedPageLayout4;
  55.     unsigned int        _reservedPageLayout5;
  56. }
  57.  
  58. + pageLayout;
  59.  
  60. - setAccessoryView:aView;
  61. - accessoryView;
  62. - pickedButton:sender;
  63. - pickedPaperSize:sender;
  64. - pickedOrientation:sender;
  65. - pickedUnits:sender;
  66. - (BOOL)textShouldBeginEditing:textObject;
  67. - textDidEnd:textObject endChar:(unsigned short)theChar;
  68. - readPrintInfo;
  69. - writePrintInfo;
  70. - (NSPrintInfo *)printInfo;
  71. - (int)runModal;
  72. - (int)runModalWithPrintInfo:(NSPrintInfo *)pInfo;
  73. - convertOldFactor:(float *)old newFactor:(float *)new;
  74.  
  75. @end
  76.  
  77. @interface NSApplication(NSPageLayoutPanel)
  78. - (void)runPageLayout:(id)sender;
  79. @end
  80.