Leaked source code of windows server 2003
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.

162 lines
8.0 KiB

  1. /*
  2. * This is the common Print Dialog, modified to include a checkbox (and related group box)
  3. * to allow the user to indicate if they want the "Shortcut Table" to be printed.
  4. */
  5. #ifdef WIN16
  6. #define ES_NUMBER 0
  7. #endif
  8. #ifndef UNIX
  9. PRINTDLGORD DIALOG DISCARDABLE 32, 32, 288, 255
  10. #ifdef WIN16
  11. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION |
  12. WS_SYSMENU | DS_3DLOOK
  13. CAPTION "Print"
  14. FONT 8, "MS Sans Serif"
  15. #else
  16. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU |
  17. DS_CONTEXTHELP | DS_3DLOOK
  18. CAPTION "Print"
  19. FONT 8, "MS Shell Dlg"
  20. #endif
  21. BEGIN
  22. GROUPBOX "Printer",grp4,8,4,272,84,WS_GROUP
  23. LTEXT "&Name:",stc6,16,20,36,8
  24. COMBOBOX cmb4,52,18,152,152,CBS_DROPDOWNLIST | CBS_SORT |
  25. WS_VSCROLL | WS_GROUP | WS_TABSTOP
  26. PUSHBUTTON "&Properties",psh2,212,17,60,14,WS_GROUP
  27. LTEXT "Status:",stc8,16,36,36,10,SS_NOPREFIX
  28. CONTROL "",stc12,"Static",SS_LEFTNOWORDWRAP | SS_NOPREFIX |
  29. WS_GROUP,52,36,224,10
  30. LTEXT "Type:",stc7,16,48,36,10,SS_NOPREFIX
  31. CONTROL "",stc11,"Static",SS_LEFTNOWORDWRAP | SS_NOPREFIX |
  32. WS_GROUP,52,48,224,10
  33. LTEXT "Where:",stc10,16,60,36,10,SS_NOPREFIX
  34. CONTROL "",stc14,"Static",SS_LEFTNOWORDWRAP | SS_NOPREFIX |
  35. WS_GROUP,52,60,224,10
  36. LTEXT "Comment:",stc9,16,72,36,10,SS_NOPREFIX
  37. CONTROL "",stc13,"Static",SS_LEFTNOWORDWRAP | SS_NOPREFIX |
  38. WS_GROUP,52,72,152,10
  39. CONTROL "Print to fi&le",chx1,"Button",BS_AUTOCHECKBOX |
  40. WS_GROUP | WS_TABSTOP,212,70,64,8
  41. GROUPBOX "Print range",grp1,8,92,144,58,WS_GROUP
  42. CONTROL "&All",rad1,"Button",BS_AUTORADIOBUTTON | WS_GROUP |
  43. WS_TABSTOP,16,106,64,8
  44. CONTROL "Pa&ges",rad3,"Button",BS_AUTORADIOBUTTON,16,118,36,8
  45. CONTROL "&Selection",rad2,"Button",BS_AUTORADIOBUTTON,16,129,64,
  46. 12
  47. RTEXT "&from:",stc2,51,118,20,8
  48. EDITTEXT edt1,73,115,26,12,ES_NUMBER | WS_GROUP
  49. RTEXT "&to:",stc3,99,118,16,8
  50. EDITTEXT edt2,117,115,26,12,ES_NUMBER | WS_GROUP
  51. GROUPBOX "Copies",grp2,160,92,120,58,WS_GROUP
  52. LTEXT "Number of &copies:",stc5,168,108,68,8
  53. EDITTEXT edt3,240,106,32,12,ES_NUMBER | WS_GROUP
  54. ICON "",ico3,162,124,76,24,SS_CENTERIMAGE | WS_GROUP
  55. CONTROL "C&ollate",chx2,"Button",BS_AUTOCHECKBOX | WS_GROUP |
  56. WS_TABSTOP,240,130,36,8
  57. GROUPBOX "Print frames",-1,7,153,273,59
  58. CONTROL "As la&id out on screen",rad4,"Button",
  59. BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,126,167,150,8
  60. CONTROL "Onl&y the selected frame",rad5,"Button",
  61. BS_AUTORADIOBUTTON,126,180,150,8
  62. CONTROL "All f&rames individually",rad6,"Button",
  63. BS_AUTORADIOBUTTON,126,193,150,8
  64. CONTROL "",IDC_PREVIEW,"Static",SS_BITMAP | SS_SUNKEN,17,165,16,
  65. 14
  66. CONTROL "Print all lin&ked documents",IDC_LINKED,"Button",
  67. BS_AUTOCHECKBOX | WS_TABSTOP,7,218,126,8
  68. CONTROL "Print ta&ble of links",IDC_SHORTCUTS,"Button",
  69. BS_AUTOCHECKBOX | WS_TABSTOP,144,218,128,8
  70. DEFPUSHBUTTON "OK",IDOK,181,234,48,14,WS_GROUP
  71. PUSHBUTTON "Cancel",IDCANCEL,233,234,48,14
  72. CONTROL "", -1,"NativeFontCtl",NFS_ALL,0,0,0,0
  73. END
  74. #else
  75. /* ID_BOTH_P_HELP is from New common dialogs */
  76. #define ID_BOTH_P_HELP pshHelp
  77. #define ID_PRINT_P_SETUP psh1
  78. PRINTDLGORD DIALOG DISCARDABLE 32, 32, 288, 200
  79. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU |
  80. DS_CONTEXTHELP | DS_3DLOOK
  81. CAPTION "Print"
  82. FONT 8, "MS Shell Dlg"
  83. BEGIN
  84. GROUPBOX "Printer",grp4,10,4,270,59,WS_GROUP
  85. LTEXT "&Name",stc6,16,20,36,8
  86. EDITTEXT edt5, 53,19,128,12, ES_AUTOHSCROLL | WS_GROUP
  87. LTEXT "Print &Command Options", stc7, 16, 40, 78, 8
  88. EDITTEXT edt4, 100, 38, 158, 12, ES_AUTOHSCROLL | WS_GROUP
  89. GROUPBOX "Print range",grp1,10,68,144,58,WS_GROUP
  90. CONTROL "&All",rad1,"Button",BS_AUTORADIOBUTTON | WS_GROUP |
  91. WS_TABSTOP,16,82,64,8
  92. CONTROL "Pa&ges",rad3,"Button",BS_AUTORADIOBUTTON,16,94,36,8
  93. CONTROL "&Selection",rad2,"Button",BS_AUTORADIOBUTTON,16,105,64,
  94. 12
  95. RTEXT "&from:",stc2,51,94,20,8
  96. EDITTEXT edt1,73,91,26,12,ES_NUMBER | WS_GROUP
  97. RTEXT "&to:",stc3,99,94,16,8
  98. EDITTEXT edt2,117,91,26,12,ES_NUMBER | WS_GROUP
  99. LTEXT "&Copies",stc5,192,21,28,8
  100. EDITTEXT edt3,225,19,32,12, ES_AUTOHSCROLL | ES_NUMBER
  101. GROUPBOX "Print frames",-1,10,129,269,59
  102. CONTROL "As la&id out on screen",rad4,"Button",
  103. BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,169,143,90,8
  104. CONTROL "Only the selected &frame",rad5,"Button",
  105. BS_AUTORADIOBUTTON,169,156,90,8
  106. CONTROL "All f&rames individually",rad6,"Button",
  107. BS_AUTORADIOBUTTON,169,169,90,8
  108. CONTROL "",IDC_PREVIEW,"Static",SS_BITMAP|SS_SUNKEN,50,143,16,14
  109. CONTROL "Print to fi&le",chx1,"Button",BS_AUTOCHECKBOX |
  110. WS_GROUP | WS_TABSTOP,170,76,64,8
  111. CONTROL "Print all lin&ked documents",IDC_LINKED,"Button",
  112. BS_AUTOCHECKBOX | WS_TABSTOP,170,92,96,8
  113. CONTROL "Print ta&ble of links",IDC_SHORTCUTS,"Button",
  114. BS_AUTOCHECKBOX | WS_TABSTOP,170,108,98,8
  115. DEFPUSHBUTTON "OK",IDOK,84,194,48,14,WS_GROUP
  116. PUSHBUTTON "Cancel",IDCANCEL,158,194,48,14
  117. PUSHBUTTON "Page Setup", ID_PRINT_P_SETUP, 232, 194, 48, 14
  118. END
  119. PRINTDLGORDMOTIF DIALOG DISCARDABLE 32, 32, 288, 182
  120. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU |
  121. DS_CONTEXTHELP | DS_3DLOOK
  122. CAPTION "Print"
  123. FONT 8, "MS Shell Dlg"
  124. BEGIN
  125. GROUPBOX "Printer",grp4,10,4,270,49,WS_GROUP
  126. LTEXT "Name",stc6,16,18,36,8
  127. EDITTEXT edt5, 53,18,128,12, ES_AUTOHSCROLL | WS_GROUP | NOT WS_TABSTOP
  128. LTEXT "&Copies",stc5,192,18,32,8
  129. EDITTEXT edt3,225,16,32,12, ES_AUTOHSCROLL | ES_NUMBER
  130. LTEXT "Print Co&mmand Line", stc7, 16, 36, 78, 8
  131. EDITTEXT edt4, 90, 34, 91, 12, ES_AUTOHSCROLL | WS_GROUP
  132. CONTROL "Print to fil&e",chx1,"Button",BS_AUTOCHECKBOX |
  133. WS_GROUP | WS_TABSTOP,189,36,60,8
  134. GROUPBOX "Print range", grp1,10,57,144,53,WS_GROUP
  135. CONTROL "&All",rad1,"Button",BS_AUTORADIOBUTTON | WS_GROUP |
  136. WS_TABSTOP,16,72,64,8
  137. CONTROL "&Pages",rad3,"Button",BS_AUTORADIOBUTTON,16,89,36,8
  138. RTEXT "&from:",stc2,51,89,20,8
  139. EDITTEXT edt1,73,87,26,12,ES_NUMBER | WS_GROUP
  140. RTEXT "&to:",stc3,100,88,16,8
  141. EDITTEXT edt2,117,87,26,12,ES_NUMBER | WS_GROUP
  142. GROUPBOX "Orientation", grp3, 162, 57, 118, 53, WS_GROUP
  143. CONTROL "Portra&it", rad7, "Button", BS_AUTORADIOBUTTON | WS_GROUP
  144. | WS_TABSTOP, 175, 72, 52, 12
  145. CONTROL "&Landscape", rad8, "Button", BS_AUTORADIOBUTTON, 175, 89, 52, 12
  146. GROUPBOX "Print frames",grp2,10,112,270,55
  147. CONTROL "As lai&d out on screen",rad4,"Button",
  148. BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,175,125,90,8
  149. CONTROL "&Only the selected frame",rad5,"Button",
  150. BS_AUTORADIOBUTTON,175,137,90,8
  151. CONTROL "All f&rames individually",rad6,"Button",
  152. BS_AUTORADIOBUTTON,175,150,90,8
  153. CONTROL "",IDC_PREVIEW,"Static",SS_BITMAP|SS_SUNKEN,40,124,16,14
  154. DEFPUSHBUTTON "OK",IDOK,59,176,55,13,WS_GROUP
  155. PUSHBUTTON "Cancel",IDCANCEL,174,176,55,13
  156. END
  157. #endif /* unix */