home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / PageLayout.h < prev    next >
Text File  |  1991-11-06  |  2KB  |  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 "Panel.h"
  8.  
  9. /* Returns the size of a given type of paper */
  10.  
  11. extern const NXSize *NXFindPaperSize(const char *paperName);
  12.  
  13. typedef enum _NXMeasurementUnit {
  14.     NX_UnitInch = 0,
  15.     NX_UnitCentimeter = 1,
  16.     NX_UnitPoint = 2,
  17.     NX_UnitPica = 3
  18. } NXMeasurementUnit;
  19.  
  20. /* Tags of Controls in the Page Layout panel */
  21.  
  22. #define NX_PLICONBUTTON        50
  23. #define NX_PLTITLEFIELD        51
  24. #define NX_PLPAPERSIZEBUTTON    52
  25. #define NX_PLLAYOUTBUTTON    53
  26. #define NX_PLUNITSBUTTON    54
  27. #define NX_PLWIDTHFORM        55
  28. #define NX_PLHEIGHTFORM        56
  29. #define NX_PLPORTLANDMATRIX    57
  30. #define NX_PLSCALEFIELD        58
  31. #define NX_PLCANCELBUTTON    NX_CANCELTAG
  32. #define NX_PLOKBUTTON        NX_OKTAG
  33.  
  34. @interface PageLayout : Panel
  35. {
  36.     id                  appIcon;
  37.     id                  height;
  38.     id                  width;
  39.     id                UE0;
  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. + new;
  60. + newContent:(const NXRect *)contentRect style:(int)aStyle backing:(int)bufferingType buttonMask:(int)mask defer:(BOOL)flag;
  61. + allocFromZone:(NXZone *)zone;
  62. + alloc;
  63.  
  64. - free;
  65. - setAccessoryView:aView;
  66. - accessoryView;
  67. - pickedButton:sender;
  68. - pickedPaperSize:sender;
  69. - pickedOrientation:sender;
  70. - pickedLayout:sender;
  71. - pickedUnits:sender;
  72. - (BOOL)textWillChange:textObject;
  73. - textDidEnd:textObject endChar:(unsigned short)theChar;
  74. - readPrintInfo;
  75. - writePrintInfo;
  76. - (int)runModal;
  77. - convertOldFactor:(float *)old newFactor:(float *)new;
  78.  
  79. @end
  80.