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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 CFX_WideString wsInsert; | 79 CFX_WideString wsInsert; |
80 bool bValidate;) | 80 bool bValidate;) |
81 | 81 |
82 FWL_EVENT_DEF(CFWL_EvtEdtCheckWord, | 82 FWL_EVENT_DEF(CFWL_EvtEdtCheckWord, |
83 CFWL_EventType::CheckWord, | 83 CFWL_EventType::CheckWord, |
84 CFX_ByteString bsWord; | 84 CFX_ByteString bsWord; |
85 bool bCheckWord;) | 85 bool bCheckWord;) |
86 | 86 |
87 class IFDE_TxtEdtDoRecord; | 87 class IFDE_TxtEdtDoRecord; |
88 class IFWL_Edit; | 88 class IFWL_Edit; |
89 class CFWL_MsgActivate; | |
90 class CFWL_MsgDeactivate; | |
91 class CFWL_MsgMouse; | 89 class CFWL_MsgMouse; |
92 class CFWL_WidgetProperties; | 90 class CFWL_WidgetProperties; |
93 class IFWL_Caret; | 91 class IFWL_Caret; |
94 | 92 |
95 class IFWL_Edit : public IFWL_Widget { | 93 class IFWL_Edit : public IFWL_Widget { |
96 public: | 94 public: |
97 IFWL_Edit(const IFWL_App* app, | 95 IFWL_Edit(const IFWL_App* app, |
98 std::unique_ptr<CFWL_WidgetProperties> properties, | 96 std::unique_ptr<CFWL_WidgetProperties> properties, |
99 IFWL_Widget* pOuter); | 97 IFWL_Widget* pOuter); |
100 ~IFWL_Edit() override; | 98 ~IFWL_Edit() override; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 int32_t AddDoRecord(IFDE_TxtEdtDoRecord* pRecord); | 187 int32_t AddDoRecord(IFDE_TxtEdtDoRecord* pRecord); |
190 void ProcessInsertError(int32_t iError); | 188 void ProcessInsertError(int32_t iError); |
191 | 189 |
192 void DrawSpellCheck(CFX_Graphics* pGraphics, | 190 void DrawSpellCheck(CFX_Graphics* pGraphics, |
193 const CFX_Matrix* pMatrix = nullptr); | 191 const CFX_Matrix* pMatrix = nullptr); |
194 void AddSpellCheckObj(CFX_Path& PathData, | 192 void AddSpellCheckObj(CFX_Path& PathData, |
195 int32_t nStart, | 193 int32_t nStart, |
196 int32_t nCount, | 194 int32_t nCount, |
197 FX_FLOAT fOffSetX, | 195 FX_FLOAT fOffSetX, |
198 FX_FLOAT fOffSetY); | 196 FX_FLOAT fOffSetY); |
199 void DoActivate(CFWL_MsgActivate* pMsg); | |
200 void DoDeactivate(CFWL_MsgDeactivate* pMsg); | |
201 void DoButtonDown(CFWL_MsgMouse* pMsg); | 197 void DoButtonDown(CFWL_MsgMouse* pMsg); |
202 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); | 198 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); |
203 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 199 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
204 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 200 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
205 void OnButtonDblClk(CFWL_MsgMouse* pMsg); | 201 void OnButtonDblClk(CFWL_MsgMouse* pMsg); |
206 void OnMouseMove(CFWL_MsgMouse* pMsg); | 202 void OnMouseMove(CFWL_MsgMouse* pMsg); |
207 void OnKeyDown(CFWL_MsgKey* pMsg); | 203 void OnKeyDown(CFWL_MsgKey* pMsg); |
208 void OnChar(CFWL_MsgKey* pMsg); | 204 void OnChar(CFWL_MsgKey* pMsg); |
209 bool OnScroll(IFWL_ScrollBar* pScrollBar, FWL_SCBCODE dwCode, FX_FLOAT fPos); | 205 bool OnScroll(IFWL_ScrollBar* pScrollBar, FWL_SCBCODE dwCode, FX_FLOAT fPos); |
210 | 206 |
(...skipping 14 matching lines...) Expand all Loading... |
225 std::unique_ptr<IFWL_ScrollBar> m_pHorzScrollBar; | 221 std::unique_ptr<IFWL_ScrollBar> m_pHorzScrollBar; |
226 std::unique_ptr<IFWL_Caret> m_pCaret; | 222 std::unique_ptr<IFWL_Caret> m_pCaret; |
227 CFX_WideString m_wsCache; | 223 CFX_WideString m_wsCache; |
228 CFX_WideString m_wsFont; | 224 CFX_WideString m_wsFont; |
229 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords; | 225 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords; |
230 int32_t m_iCurRecord; | 226 int32_t m_iCurRecord; |
231 int32_t m_iMaxRecord; | 227 int32_t m_iMaxRecord; |
232 }; | 228 }; |
233 | 229 |
234 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ | 230 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ |
OLD | NEW |