Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.5 KiB

  1. /* Header file for Print File */
  2. #define PRINTREC struct PrintType
  3. #define LPPRINTREC PRINTREC FAR *
  4. LPPRINTREC lpPrintFile;
  5. HANDLE hPrintFile;
  6. VOID PrintFileString(LPSTR, LONG, BOOL);
  7. BOOL PrintFileControl(UINT msg, WPARAM wParam, LPARAM lParam );
  8. BOOL APIENTRY PrintFileComm(BOOL);
  9. struct PrintType
  10. {
  11. BOOL active; /* Printer active flag used for pause/resume */
  12. BOOL selectPrintActive; /* Selection printing active */
  13. BOOL filePrintActive; /* File printing active */
  14. SHORT openCount; /* Counter to test for balance of open/close */
  15. INT fileio; /* File iochannel */
  16. HFONT hFont; /* current print font */
  17. LOGFONT font; /* Logical font sturcture */
  18. INT point; /* Point size */
  19. SHORT nLineHeight; /* Real line height includes leading */
  20. INT pageWidth;
  21. INT pageHeight;
  22. INT pageLength; /* Length of page in lines */
  23. INT lineLength; /* Length of line on a page */
  24. INT prtLine; /* Current line being printed */
  25. INT charCount; /* Current position in line */
  26. INT pixCount; /* Current position in pixels */
  27. INT pixColCount; /* Current col position of pixels */
  28. INT tab; /* Tab value */
  29. BOOL CRtoLF; /* True translate CR to LF */
  30. BYTE title[STR255]; /* Title of document to print */
  31. BYTE lineBuffer[STR255]; /* Current line buffer */
  32. BYTE tmpFile[STR255]; /* Temp file name jtfnew */
  33. BOOL cancelAbort; /* Cancel printing flag */
  34. HDC hPrintDC; /* Handle to printer DC */
  35. HWND hAbortDlg; /* Handle to abort dialog box */
  36. };
  37. #define CR 13 /* Carriage return */
  38. #define LF 10 /* Line Feed */
  39. #define FF 12 /* Form Feed */
  40. #define TAB 9 /* Tab */
  41. #define TABMAX 20 /* Max tab size */
  42. #define PRINTFILEBOLD 0x0001
  43. #define PRINTFILEUNDERLINE 0x0002
  44. #define PRINTFILEITALIC 0x0004
  45. #define PRINTFILESTRIKEOUT 0x0008
  46. #define PRINTFILEQUALITY 0x0010
  47. #define PRINTFILECRTOLF 0x0020
  48. #define PRINTFILENORMAL 0x0040
  49. #define PRINTFILETAB 0x0080
  50. #define PRINTFILESETFONT 0x0100
  51. #define PRINTFILEFONTFACE 0x0200