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_EDIT_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_EDIT_H_ |
8 #define XFA_FWL_CORE_IFWL_EDIT_H_ | 8 #define XFA_FWL_CORE_IFWL_EDIT_H_ |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 class CFWL_MsgDeactivate; | 100 class CFWL_MsgDeactivate; |
101 class CFWL_MsgMouse; | 101 class CFWL_MsgMouse; |
102 class CFWL_WidgetImpDelegate; | 102 class CFWL_WidgetImpDelegate; |
103 class CFWL_WidgetImpProperties; | 103 class CFWL_WidgetImpProperties; |
104 class IFWL_Caret; | 104 class IFWL_Caret; |
105 | 105 |
106 class IFWL_EditDP : public IFWL_DataProvider {}; | 106 class IFWL_EditDP : public IFWL_DataProvider {}; |
107 | 107 |
108 class IFWL_Edit : public IFWL_Widget { | 108 class IFWL_Edit : public IFWL_Widget { |
109 public: | 109 public: |
110 static IFWL_Edit* Create(const CFWL_WidgetImpProperties& properties, | |
111 IFWL_Widget* pOuter); | |
112 | |
113 IFWL_Edit(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); | 110 IFWL_Edit(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); |
114 ~IFWL_Edit() override; | 111 ~IFWL_Edit() override; |
115 | 112 |
116 // IFWL_Widget: | 113 // IFWL_Widget: |
117 FWL_Error GetClassName(CFX_WideString& wsClass) const override; | 114 FWL_Error GetClassName(CFX_WideString& wsClass) const override; |
118 FWL_Type GetClassID() const override; | 115 FWL_Type GetClassID() const override; |
119 FWL_Error Initialize() override; | 116 FWL_Error Initialize() override; |
120 FWL_Error Finalize() override; | 117 FWL_Error Finalize() override; |
121 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 118 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
122 FWL_Error SetWidgetRect(const CFX_RectF& rect) override; | 119 FWL_Error SetWidgetRect(const CFX_RectF& rect) override; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 void OnButtonDblClk(CFWL_MsgMouse* pMsg); | 272 void OnButtonDblClk(CFWL_MsgMouse* pMsg); |
276 void OnMouseMove(CFWL_MsgMouse* pMsg); | 273 void OnMouseMove(CFWL_MsgMouse* pMsg); |
277 void OnKeyDown(CFWL_MsgKey* pMsg); | 274 void OnKeyDown(CFWL_MsgKey* pMsg); |
278 void OnChar(CFWL_MsgKey* pMsg); | 275 void OnChar(CFWL_MsgKey* pMsg); |
279 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); | 276 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); |
280 void DoCursor(CFWL_MsgMouse* pMsg); | 277 void DoCursor(CFWL_MsgMouse* pMsg); |
281 IFWL_Edit* m_pOwner; | 278 IFWL_Edit* m_pOwner; |
282 }; | 279 }; |
283 | 280 |
284 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ | 281 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ |
OLD | NEW |