| 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 10 matching lines...) Expand all Loading... |
| 21 #define FWL_STYLEEXT_EDT_ReadOnly (1L << 0) | 21 #define FWL_STYLEEXT_EDT_ReadOnly (1L << 0) |
| 22 #define FWL_STYLEEXT_EDT_MultiLine (1L << 1) | 22 #define FWL_STYLEEXT_EDT_MultiLine (1L << 1) |
| 23 #define FWL_STYLEEXT_EDT_WantReturn (1L << 2) | 23 #define FWL_STYLEEXT_EDT_WantReturn (1L << 2) |
| 24 #define FWL_STYLEEXT_EDT_NoHideSel (1L << 3) | 24 #define FWL_STYLEEXT_EDT_NoHideSel (1L << 3) |
| 25 #define FWL_STYLEEXT_EDT_AutoHScroll (1L << 4) | 25 #define FWL_STYLEEXT_EDT_AutoHScroll (1L << 4) |
| 26 #define FWL_STYLEEXT_EDT_AutoVScroll (1L << 5) | 26 #define FWL_STYLEEXT_EDT_AutoVScroll (1L << 5) |
| 27 #define FWL_STYLEEXT_EDT_NoRedoUndo (1L << 6) | 27 #define FWL_STYLEEXT_EDT_NoRedoUndo (1L << 6) |
| 28 #define FWL_STYLEEXT_EDT_Validate (1L << 7) | 28 #define FWL_STYLEEXT_EDT_Validate (1L << 7) |
| 29 #define FWL_STYLEEXT_EDT_Password (1L << 8) | 29 #define FWL_STYLEEXT_EDT_Password (1L << 8) |
| 30 #define FWL_STYLEEXT_EDT_Number (1L << 9) | 30 #define FWL_STYLEEXT_EDT_Number (1L << 9) |
| 31 #define FWL_STYLEEXT_EDT_HSelfAdaption (1L << 10) | |
| 32 #define FWL_STYLEEXT_EDT_VSelfAdaption (1L << 11) | |
| 33 #define FWL_STYLEEXT_EDT_VerticalLayout (1L << 12) | 31 #define FWL_STYLEEXT_EDT_VerticalLayout (1L << 12) |
| 34 #define FWL_STYLEEXT_EDT_VerticalChars (1L << 13) | 32 #define FWL_STYLEEXT_EDT_VerticalChars (1L << 13) |
| 35 #define FWL_STYLEEXT_EDT_ReverseLine (1L << 14) | 33 #define FWL_STYLEEXT_EDT_ReverseLine (1L << 14) |
| 36 #define FWL_STYLEEXT_EDT_ArabicShapes (1L << 15) | 34 #define FWL_STYLEEXT_EDT_ArabicShapes (1L << 15) |
| 37 #define FWL_STYLEEXT_EDT_ExpandTab (1L << 16) | 35 #define FWL_STYLEEXT_EDT_ExpandTab (1L << 16) |
| 38 #define FWL_STYLEEXT_EDT_CombText (1L << 17) | 36 #define FWL_STYLEEXT_EDT_CombText (1L << 17) |
| 39 #define FWL_STYLEEXT_EDT_HNear (0L << 18) | 37 #define FWL_STYLEEXT_EDT_HNear (0L << 18) |
| 40 #define FWL_STYLEEXT_EDT_HCenter (1L << 18) | 38 #define FWL_STYLEEXT_EDT_HCenter (1L << 18) |
| 41 #define FWL_STYLEEXT_EDT_HFar (2L << 18) | 39 #define FWL_STYLEEXT_EDT_HFar (2L << 18) |
| 42 #define FWL_STYLEEXT_EDT_VNear (0L << 20) | 40 #define FWL_STYLEEXT_EDT_VNear (0L << 20) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 60 | 58 |
| 61 FWL_EVENT_DEF(CFWL_EvtEdtTextChanged, | 59 FWL_EVENT_DEF(CFWL_EvtEdtTextChanged, |
| 62 CFWL_EventType::TextChanged, | 60 CFWL_EventType::TextChanged, |
| 63 int32_t nChangeType; | 61 int32_t nChangeType; |
| 64 CFX_WideString wsInsert; | 62 CFX_WideString wsInsert; |
| 65 CFX_WideString wsDelete; | 63 CFX_WideString wsDelete; |
| 66 CFX_WideString wsPrevText;) | 64 CFX_WideString wsPrevText;) |
| 67 | 65 |
| 68 FWL_EVENT_DEF(CFWL_EvtEdtTextFull, CFWL_EventType::TextFull) | 66 FWL_EVENT_DEF(CFWL_EvtEdtTextFull, CFWL_EventType::TextFull) |
| 69 | 67 |
| 70 FWL_EVENT_DEF(CFWL_EvtEdtPreSelfAdaption, | |
| 71 CFWL_EventType::PreSelfAdaption, | |
| 72 bool bHSelfAdaption; | |
| 73 bool bVSelfAdaption; | |
| 74 CFX_RectF rtAfterChange;) | |
| 75 | |
| 76 FWL_EVENT_DEF(CFWL_EvtEdtValidate, | 68 FWL_EVENT_DEF(CFWL_EvtEdtValidate, |
| 77 CFWL_EventType::Validate, | 69 CFWL_EventType::Validate, |
| 78 IFWL_Widget* pDstWidget; | 70 IFWL_Widget* pDstWidget; |
| 79 CFX_WideString wsInsert; | 71 CFX_WideString wsInsert; |
| 80 bool bValidate;) | 72 bool bValidate;) |
| 81 | 73 |
| 82 FWL_EVENT_DEF(CFWL_EvtEdtCheckWord, | 74 FWL_EVENT_DEF(CFWL_EvtEdtCheckWord, |
| 83 CFWL_EventType::CheckWord, | 75 CFWL_EventType::CheckWord, |
| 84 CFX_ByteString bsWord; | 76 CFX_ByteString bsWord; |
| 85 bool bCheckWord;) | 77 bool bCheckWord;) |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 std::unique_ptr<IFWL_ScrollBar> m_pHorzScrollBar; | 213 std::unique_ptr<IFWL_ScrollBar> m_pHorzScrollBar; |
| 222 std::unique_ptr<IFWL_Caret> m_pCaret; | 214 std::unique_ptr<IFWL_Caret> m_pCaret; |
| 223 CFX_WideString m_wsCache; | 215 CFX_WideString m_wsCache; |
| 224 CFX_WideString m_wsFont; | 216 CFX_WideString m_wsFont; |
| 225 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords; | 217 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords; |
| 226 int32_t m_iCurRecord; | 218 int32_t m_iCurRecord; |
| 227 int32_t m_iMaxRecord; | 219 int32_t m_iMaxRecord; |
| 228 }; | 220 }; |
| 229 | 221 |
| 230 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ | 222 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ |
| OLD | NEW |