| 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" | |
| 11 #include "xfa/fwl/core/ifwl_dataprovider.h" | 10 #include "xfa/fwl/core/ifwl_dataprovider.h" |
| 11 #include "xfa/fwl/core/ifwl_widget.h" |
| 12 #include "core/fxcrt/include/fx_system.h" | 12 #include "core/fxcrt/include/fx_system.h" |
| 13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" | 13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" |
| 14 | 14 |
| 15 #define FWL_CLASS_Form L"FWL_FORM" | 15 #define FWL_CLASS_Form L"FWL_FORM" |
| 16 #define FWL_CLASSHASH_Form 881567292 | 16 #define FWL_CLASSHASH_Form 881567292 |
| 17 #define FWL_CLASS_FormProxy L"FWL_FORMPROXY" | 17 #define FWL_CLASS_FormProxy L"FWL_FORMPROXY" |
| 18 #define FWL_CLASSHASH_FormProxy 881567291 | 18 #define FWL_CLASSHASH_FormProxy 881567291 |
| 19 #define FWL_STYLEEXT_FRM_Resize (1L << 0) | 19 #define FWL_STYLEEXT_FRM_Resize (1L << 0) |
| 20 #define FWL_STYLEEXT_FRM_NativeBorder (1L << 1) | 20 #define FWL_STYLEEXT_FRM_NativeBorder (1L << 1) |
| 21 #define FWL_STYLEEXT_FRM_RoundCorner (2L << 1) | 21 #define FWL_STYLEEXT_FRM_RoundCorner (2L << 1) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 class CFX_WideString; | 59 class CFX_WideString; |
| 60 class CFX_Path; | 60 class CFX_Path; |
| 61 class IFWL_Widget; | 61 class IFWL_Widget; |
| 62 class IFWL_Form; | 62 class IFWL_Form; |
| 63 | 63 |
| 64 class IFWL_FormDP : public IFWL_DataProvider { | 64 class IFWL_FormDP : public IFWL_DataProvider { |
| 65 public: | 65 public: |
| 66 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0; | 66 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 class IFWL_Form : public IFWL_Panel { | 69 class IFWL_Form : public IFWL_Widget { |
| 70 public: | 70 public: |
| 71 static IFWL_Form* CreateFormProxy(CFWL_WidgetImpProperties& properties, | 71 static IFWL_Form* CreateFormProxy(CFWL_WidgetImpProperties& properties, |
| 72 CFX_WideString* classname, | 72 CFX_WideString* classname, |
| 73 IFWL_Widget* pOuter); | 73 IFWL_Widget* pOuter); |
| 74 | 74 |
| 75 FWL_FORMSIZE GetFormSize(); | 75 FWL_FORMSIZE GetFormSize(); |
| 76 FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize); | 76 FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize); |
| 77 IFWL_Widget* DoModal(); | 77 IFWL_Widget* DoModal(); |
| 78 IFWL_Widget* DoModal(uint32_t& dwCommandID); | 78 IFWL_Widget* DoModal(uint32_t& dwCommandID); |
| 79 FWL_ERR EndDoModal(); | 79 FWL_ERR EndDoModal(); |
| 80 FWL_ERR SetBorderRegion(CFX_Path* pPath); | 80 FWL_ERR SetBorderRegion(CFX_Path* pPath); |
| 81 | 81 |
| 82 protected: | 82 protected: |
| 83 IFWL_Form(); | 83 IFWL_Form(); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 #endif // XFA_FWL_CORE_IFWL_FORM_H_ | 86 #endif // XFA_FWL_CORE_IFWL_FORM_H_ |
| OLD | NEW |