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.

301 lines
6.7 KiB

  1. #if !defined(_CHOOSEFILENAMEPAGE_H)
  2. #define _CHOOSEFILENAMEPAGE_H
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ChooseFileNamePage.h : header file
  7. //
  8. #include "Certificat.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CChooseFileNamePage dialog
  11. //class CCertificate;
  12. class CChooseFileNamePage : public CIISWizardPage
  13. {
  14. DECLARE_DYNCREATE(CChooseFileNamePage)
  15. // Construction
  16. public:
  17. CChooseFileNamePage( UINT id = 0,
  18. UINT defaultID = 0,
  19. UINT extID = 0,
  20. UINT filterID = 0,
  21. CString * pOutFileName = NULL
  22. );
  23. ~CChooseFileNamePage();
  24. // Dialog Data
  25. //{{AFX_DATA(CChooseCAPage)
  26. CString m_FileName;
  27. //}}AFX_DATA
  28. BOOL m_DoReplaceFile;
  29. UINT m_id, m_defaultID;
  30. CString ext, filter;
  31. CString * m_pOutFileName;
  32. // Overrides
  33. virtual void FileNameChanged()
  34. {
  35. }
  36. virtual BOOL IsReadFileDlg()
  37. {
  38. ASSERT(FALSE);
  39. return FALSE;
  40. }
  41. // ClassWizard generate virtual function overrides
  42. //{{AFX_VIRTUAL(CChooseCAPage)
  43. protected:
  44. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  45. public:
  46. virtual LRESULT OnWizardNext()
  47. {
  48. ASSERT(FALSE);
  49. return 1;
  50. }
  51. virtual LRESULT OnWizardBack();
  52. virtual BOOL OnSetActive();
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. protected:
  56. void GetDefaultFileName(CString& str);
  57. void Browse(CString& strPath, CString& strFile);
  58. LRESULT DoWizardNext(LRESULT id);
  59. // Generated message map functions
  60. //{{AFX_MSG(CChooseCAPage)
  61. afx_msg void OnBrowseBtn();
  62. virtual BOOL OnInitDialog();
  63. afx_msg void OnChangeFileName();
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. };
  67. class CChooseReadFileName : public CChooseFileNamePage
  68. {
  69. DECLARE_DYNCREATE(CChooseReadFileName)
  70. // Construction
  71. public:
  72. CChooseReadFileName( UINT id = 0,
  73. UINT defaultID = 0,
  74. UINT extID = 0,
  75. UINT filterID = 0,
  76. CString * pOutFileName = NULL
  77. );
  78. ~CChooseReadFileName()
  79. {
  80. }
  81. // Overrides
  82. virtual void FileNameChanged()
  83. {
  84. }
  85. virtual BOOL IsReadFileDlg()
  86. {
  87. return TRUE;
  88. }
  89. // ClassWizard generate virtual function overrides
  90. //{{AFX_VIRTUAL(CChooseCAPage)
  91. protected:
  92. // virtual void DoDataExchange(CDataExchange* pDX)
  93. // {
  94. // CChooseFileNamePage::DoDataExchange(pDX);
  95. // }
  96. public:
  97. virtual LRESULT OnWizardNext();
  98. virtual LRESULT OnWizardBack() {return 1;}
  99. virtual BOOL OnSetActive()
  100. {
  101. return CChooseFileNamePage::OnSetActive();
  102. }
  103. //}}AFX_VIRTUAL
  104. // Implementation
  105. protected:
  106. // Generated message map functions
  107. //{{AFX_MSG(CChooseCAPage)
  108. afx_msg void OnBrowseBtn();
  109. virtual BOOL OnInitDialog();
  110. //}}AFX_MSG
  111. DECLARE_MESSAGE_MAP()
  112. };
  113. class CChooseWriteFileName : public CChooseFileNamePage
  114. {
  115. DECLARE_DYNCREATE(CChooseWriteFileName)
  116. // Construction
  117. public:
  118. CChooseWriteFileName(UINT id = 0,
  119. UINT defaultID = 0,
  120. UINT extID = 0,
  121. UINT filterID = 0,
  122. CString * pOutFileName = NULL
  123. );
  124. ~CChooseWriteFileName() {}
  125. // Overrides
  126. virtual void FileNameChanged() {}
  127. virtual BOOL IsReadFileDlg()
  128. {
  129. return FALSE;
  130. }
  131. // ClassWizard generate virtual function overrides
  132. //{{AFX_VIRTUAL(CChooseCAPage)
  133. protected:
  134. // virtual void DoDataExchange(CDataExchange* pDX)
  135. // {
  136. // CChooseFileNamePage::DoDataExchange(pDX);
  137. // }
  138. public:
  139. virtual LRESULT OnWizardNext();
  140. virtual LRESULT OnWizardBack() {return 1;}
  141. virtual BOOL OnSetActive()
  142. {
  143. return CChooseFileNamePage::OnSetActive();
  144. }
  145. //}}AFX_VIRTUAL
  146. // Implementation
  147. protected:
  148. // Generated message map functions
  149. //{{AFX_MSG(CChooseCAPage)
  150. afx_msg void OnBrowseBtn();
  151. virtual BOOL OnInitDialog();
  152. //}}AFX_MSG
  153. DECLARE_MESSAGE_MAP()
  154. };
  155. class CChooseRespFile : public CChooseReadFileName
  156. {
  157. DECLARE_DYNCREATE(CChooseRespFile)
  158. // Construction
  159. public:
  160. CChooseRespFile(CCertificate * pCert = NULL);
  161. ~CChooseRespFile();
  162. enum
  163. {
  164. IDD_PAGE_PREV = IDD_PAGE_WIZ_PENDING_WHAT_TODO,
  165. IDD_PAGE_NEXT = IDD_PAGE_WIZ_INSTALL_RESP,
  166. };
  167. // Dialog Data
  168. //{{AFX_DATA(CChooseRespFile)
  169. enum { IDD = IDD_PAGE_WIZ_GETRESP_FILE };
  170. // NOTE - ClassWizard will add data members here.
  171. // DO NOT EDIT what you see in these blocks of generated code !
  172. //}}AFX_DATA
  173. CCertificate * m_pCert;
  174. // Overrides
  175. virtual void FileNameChanged();
  176. // ClassWizard generate virtual function overrides
  177. //{{AFX_VIRTUAL(CChooseRespFile)
  178. public:
  179. virtual LRESULT OnWizardNext();
  180. virtual LRESULT OnWizardBack();
  181. protected:
  182. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  183. //}}AFX_VIRTUAL
  184. // Implementation
  185. protected:
  186. // Generated message map functions
  187. //{{AFX_MSG(CChooseRespFile)
  188. afx_msg HBRUSH OnCtlColor(CDC * pDC, CWnd * pWnd, UINT nCtlColor);
  189. //}}AFX_MSG
  190. DECLARE_MESSAGE_MAP()
  191. };
  192. class CChooseReqFile : public CChooseWriteFileName
  193. {
  194. DECLARE_DYNCREATE(CChooseReqFile)
  195. // Construction
  196. public:
  197. CChooseReqFile(CCertificate * pCert = NULL);
  198. ~CChooseReqFile();
  199. enum
  200. {
  201. IDD_PAGE_PREV = IDD_PAGE_WIZ_GEO_INFO,
  202. IDD_PAGE_NEXT = IDD_PAGE_WIZ_REQUEST_DUMP,
  203. };
  204. // Dialog Data
  205. //{{AFX_DATA(CChooseReqFile)
  206. enum { IDD = IDD_PAGE_WIZ_CHOOSE_FILENAME };
  207. // NOTE - ClassWizard will add data members here.
  208. // DO NOT EDIT what you see in these blocks of generated code !
  209. //}}AFX_DATA
  210. CCertificate * m_pCert;
  211. // Overrides
  212. // ClassWizard generate virtual function overrides
  213. //{{AFX_VIRTUAL(CChooseReqFile)
  214. public:
  215. virtual LRESULT OnWizardNext();
  216. virtual LRESULT OnWizardBack();
  217. protected:
  218. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  219. //}}AFX_VIRTUAL
  220. // Implementation
  221. protected:
  222. // Generated message map functions
  223. //{{AFX_MSG(CChooseReqFile)
  224. // NOTE: the ClassWizard will add member functions here
  225. //}}AFX_MSG
  226. DECLARE_MESSAGE_MAP()
  227. };
  228. class CChooseKeyFile : public CChooseReadFileName
  229. {
  230. DECLARE_DYNCREATE(CChooseKeyFile)
  231. // Construction
  232. public:
  233. CChooseKeyFile(CCertificate * pCert = NULL);
  234. ~CChooseKeyFile();
  235. enum
  236. {
  237. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_WHAT,
  238. IDD_PAGE_NEXT = IDD_PAGE_WIZ_GET_PASSWORD,
  239. };
  240. // Dialog Data
  241. //{{AFX_DATA(CChooseKeyFile)
  242. enum { IDD = IDD_PAGE_WIZ_GETKEY_FILE };
  243. // NOTE - ClassWizard will add data members here.
  244. // DO NOT EDIT what you see in these blocks of generated code !
  245. //}}AFX_DATA
  246. CCertificate * m_pCert;
  247. // Overrides
  248. // ClassWizard generate virtual function overrides
  249. //{{AFX_VIRTUAL(CChooseKeyFile)
  250. public:
  251. virtual LRESULT OnWizardNext();
  252. virtual LRESULT OnWizardBack();
  253. protected:
  254. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  255. //}}AFX_VIRTUAL
  256. // Implementation
  257. protected:
  258. // Generated message map functions
  259. //{{AFX_MSG(CChooseKeyFile)
  260. // NOTE: the ClassWizard will add member functions here
  261. //}}AFX_MSG
  262. DECLARE_MESSAGE_MAP()
  263. };
  264. //{{AFX_INSERT_LOCATION}}
  265. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  266. #endif // !defined(_CHOOSEFILENAMEPAGE_H)