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.

119 lines
2.0 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1995 - 1996
  3. All rights reserved.
  4. Module Name:
  5. F:\nt\private\windows\spooler\printui.pri\sepdlg.hxx
  6. Abstract:
  7. Printer Separator page, Print processor, Print test page dialogs
  8. Author:
  9. Steve Kiraly (SteveKi) 11/06/95
  10. Revision History:
  11. --*/
  12. #ifndef _SEPDLG_HXX
  13. #define _SEPDLG_HXX
  14. /********************************************************************
  15. Separator Page Dialog.
  16. ********************************************************************/
  17. class TSeparatorPage : public MGenericDialog {
  18. SIGNATURE( 'adpt' )
  19. public:
  20. TSeparatorPage(
  21. IN const HWND hWnd,
  22. IN const TString &strSeparatorPage,
  23. IN const BOOL bAdministrator,
  24. IN const BOOL bLocal
  25. );
  26. ~TSeparatorPage(
  27. VOID
  28. );
  29. BOOL
  30. bValid(
  31. VOID
  32. ) const;
  33. BOOL
  34. bDoModal(
  35. VOID
  36. );
  37. BOOL
  38. bSetUI(
  39. VOID
  40. );
  41. BOOL
  42. bReadUI(
  43. VOID
  44. );
  45. VAR( TString, strSeparatorPage );
  46. enum CONSTANTS {
  47. kResourceId = DLG_PRINTER_SEPARATOR_PAGE,
  48. kErrorMessage = IDS_ERR_PRINTER_SEPARATOR_PAGE,
  49. kSeparatorPageTitle = IDS_SEPARATOR_PAGE_TITLE,
  50. kErrorSeparatorDoesNotExist = IDS_ERR_SEPARATOR_PAGE_NOEXISTS,
  51. };
  52. private:
  53. BOOL
  54. bValidateSeparatorFile(
  55. VOID
  56. );
  57. BOOL
  58. bHandleMessage(
  59. IN UINT uMsg,
  60. IN WPARAM wParam,
  61. IN LPARAM lParam
  62. );
  63. BOOL
  64. bSelectSeparatorFile(
  65. VOID
  66. );
  67. //
  68. // Operator = and copy not defined.
  69. //
  70. TSeparatorPage &
  71. operator =(
  72. const TSeparatorPage &
  73. );
  74. TSeparatorPage(
  75. const TSeparatorPage &
  76. );
  77. HWND const _hWnd;
  78. BOOL const _bAdministrator;
  79. BOOL _bValid;
  80. BOOL const _bLocal;
  81. };
  82. #endif