home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / epm603b.zip / EPMCSAMP.ZIP / EPMCSAMP / INCLUDE / PRINT.H < prev   
Text File  |  1994-01-24  |  4KB  |  131 lines

  1. #ifndef PRINT_INCLUDED
  2. #define PRINT_INCLUDED
  3. //----------------------------------------------------------------------
  4. // The PRNINFO and EPMINFO structures are used by the print support in
  5. // both EtkPrint() (\ETK\C\E\PRINT.C) and EIObjectProc()
  6. // (\ETK\C\I\IOBJECT.C).  -LWS
  7. //----------------------------------------------------------------------
  8. #ifdef ACW_PRINT
  9. // CALLBACK commands for PRINT dialog  *************
  10. #define IDC_PR_PROGRESS  100
  11. #define IDC_PR_PRNTDONE  101
  12. #define IDC_PR_PRNTFAIL  102
  13.  
  14. // CALLBACK commands for PREVIEW dialog  ***********
  15. #define IDC_PP_PAGEDONE  100
  16. #define IDC_PP_FILEDONE  101
  17. #define IDC_PP_FMTERROR  102
  18.  
  19. // MISC defines for buffer sizes
  20. #define HEADERLEN         39
  21. #define PRQINFO3_SIZE    (32*1024)
  22. #define QUEUENAMELEN     127
  23.  
  24. //xxx
  25. #define POF_RAW_TEXT        0x00000001
  26. #define POF_JOB_PROPS       0x00000002
  27. #define POF_WYSIWYG         0x00000004
  28. #define POF_COLORTEXT       0x00000008
  29. #define POF_LINEWRAP        0x00000010
  30. #define POF_METRIC          0x00000020
  31. #define POF_FOLIO           0x00000040
  32. #define POF_SAVE_SETTINGS   0x00000080
  33. #define POF_S1_PROMPT       0x00000100
  34. #define POF_FAST_PREVIEW    0x00000200
  35.  
  36. // ---------------------------------------------------------------------------
  37. // Printing-related STRUCTURES
  38.  
  39. typedef struct {
  40.            LONG           firstLine;
  41.            LONG           firstCol;
  42.            LONG           lastLine;
  43.            BOOL           fPrintIt;
  44.            HMF            hmfPage;
  45.            PVOID          nextPage;
  46.         }
  47.         EPAGEINFO, * PEPAGEINFO;
  48.  
  49. typedef struct {
  50.            CHAR     szCurQueue[QUEUENAMELEN+1];              // FULL queue name
  51.            LONG     ulCurPort;                               // index
  52.            ULONG    flags;
  53.            LONG     LineSpace;                               // INDEX
  54.            SHORT    margL, margR, margT, margB;              // margins (TWP)
  55.            SHORT    hdrTC, hdrTR, ftrBC, ftrBR;              // indices
  56.            SHORT    DraftFont;                               // index
  57.            SHORT    DraftFontSize;                           // PT size
  58.            SHORT    HeaderFont;                              // index
  59.            SHORT    HeaderFontSize;                          // PT size
  60.            CHAR     szS1[HEADERLEN+1];                       // hdr/ftr strng
  61.            CHAR     szS2[HEADERLEN+1];                       // ditto
  62.         }
  63.         PRINTOPTS, * PPRINTOPTS;
  64.  
  65. typedef struct {
  66.            USHORT         size;
  67.            USHORT         reserved1;
  68.            HWND           hwndCallback;                    // prn or prvw dlg
  69.            HWND           hwndEdit;                        // work thread
  70.            HWND           hwndApp;                         // for HELP
  71.            PPRINTOPTS     pOpts;                           // fetch from ini
  72.            BOOL           fMarkedOnly;                     // printed
  73.            BOOL           fPreview;                        // or PRINT
  74.            PVOID          pdriv;                           // DevOpenData
  75.            RECTL          rclPage;                         // full page
  76.            RECTL          rclClip;                         // from FORM data
  77.            RECTL          rclMargins;                      // user spec'd
  78.            PEPAGEINFO     pPgInfo;                         // filled by prvw
  79.            BOOL           fInProgress;
  80.         }
  81.         PRINTJOB, * PPRINTJOB;
  82.  
  83. #endif
  84.  
  85. #if 0
  86. #ifdef INCL_ETKTYPEDEFS
  87. typedef struct {
  88.    HAB hab;
  89.    HDC hdc;
  90.    HPS hps;
  91.    #ifndef ACW_PRINT
  92.    RECTL rclPage;
  93.    #endif
  94.    DEVOPENSTRUC dosPrn;
  95. } PRNINFO, *PPRNINFO;
  96.  
  97. typedef struct {
  98.    PEGLOB pegGlobals;
  99.    PPRNINFO ppiPrn;
  100.    #ifdef ACW_PRINT
  101.    PPRINTJOB pPrnJob;
  102.    #endif
  103.    FIDTYPE ftFile;
  104.    PFILEBUFINFO ffFile;
  105.    ATTRIBSTACKTYPE astColorStk;
  106.    ATTRIBSTACKTYPE astFontStk;
  107.    BYTE bFont;
  108.    ULONG ulColor;
  109.    LONG sLine;
  110.    SHORT sCol;
  111. } EPMINFO, *PEPMINFO;
  112.  
  113. #endif
  114.  
  115. #ifdef INCL_ERESTYPEDEFS
  116. typedef struct {
  117.    DEVOPENSTRUC dosPrn;
  118.    HDC hdcPrn;
  119.    HPS hpsPrn;
  120.    SIZEL szlPrn;
  121.    ULONG ulFileId;
  122.    LONG sLine;
  123.    SHORT sCol;
  124.    BYTE bFont;
  125.    ULONG ulColor;
  126. } ERESPRNINFO, *PERESPRNINFO;
  127. #endif
  128. #endif
  129.  
  130. #endif
  131.