Source code of Windows XP (NT5)
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.

191 lines
3.7 KiB

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