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.

155 lines
3.1 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1995 - 1997
  3. All rights reserved.
  4. Module Name:
  5. docdef.hxx
  6. Abstract:
  7. Document defaults header.
  8. Author:
  9. Albert Ting (AlbertT) 29-Sept-1995
  10. Revision History:
  11. --*/
  12. #ifndef _DOCDEF_HXX
  13. #define _DOCDEF_HXX
  14. //
  15. // HACK: private export from winspool.drv.
  16. //
  17. extern "C" {
  18. LONG
  19. DocumentPropertySheets(
  20. PPROPSHEETUI_INFO pPSUIInfo,
  21. LPARAM lParam
  22. );
  23. }
  24. /********************************************************************
  25. Public interface to this module.
  26. ********************************************************************/
  27. VOID
  28. vDocumentDefaults(
  29. IN HWND hwnd,
  30. IN LPCTSTR pszPrinterName,
  31. IN INT nCmdShow,
  32. IN LPARAM lParam
  33. );
  34. DWORD
  35. dwDocumentDefaultsInternal(
  36. IN HWND hwnd,
  37. IN LPCTSTR pszPrinterName,
  38. IN INT nCmdShow,
  39. IN DWORD dwSheet,
  40. IN BOOL bModal,
  41. IN BOOL bGlobal
  42. );
  43. /********************************************************************
  44. Document property windows.
  45. ********************************************************************/
  46. class TDocumentDefaultPropertySheetManager : public TPropertySheetManager {
  47. SIGNATURE( 'down' )
  48. SAFE_NEW
  49. public:
  50. TDocumentDefaultPropertySheetManager::
  51. TDocumentDefaultPropertySheetManager(
  52. IN TPrinterData* pPrinterData
  53. );
  54. TDocumentDefaultPropertySheetManager::
  55. ~TDocumentDefaultPropertySheetManager(
  56. VOID
  57. );
  58. BOOL
  59. TDocumentDefaultPropertySheetManager::
  60. bValid(
  61. VOID
  62. );
  63. BOOL
  64. TDocumentDefaultPropertySheetManager::
  65. bBuildPages(
  66. IN PPROPSHEETUI_INFO pCPSUIInfo
  67. );
  68. BOOL
  69. TDocumentDefaultPropertySheetManager::
  70. bCreateTitle(
  71. VOID
  72. );
  73. static
  74. INT
  75. TDocumentDefaultPropertySheetManager::
  76. iDocumentDefaultsProc(
  77. IN TPrinterData *pPrinterData ADOPT
  78. );
  79. private:
  80. //
  81. // Prevent copying.
  82. //
  83. TDocumentDefaultPropertySheetManager::
  84. TDocumentDefaultPropertySheetManager(
  85. const TDocumentDefaultPropertySheetManager &
  86. );
  87. //
  88. // Prevent assignment.
  89. //
  90. TDocumentDefaultPropertySheetManager &
  91. TDocumentDefaultPropertySheetManager::
  92. operator =(
  93. const TDocumentDefaultPropertySheetManager &
  94. );
  95. BOOL
  96. TDocumentDefaultPropertySheetManager::
  97. bAllocDevModeBuffer(
  98. IN HANDLE hPrinter,
  99. IN LPTSTR pszPrinterName,
  100. OUT PDEVMODE *ppDevMode
  101. );
  102. BOOL
  103. TDocumentDefaultPropertySheetManager::
  104. bSetHeader(
  105. IN PPROPSHEETUI_INFO pCPSUIInfo,
  106. IN PPROPSHEETUI_INFO_HEADER pPSUInfoHeader
  107. );
  108. BOOL
  109. TDocumentDefaultPropertySheetManager::
  110. bSaveResult(
  111. IN PPROPSHEETUI_INFO pCPSUIInfo,
  112. IN PSETRESULT_INFO pSetResultInfo
  113. );
  114. private:
  115. TPrinterData *_pPrinterData;
  116. TString _strTitle;
  117. DOCUMENTPROPERTYHEADER _dph; // Document prorety header
  118. };
  119. #endif