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.

143 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. prtcovpg.h
  5. Abstract:
  6. This module contains the WIN32 FAX API header
  7. for the Windows NT FaxCover rendering routine.
  8. Author:
  9. Julia Robinson (a-juliar) 5-20-96
  10. Revision History:
  11. Julia Robinson (a-juliar) 6-7-76
  12. Julia Robinson (a-juliar) 9-20-96 Allow passing paper size and orientation.
  13. --*/
  14. #ifndef __PRTCOVPG_H__
  15. #define __PRTCOVPG_H__
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. //
  20. // Structure of the composite file header
  21. //
  22. typedef struct {
  23. BYTE Signature[20];
  24. DWORD EmfSize;
  25. DWORD NbrOfTextRecords;
  26. SIZE CoverPageSize;
  27. } COMPOSITEFILEHEADER;
  28. //
  29. // Structure of the text box entries appended to
  30. // the composite file
  31. //
  32. typedef struct {
  33. RECT PositionOfTextBox;
  34. COLORREF TextColor;
  35. LONG TextAlignment;
  36. LOGFONT FontDefinition;
  37. WORD ResourceID ;
  38. DWORD NumStringBytes; // Variable length string will follow this structure
  39. } TEXTBOX;
  40. //
  41. // Structure of user data for text insertions
  42. //
  43. typedef struct _COVERPAGEFIELDS {
  44. //
  45. // Recipient stuff...
  46. //
  47. DWORD ThisStructSize;
  48. LPTSTR RecName;
  49. LPTSTR RecFaxNumber;
  50. LPTSTR RecCompany;
  51. LPTSTR RecStreetAddress;
  52. LPTSTR RecCity;
  53. LPTSTR RecState;
  54. LPTSTR RecZip;
  55. LPTSTR RecCountry;
  56. LPTSTR RecTitle;
  57. LPTSTR RecDepartment;
  58. LPTSTR RecOfficeLocation;
  59. LPTSTR RecHomePhone;
  60. LPTSTR RecOfficePhone;
  61. //
  62. // Senders stuff...
  63. //
  64. LPTSTR SdrName;
  65. LPTSTR SdrFaxNumber;
  66. LPTSTR SdrCompany;
  67. LPTSTR SdrAddress;
  68. LPTSTR SdrTitle;
  69. LPTSTR SdrDepartment;
  70. LPTSTR SdrOfficeLocation;
  71. LPTSTR SdrHomePhone;
  72. LPTSTR SdrOfficePhone;
  73. //
  74. // Misc Stuff...
  75. //
  76. LPTSTR Note;
  77. LPTSTR Subject;
  78. LPTSTR TimeSent;
  79. LPTSTR NumberOfPages;
  80. LPTSTR ToList;
  81. LPTSTR CCList ;
  82. } COVERPAGEFIELDS, *PCOVERPAGEFIELDS;
  83. #define NUM_INSERTION_TAGS ((sizeof(COVERPAGEFIELDS) - sizeof(DWORD)) / sizeof(LPTSTR))
  84. //
  85. // pFlags fields: bit 0 is Recipient Name, bit 1 is Recipient Fax Number, et cetera.
  86. //
  87. #define COVFP_NOTE 0x00400000
  88. #define COVFP_SUBJECT 0x00800000
  89. #define COVFP_NUMPAGES 0x02000000
  90. typedef struct _COVDOCINFO {
  91. DWORD Flags ;
  92. RECT NoteRect ;
  93. short Orientation ;
  94. short PaperSize ;
  95. LOGFONT NoteFont ;
  96. } COVDOCINFO, *PCOVDOCINFO ;
  97. //
  98. // Function prototypes
  99. //
  100. DWORD
  101. WINAPI
  102. PrintCoverPage(
  103. HDC hdc,
  104. PCOVERPAGEFIELDS UserData,
  105. LPTSTR CompositeFileName,
  106. PCOVDOCINFO pCovDocInfo
  107. );
  108. #ifdef __cplusplus
  109. }
  110. #endif
  111. #endif