| 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 XFA_FWL_CORE_IFWL_FORM_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_FORM_H_ |
| 8 #define XFA_FWL_CORE_IFWL_FORM_H_ | 8 #define XFA_FWL_CORE_IFWL_FORM_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/ifwl_panel.h" | 10 #include "xfa/fwl/core/ifwl_panel.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #define FWL_PARTSTATE_FRM_Inactive 4 | 48 #define FWL_PARTSTATE_FRM_Inactive 4 |
| 49 #define FWL_PARTSTATE_FRM_Disabled 5 | 49 #define FWL_PARTSTATE_FRM_Disabled 5 |
| 50 | 50 |
| 51 enum FWL_FORMSIZE { | 51 enum FWL_FORMSIZE { |
| 52 FWL_FORMSIZE_Manual = 0, | 52 FWL_FORMSIZE_Manual = 0, |
| 53 FWL_FORMSIZE_Width, | 53 FWL_FORMSIZE_Width, |
| 54 FWL_FORMSIZE_Height, | 54 FWL_FORMSIZE_Height, |
| 55 FWL_FORMSIZE_All, | 55 FWL_FORMSIZE_All, |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 enum FWL_COMMANDID { | |
| 59 FWL_COMMANDID_Close = 0, | |
| 60 FWL_COMMANDID_Ok, | |
| 61 FWL_COMMANDID_Cancel, | |
| 62 FWL_COMMANDID_Abort, | |
| 63 FWL_COMMANDID_Retry, | |
| 64 FWL_COMMANDID_Ignore, | |
| 65 FWL_COMMANDID_Yes, | |
| 66 FWL_COMMANDID_No, | |
| 67 }; | |
| 68 | |
| 69 class CFX_DIBitmap; | 58 class CFX_DIBitmap; |
| 70 class CFX_WideString; | 59 class CFX_WideString; |
| 71 class CFX_Path; | 60 class CFX_Path; |
| 72 class IFWL_Widget; | 61 class IFWL_Widget; |
| 73 class IFWL_Form; | 62 class IFWL_Form; |
| 74 | 63 |
| 75 class IFWL_FormDP : public IFWL_DataProvider { | 64 class IFWL_FormDP : public IFWL_DataProvider { |
| 76 public: | 65 public: |
| 77 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0; | 66 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0; |
| 78 }; | 67 }; |
| 79 | 68 |
| 80 class IFWL_Form : public IFWL_Panel { | 69 class IFWL_Form : public IFWL_Panel { |
| 81 public: | 70 public: |
| 82 static IFWL_Form* CreateFormProxy(CFWL_WidgetImpProperties& properties, | 71 static IFWL_Form* CreateFormProxy(CFWL_WidgetImpProperties& properties, |
| 83 CFX_WideString* classname, | 72 CFX_WideString* classname, |
| 84 IFWL_Widget* pOuter); | 73 IFWL_Widget* pOuter); |
| 85 | 74 |
| 86 FWL_FORMSIZE GetFormSize(); | 75 FWL_FORMSIZE GetFormSize(); |
| 87 FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize); | 76 FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize); |
| 88 IFWL_Widget* DoModal(); | 77 IFWL_Widget* DoModal(); |
| 89 IFWL_Widget* DoModal(uint32_t& dwCommandID); | 78 IFWL_Widget* DoModal(uint32_t& dwCommandID); |
| 90 FWL_ERR EndDoModal(); | 79 FWL_ERR EndDoModal(); |
| 91 FWL_ERR SetBorderRegion(CFX_Path* pPath); | 80 FWL_ERR SetBorderRegion(CFX_Path* pPath); |
| 92 | 81 |
| 93 protected: | 82 protected: |
| 94 IFWL_Form(); | 83 IFWL_Form(); |
| 95 }; | 84 }; |
| 96 | 85 |
| 97 #endif // XFA_FWL_CORE_IFWL_FORM_H_ | 86 #endif // XFA_FWL_CORE_IFWL_FORM_H_ |
| OLD | NEW |