home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / src / utils / iodprint.hpp < prev    next >
Text File  |  1997-04-02  |  5KB  |  156 lines

  1. /* @(#) 1.6 com/src/samples/utils/iodprint.hpp, odpagepart, od96os2, odos29712d 11/8/96 15:22:51 [3/21/97 17:48:15] */
  2.  
  3. //====START_GENERATED_PROLOG======================================
  4. //
  5. //
  6. //   COMPONENT_NAME: odsamples
  7. //
  8. //   CLASSES: none
  9. //
  10. //   ORIGINS: 82,27
  11. //
  12. //
  13. //   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  14. //   All Rights Reserved
  15. //   Licensed Materials - Property of IBM
  16. //   US Government Users Restricted Rights - Use, duplication or
  17. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  18. //
  19. //   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  20. //   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  21. //   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  22. //   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  23. //   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  24. //   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  25. //   OR PERFORMANCE OF THIS SOFTWARE.
  26. //
  27. //====END_GENERATED_PROLOG========================================
  28. //
  29.  
  30.  
  31. #ifndef ODPrintExtension_Header
  32. #define ODPrintExtension_Header
  33. #endif
  34.  
  35. #define kODPrintExtension       "ODPrintExtension"
  36.  
  37. #define kNoBias                 kODNULL
  38.  
  39. #define CPL_ERROR               -1
  40. #define CPL_NOPRINTERS          -2
  41. #define CPL_NODEFAULT           -3
  42.  
  43. #define PRINT_QUEUE_LENGTH      100
  44. #define QUEUENAME_LENGTH        10
  45. #define DRIVERNAME_LENGTH       125
  46. #define LEN_WORKSTRING          256
  47. #define LEN_TITLE               256
  48.  
  49. #define ERRm                    1
  50. #define WARNm                   2
  51. #define INFOm                   3
  52.  
  53. #define PrinterListBoxDlgRes    201
  54. #define PrintListBox            202
  55. #define PrinterProperties       203
  56. #define RefreshList             204
  57.  
  58. #define PrintingPage            206
  59. #define StopPrinting            207
  60. #define PrintQueueName          208
  61. #define PrintPageNum            209
  62.  
  63. #define PrintRangeDlgRes        210
  64. #define PrinterName             211
  65. #define DocumentName            212
  66. #define PrintAllPages           213
  67. #define PrintSelectivePages     214
  68. #define PrintFrom               215
  69. #define PrintTo                 216
  70. #define PrintCopies             217
  71. #define PrintDoc                218
  72. #define PrintCancel             219
  73.  
  74. #define PrintingPageXString     884
  75. #define ErrorQueueXString       885
  76.  
  77. #define ErrorMsgString          890
  78. #define WarningMsgString        891
  79. #define InfoMsgString           892
  80. #define MessageMsgString        893
  81.  
  82. #define NoPrintQueueMsg         918
  83. #define CantPrintErrorMsg       919
  84. #define CantQueryPrinterMsg     920
  85. #define PrinterFormErrorMsg     921
  86. #define PrintFailureMsg         922
  87. #define NoDefaultQueueMsg       923
  88. #define PrintBufferErrorMsg     924
  89. #define PrintersNotAvailMsg     925
  90. #define NoPrintersWarning       926
  91.  
  92. #define UntitledDocumentMsg     930
  93. #define InitializingMsg         931
  94. #define PreparingJobMsg         932
  95. #define CompletingJobMsg        933
  96. #define PageNumberMsg           934
  97.  
  98. //jwa: Following two strings must stay here - do not move to resource file
  99. //     (since they are displayed when we can't get at our string table)
  100. #define ResourceErrorMsg        "Unable to load resources!"
  101. #define StringNotFoundMsg       "Message not found"
  102.  
  103. // #define kMRIFileName            "IODUtils.dll"; //jwa: using ".dll" extension makes it not search libpath???
  104. #define kMRIFileName            "IODUtils"
  105.  
  106. #define kHelpFileName           "IODUtils.hlp"
  107. #define PRINTER_SETUP_HELP      33501
  108. #define PRINT_DOCUMENT_HELP     33502
  109. #define AVAILABLE_PRINTERS_HELP 33517
  110.  
  111.  
  112. #ifndef IODUTILS_RESOURCES
  113. #ifdef _PLATFORM_OS2_
  114. typedef struct {
  115.    DEVOPENSTRUC    dosPrinter ;
  116.    CHAR            achDevice [256] ;
  117.    CHAR            pszPrinters [256] ;
  118.    PDRIVDATA       pdrv ;
  119.    ODBoolean       selected;
  120. } PRNLISTINFO, *PPRNLISTINFO;
  121.  
  122.  
  123. typedef struct
  124. {
  125.    PSZ            pszPrinter ;
  126.    PSZ            pszDocument;
  127.    ODUShort       usCopies;
  128.    ODUShort       usPrintFrom;
  129.    ODUShort       usPrintTo;
  130.    ODBoolean      fPrintAllPages;
  131.    ODBoolean      fAllowChoiceOfPages;
  132. } PRNRANGE, *PPRNRANGE;
  133. #endif //_PLATFORM_OS2_
  134.  
  135.  
  136. struct PRNINFO
  137. {
  138.    ODPoint    offset;
  139.    ODRect     bounds;
  140.    HDC        hdc;
  141.  
  142. #ifdef _PLATFORM_OS2_
  143.    HPS        hps;
  144.    PHCINFO    phcInfo;
  145.    PRINTDEST  printDest;
  146.    PPRNRANGE  pRange;
  147. #endif //_PLATFORM_OS2_
  148.  
  149. #ifdef _PLATFORM_WIN32_
  150.    PRINTDLG*  printDlg;
  151. #endif //_PLATFORM_WIN32_
  152. };
  153. typedef PRNINFO* PPRNINFO;
  154. #endif //IODUTILS_RESOURCES
  155.  
  156.