Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa_test / FormFiller_Test / JS_ResponseDlg.h
1 #if !defined(AFX_JS_RESPONSEDLG_H__AE1575EB_3F0A_46E7_B278_089C74F2B34C__INCLUDED_)\r
2 #define AFX_JS_RESPONSEDLG_H__AE1575EB_3F0A_46E7_B278_089C74F2B34C__INCLUDED_\r
3 \r
4 #if _MSC_VER > 1000\r
5 #pragma once\r
6 #endif // _MSC_VER > 1000\r
7 // JS_ResponseDlg.h : header file\r
8 //\r
9 \r
10 /////////////////////////////////////////////////////////////////////////////\r
11 // CJS_ResponseDlg dialog\r
12 \r
13 class CJS_ResponseDlg : public CDialog\r
14 {\r
15 // Construction\r
16 public:\r
17         CJS_ResponseDlg(CWnd* pParent = NULL);   // standard constructor\r
18         ~CJS_ResponseDlg(){ if(m_swResponse) free(m_swResponse); }\r
19 \r
20 // Dialog Data\r
21         //{{AFX_DATA(CJS_ResponseDlg)\r
22         enum { IDD = IDD_DLG_RESPONSE };\r
23                 // NOTE: the ClassWizard will add data members here\r
24         //}}AFX_DATA\r
25 public:\r
26         void                            SetTitle(FPDF_WIDESTRING swTitle);\r
27         void                            SetQuestion(FPDF_WIDESTRING swQuestion);\r
28         void                            SetDefault(FPDF_WIDESTRING swDefault);\r
29         void                            SetLabel(FPDF_WIDESTRING swLabel);\r
30         void                            SetIsVisible(FPDF_BOOL bPassword);\r
31         FPDF_WIDESTRING         GetResponse();\r
32 \r
33 private:\r
34         FPDF_WIDESTRING         m_swTitle;\r
35         FPDF_WIDESTRING         m_swQuestion;\r
36         FPDF_WIDESTRING         m_swDefault;\r
37         FPDF_WIDESTRING         m_swLabel;\r
38         wchar_t*                        m_swResponse;\r
39         FPDF_BOOL                       m_bIsVisible;\r
40         CEdit*                          m_pResponseEdit;\r
41 // Overrides\r
42         // ClassWizard generated virtual function overrides\r
43         //{{AFX_VIRTUAL(CJS_ResponseDlg)\r
44         protected:\r
45         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
46         //}}AFX_VIRTUAL\r
47 \r
48 // Implementation\r
49 protected:\r
50 \r
51         // Generated message map functions\r
52         //{{AFX_MSG(CJS_ResponseDlg)\r
53                 // NOTE: the ClassWizard will add member functions here\r
54         virtual BOOL OnInitDialog();\r
55         afx_msg void OnResOk();\r
56         afx_msg void OnResCancel();\r
57         //}}AFX_MSG\r
58         DECLARE_MESSAGE_MAP()\r
59 };\r
60 \r
61 //{{AFX_INSERT_LOCATION}}\r
62 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
63 \r
64 #endif // !defined(AFX_JS_RESPONSEDLG_H__AE1575EB_3F0A_46E7_B278_089C74F2B34C__INCLUDED_)\r