home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks3 / AppKit.framework / Headers / NSPageLayout.h < prev    next >
Text File  |  1994-09-29  |  2KB  |  76 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 "NSPanel.h"
  8.  
  9. /* Returns the size of a given type of paper */
  10.  
  11. extern const NSSize NXFindPaperSize(NSString *paperName);
  12.  
  13. typedef enum _NXMeasurementUnit {
  14.     NSInchUnit = 0,
  15.     NSCentimeterUnit = 1,
  16.     NSPointUnit = 2,
  17.     NSPicaUnit = 3
  18. } NSMeasurementUnit;
  19.  
  20. /* Tags of Controls in the Page Layout panel */
  21.  
  22. enum {
  23.     NSPLImageButton            = 50,
  24.     NSPLTitleField            = 51,
  25.     NSPLPaperNameButton            = 52,
  26.     NSPLUnitsButton            = 54,
  27.     NSPLWidthForm            = 55,
  28.     NSPLHeightForm            = 56,
  29.     NSPLOrientationMatrix        = 57,
  30.     NSPLCancelButton            = NSCancelButton,
  31.     NSPLOKButton            = NSOKButton
  32. };
  33.  
  34. @interface NSPageLayout : NSPanel
  35. {
  36.     id                  appIcon;
  37.     id                  height;
  38.     id                  width;
  39.     id                  ok;
  40.     id                  cancel;
  41.     id                  orientation;
  42.     id                  scale;
  43.     id                  paperSizeList;
  44.     id                  layoutList;
  45.     id                  unitsList;
  46.     int                 exitTag;
  47.     id                  paperView;
  48.     id                  _paperViewShadow;
  49.     id                  accessoryView;
  50.     char                _currUnits;
  51.     BOOL                _otherPaper;
  52.     unsigned short      _reservedPageLayout1;
  53.     unsigned int        _reservedPageLayout2;
  54.     unsigned int        _reservedPageLayout3;
  55.     unsigned int        _reservedPageLayout4;
  56.     unsigned int        _reservedPageLayout5;
  57. }
  58.  
  59. + pageLayout;
  60.  
  61. - setAccessoryView:aView;
  62. - accessoryView;
  63. - pickedButton:sender;
  64. - pickedPaperSize:sender;
  65. - pickedOrientation:sender;
  66. - pickedLayout:sender;
  67. - pickedUnits:sender;
  68. - (BOOL)textShouldBeginEditing:textObject;
  69. - textDidEnd:textObject endChar:(unsigned short)theChar;
  70. - readPrintInfo;
  71. - writePrintInfo;
  72. - (int)runModal;
  73. - convertOldFactor:(float *)old newFactor:(float *)new;
  74.  
  75. @end
  76.