| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #define FWL_STYLEEXT_EDT_LastLineHeight (1L << 27) | 52 #define FWL_STYLEEXT_EDT_LastLineHeight (1L << 27) |
| 53 | 53 |
| 54 class IFDE_TxtEdtDoRecord; | 54 class IFDE_TxtEdtDoRecord; |
| 55 class IFWL_Edit; | 55 class IFWL_Edit; |
| 56 class CFWL_MsgMouse; | 56 class CFWL_MsgMouse; |
| 57 class CFWL_WidgetProperties; | 57 class CFWL_WidgetProperties; |
| 58 class IFWL_Caret; | 58 class IFWL_Caret; |
| 59 | 59 |
| 60 class IFWL_Edit : public IFWL_Widget { | 60 class IFWL_Edit : public IFWL_Widget { |
| 61 public: | 61 public: |
| 62 IFWL_Edit(const IFWL_App* app, | 62 IFWL_Edit(const CFWL_App* app, |
| 63 std::unique_ptr<CFWL_WidgetProperties> properties, | 63 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 64 IFWL_Widget* pOuter); | 64 IFWL_Widget* pOuter); |
| 65 ~IFWL_Edit() override; | 65 ~IFWL_Edit() override; |
| 66 | 66 |
| 67 // IFWL_Widget: | 67 // IFWL_Widget: |
| 68 FWL_Type GetClassID() const override; | 68 FWL_Type GetClassID() const override; |
| 69 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 69 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
| 70 void Update() override; | 70 void Update() override; |
| 71 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 71 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| 72 void SetStates(uint32_t dwStates, bool bSet = true) override; | 72 void SetStates(uint32_t dwStates, bool bSet = true) override; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 std::unique_ptr<IFWL_ScrollBar> m_pHorzScrollBar; | 188 std::unique_ptr<IFWL_ScrollBar> m_pHorzScrollBar; |
| 189 std::unique_ptr<IFWL_Caret> m_pCaret; | 189 std::unique_ptr<IFWL_Caret> m_pCaret; |
| 190 CFX_WideString m_wsCache; | 190 CFX_WideString m_wsCache; |
| 191 CFX_WideString m_wsFont; | 191 CFX_WideString m_wsFont; |
| 192 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords; | 192 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords; |
| 193 int32_t m_iCurRecord; | 193 int32_t m_iCurRecord; |
| 194 int32_t m_iMaxRecord; | 194 int32_t m_iMaxRecord; |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ | 197 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ |
| OLD | NEW |