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.

186 lines
4.0 KiB

  1. /*++
  2. Copyright (c) 1994-2001 Microsoft Corporation
  3. Module Name :
  4. docum.h
  5. Abstract:
  6. WWW Documents Page Definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Sergei Antonov (sergeia)
  10. Project:
  11. Internet Services Manager
  12. Revision History:
  13. --*/
  14. #ifndef __DOCUM_H__
  15. #define __DOCUM_H__
  16. class CW3DocumentsPage;
  17. class CAddDefDocDlg : public CDialog
  18. /*++
  19. Class Description:
  20. Add default document dialog
  21. Public Interface:
  22. CAddDefDocDlg : Constructor
  23. GetDefDocument : Get the default document entered
  24. --*/
  25. {
  26. //
  27. // Construction
  28. //
  29. public:
  30. CAddDefDocDlg(IN CWnd * pParent = NULL);
  31. //
  32. // Access:
  33. //
  34. public:
  35. CString & GetDefDocument() { return m_strDefDocument; }
  36. CW3DocumentsPage * m_pParent;
  37. //
  38. // Dialog Data
  39. //
  40. protected:
  41. //{{AFX_DATA(CAddDefDocDlg)
  42. enum { IDD = IDD_DEFAULT_DOCUMENT };
  43. CString m_strDefDocument;
  44. CButton m_button_Ok;
  45. CEdit m_edit_DefDocument;
  46. //}}AFX_DATA
  47. //
  48. // Overrides
  49. //
  50. protected:
  51. // ClassWizard generated virtual function overrides
  52. //{{AFX_VIRTUAL(CAddDefDocDlg)
  53. protected:
  54. virtual void DoDataExchange(CDataExchange * pDX);
  55. //}}AFX_VIRTUAL
  56. //
  57. // Implementation
  58. //
  59. protected:
  60. // Generated message map functions
  61. //{{AFX_MSG(CAddDefDocDlg)
  62. afx_msg void OnChangeEditDefDocument();
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. };
  66. class CW3DocumentsPage : public CInetPropertyPage
  67. /*++
  68. Class Description:
  69. Documents property page
  70. Public Interface:
  71. CW3DocumentsPage : Constructor
  72. ~CW3DocumentsPage : Destructor
  73. --*/
  74. {
  75. DECLARE_DYNCREATE(CW3DocumentsPage)
  76. //
  77. // Construction
  78. //
  79. public:
  80. CW3DocumentsPage(CInetPropertySheet * pSheet = NULL);
  81. ~CW3DocumentsPage();
  82. BOOL DocExistsInList(LPCTSTR lpDoc);
  83. //
  84. // Dialog Data
  85. //
  86. protected:
  87. //{{AFX_DATA(CW3DocumentsPage)
  88. enum { IDD = IDD_DIRECTORY_DOCUMENTS };
  89. BOOL m_fEnableDefaultDocument;
  90. BOOL m_fEnableFooter;
  91. CString m_strFooter;
  92. CEdit m_edit_Footer;
  93. CButton m_check_EnableDefaultDocument;
  94. CButton m_check_EnableFooter;
  95. CButton m_button_Add;
  96. CButton m_button_Remove;
  97. CButton m_button_Browse;
  98. CListBox m_list_DefDocuments;
  99. //}}AFX_DATA
  100. DWORD m_dwDirBrowsing;
  101. DWORD m_dwBitRangeDirBrowsing;
  102. CString m_strDefaultDocument;
  103. CUpButton m_button_Up;
  104. CDownButton m_button_Down;
  105. //
  106. // Overrides
  107. //
  108. protected:
  109. virtual HRESULT FetchLoadedValues();
  110. virtual HRESULT SaveInfo();
  111. // ClassWizard generate virtual function overrides
  112. //{{AFX_VIRTUAL(CW3DocumentsPage)
  113. protected:
  114. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  115. //}}AFX_VIRTUAL
  116. //
  117. // Implementation
  118. //
  119. protected:
  120. // Generated message map functions
  121. //{{AFX_MSG(CW3DocumentsPage)
  122. afx_msg void OnCheckEnableDefaultDocument();
  123. afx_msg void OnCheckEnableDocumentFooter();
  124. afx_msg void OnButtonAdd();
  125. afx_msg void OnButtonRemove();
  126. afx_msg void OnButtonBrowse();
  127. afx_msg void OnButtonUp();
  128. afx_msg void OnButtonDown();
  129. afx_msg void OnSelchangeListDefaultDocument();
  130. virtual BOOL OnInitDialog();
  131. //}}AFX_MSG
  132. afx_msg void OnItemChanged();
  133. DECLARE_MESSAGE_MAP()
  134. BOOL SetDefDocumentState(BOOL fEnabled);
  135. BOOL SetDocFooterState(BOOL fEnabled);
  136. BOOL SetRemoveState();
  137. BOOL StringFromListBox();
  138. void SetUpDownStates();
  139. void ExchangeDocuments(int nLow, int nHigh);
  140. void MakeFooterCommand(CString & strFooter);
  141. void ParseFooterCommand(CString & strFooter);
  142. void StringToListBox();
  143. protected:
  144. static const LPCTSTR s_lpstrSep;
  145. static const LPCTSTR s_lpstrFILE;
  146. static const LPCTSTR s_lpstrSTRING;
  147. static const LPCTSTR s_lpstrURL;
  148. };
  149. #endif // __DOCUM_H__