OLD | NEW |
---|---|
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FWL_FORM_H | 7 #ifndef _FWL_FORM_H |
8 #define _FWL_FORM_H | 8 #define _FWL_FORM_H |
9 class IFWL_Widget; | 9 class IFWL_Widget; |
10 class IFWL_Panel; | 10 class IFWL_Panel; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 enum FWL_COMMANDID { | 56 enum FWL_COMMANDID { |
57 FWL_COMMANDID_Close = 0, | 57 FWL_COMMANDID_Close = 0, |
58 FWL_COMMANDID_Ok, | 58 FWL_COMMANDID_Ok, |
59 FWL_COMMANDID_Cancel, | 59 FWL_COMMANDID_Cancel, |
60 FWL_COMMANDID_Abort, | 60 FWL_COMMANDID_Abort, |
61 FWL_COMMANDID_Retry, | 61 FWL_COMMANDID_Retry, |
62 FWL_COMMANDID_Ignore, | 62 FWL_COMMANDID_Ignore, |
63 FWL_COMMANDID_Yes, | 63 FWL_COMMANDID_Yes, |
64 FWL_COMMANDID_No, | 64 FWL_COMMANDID_No, |
65 }; | 65 }; |
66 | |
66 class IFWL_Form : public IFWL_Panel { | 67 class IFWL_Form : public IFWL_Panel { |
67 public: | 68 public: |
68 IFWL_Form(); | 69 static IFWL_Form* CreateFormProxy(CFWL_WidgetImpProperties& properties, |
Lei Zhang
2015/12/09 23:15:56
Since the original Create() is gone, can this beco
| |
69 FWL_ERR Initialize(CFWL_WidgetImpProperties& properties, | 70 CFX_WideString* classname, |
70 CFX_WideString* classname, | 71 IFWL_Widget* pOuter); |
71 IFWL_Widget* pOuter); | 72 |
72 FWL_FORMSIZE GetFormSize(); | 73 FWL_FORMSIZE GetFormSize(); |
73 FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize); | 74 FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize); |
74 IFWL_Widget* DoModal(); | 75 IFWL_Widget* DoModal(); |
75 IFWL_Widget* DoModal(FX_DWORD& dwCommandID); | 76 IFWL_Widget* DoModal(FX_DWORD& dwCommandID); |
76 FWL_ERR EndDoModal(); | 77 FWL_ERR EndDoModal(); |
77 FWL_ERR SetBorderRegion(CFX_Path* pPath); | 78 FWL_ERR SetBorderRegion(CFX_Path* pPath); |
79 | |
80 protected: | |
81 IFWL_Form(); | |
78 }; | 82 }; |
79 #endif | 83 #endif |
OLD | NEW |