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 <memory> | 10 #include <memory> |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 class CFWL_SysBtn; | 78 class CFWL_SysBtn; |
79 class CFWL_FormImpDelegate; | 79 class CFWL_FormImpDelegate; |
80 | 80 |
81 class IFWL_FormDP : public IFWL_DataProvider { | 81 class IFWL_FormDP : public IFWL_DataProvider { |
82 public: | 82 public: |
83 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0; | 83 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0; |
84 }; | 84 }; |
85 | 85 |
86 class IFWL_Form : public IFWL_Widget { | 86 class IFWL_Form : public IFWL_Widget { |
87 public: | 87 public: |
88 IFWL_Form(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); | 88 IFWL_Form(const IFWL_App* app, |
| 89 const CFWL_WidgetImpProperties& properties, |
| 90 IFWL_Widget* pOuter); |
89 ~IFWL_Form() override; | 91 ~IFWL_Form() override; |
90 | 92 |
91 // IFWL_Widget | 93 // IFWL_Widget |
| 94 void Initialize() override; |
| 95 void Finalize() override; |
92 FWL_Type GetClassID() const override; | 96 FWL_Type GetClassID() const override; |
93 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override; | 97 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override; |
94 FWL_Error Initialize() override; | |
95 void Finalize() override; | |
96 | |
97 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 98 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
98 FWL_Error GetClientRect(CFX_RectF& rect) override; | 99 FWL_Error GetClientRect(CFX_RectF& rect) override; |
99 FWL_Error Update() override; | 100 FWL_Error Update() override; |
100 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 101 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
101 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 102 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
102 const CFX_Matrix* pMatrix = nullptr) override; | 103 const CFX_Matrix* pMatrix = nullptr) override; |
103 | 104 |
104 FWL_FORMSIZE GetFormSize(); | 105 FWL_FORMSIZE GetFormSize(); |
105 FWL_Error SetFormSize(FWL_FORMSIZE eFormSize); | 106 FWL_Error SetFormSize(FWL_FORMSIZE eFormSize); |
106 IFWL_Widget* DoModal(); | 107 IFWL_Widget* DoModal(); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 void OnMouseMove(CFWL_MsgMouse* pMsg); | 200 void OnMouseMove(CFWL_MsgMouse* pMsg); |
200 void OnMouseHover(CFWL_MsgMouse* pMsg); | 201 void OnMouseHover(CFWL_MsgMouse* pMsg); |
201 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 202 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
202 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); | 203 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); |
203 void OnWindowMove(CFWL_MsgWindowMove* pMsg); | 204 void OnWindowMove(CFWL_MsgWindowMove* pMsg); |
204 void OnClose(CFWL_MsgClose* pMsg); | 205 void OnClose(CFWL_MsgClose* pMsg); |
205 IFWL_Form* m_pOwner; | 206 IFWL_Form* m_pOwner; |
206 }; | 207 }; |
207 | 208 |
208 #endif // XFA_FWL_CORE_IFWL_FORM_H_ | 209 #endif // XFA_FWL_CORE_IFWL_FORM_H_ |
OLD | NEW |