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.

140 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1994-2001 Microsoft Corporation
  3. Module Name :
  4. wfile.h
  5. Abstract:
  6. WWW File Properties Page Definitions
  7. Author:
  8. Sergei Antonov (sergeia)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __WFILE_H__
  14. #define __WFILE__H_
  15. class CW3FilePage : public CInetPropertyPage
  16. {
  17. DECLARE_DYNCREATE(CW3FilePage)
  18. //
  19. // Constructor/Destructor
  20. //
  21. public:
  22. CW3FilePage(CInetPropertySheet * pSheet = NULL);
  23. ~CW3FilePage();
  24. //
  25. // Dialog Data
  26. //
  27. protected:
  28. enum
  29. {
  30. RADIO_DIRECTORY,
  31. RADIO_REDIRECT,
  32. };
  33. //{{AFX_DATA(CW3DirectoryPage)
  34. enum { IDD = IDD_WEB_FILE_PROPERTIES };
  35. int m_nPathType;
  36. BOOL m_fRead;
  37. BOOL m_fWrite;
  38. BOOL m_fAuthor;
  39. BOOL m_fLogAccess;
  40. // BOOL m_fChild;
  41. BOOL m_fExact;
  42. BOOL m_fPermanent;
  43. CString m_strRedirectPath;
  44. CEdit m_edit_Path;
  45. CEdit m_edit_Redirect;
  46. // CStatic m_static_Path;
  47. CStatic m_static_PathPrompt;
  48. CButton m_radio_Dir;
  49. CButton m_check_Author;
  50. // CButton m_check_Child;
  51. // CButton m_check_DirBrowse;
  52. // CButton m_check_Index;
  53. CButton m_check_Write;
  54. CButton m_check_Read;
  55. //}}AFX_DATA
  56. // DWORD m_dwAccessPermissions;
  57. DWORD m_dwBitRangePermissions;
  58. DWORD m_dwAccessPerms;
  59. CButton m_radio_Redirect;
  60. //
  61. // Overrides
  62. //
  63. protected:
  64. virtual HRESULT FetchLoadedValues();
  65. virtual HRESULT SaveInfo();
  66. //{{AFX_VIRTUAL(CW3FilePage)
  67. protected:
  68. virtual void DoDataExchange(CDataExchange * pDX);
  69. //}}AFX_VIRTUAL
  70. //
  71. // Implementation
  72. //
  73. protected:
  74. //{{AFX_MSG(CW3FilePage)
  75. afx_msg void OnChangeEditPath();
  76. afx_msg void OnCheckRead();
  77. afx_msg void OnCheckWrite();
  78. afx_msg void OnCheckAuthor();
  79. afx_msg void OnRadioDir();
  80. afx_msg void OnRadioRedirect();
  81. virtual BOOL OnInitDialog();
  82. //}}AFX_MSG
  83. afx_msg void OnItemChanged();
  84. DECLARE_MESSAGE_MAP()
  85. void ShowControl(CWnd * pWnd, BOOL fShow);
  86. void ShowControl(UINT nID, BOOL fShow);
  87. void SetStateByType();
  88. void SetPathType();
  89. void SetAuthoringState(BOOL fAlterReadAndWrite = TRUE);
  90. void ChangeTypeTo(int nNewType);
  91. protected:
  92. //
  93. // Remember/restore settings.
  94. //
  95. void SaveAuthoringState();
  96. void RestoreAuthoringState();
  97. private:
  98. BOOL m_fOriginalRead;
  99. BOOL m_fOriginalWrite;
  100. DWORD m_dwAttributes;
  101. CString m_strFullMetaPath;
  102. CString m_strPrompt[2];
  103. };
  104. //
  105. // Inline Expansion
  106. //
  107. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  108. inline void CW3FilePage::ShowControl(UINT nID, BOOL fShow)
  109. {
  110. ASSERT(nID > 0);
  111. ShowControl(GetDlgItem(nID), fShow);
  112. }
  113. #endif // __WFILE__H_