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* Create(CFWL_WidgetImpProperties& properties, |
Lei Zhang
2015/12/09 03:43:42
I don't see this getting called?
Tom Sepez
2015/12/09 20:32:05
Yeah, we only instantiate subclasses. ....and its
| |
69 FWL_ERR Initialize(CFWL_WidgetImpProperties& properties, | 70 CFX_WideString* classname, |
70 CFX_WideString* classname, | 71 IFWL_Widget* pOuter); |
71 IFWL_Widget* pOuter); | 72 static IFWL_Form* CreateFormProxy(CFWL_WidgetImpProperties& properties, |
Tom Sepez
2015/12/08 19:29:37
Note: some ifaces have multiple possible impls. M
Lei Zhang
2015/12/09 03:43:42
Acknowledged.
| |
73 CFX_WideString* classname, | |
74 IFWL_Widget* pOuter); | |
75 | |
72 FWL_FORMSIZE GetFormSize(); | 76 FWL_FORMSIZE GetFormSize(); |
73 FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize); | 77 FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize); |
74 IFWL_Widget* DoModal(); | 78 IFWL_Widget* DoModal(); |
75 IFWL_Widget* DoModal(FX_DWORD& dwCommandID); | 79 IFWL_Widget* DoModal(FX_DWORD& dwCommandID); |
76 FWL_ERR EndDoModal(); | 80 FWL_ERR EndDoModal(); |
77 FWL_ERR SetBorderRegion(CFX_Path* pPath); | 81 FWL_ERR SetBorderRegion(CFX_Path* pPath); |
82 | |
83 protected: | |
84 IFWL_Form(); | |
78 }; | 85 }; |
79 #endif | 86 #endif |
OLD | NEW |