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_FXFA_APP_XFA_FFTEXTEDIT_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ |
8 #define XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ | 8 #define XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 27 matching lines...) Expand all Loading... |
38 FX_BOOL SelectAll() override; | 38 FX_BOOL SelectAll() override; |
39 FX_BOOL Delete() override; | 39 FX_BOOL Delete() override; |
40 FX_BOOL DeSelect() override; | 40 FX_BOOL DeSelect() override; |
41 FX_BOOL GetSuggestWords(CFX_PointF pointf, | 41 FX_BOOL GetSuggestWords(CFX_PointF pointf, |
42 std::vector<CFX_ByteString>& sSuggest) override; | 42 std::vector<CFX_ByteString>& sSuggest) override; |
43 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, | 43 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, |
44 const CFX_ByteStringC& bsReplace) override; | 44 const CFX_ByteStringC& bsReplace) override; |
45 void OnProcessMessage(CFWL_Message* pMessage) override; | 45 void OnProcessMessage(CFWL_Message* pMessage) override; |
46 void OnProcessEvent(CFWL_Event* pEvent) override; | 46 void OnProcessEvent(CFWL_Event* pEvent) override; |
47 void OnDrawWidget(CFX_Graphics* pGraphics, | 47 void OnDrawWidget(CFX_Graphics* pGraphics, |
48 const CFX_Matrix* pMatrix = NULL) override; | 48 const CFX_Matrix* pMatrix = nullptr) override; |
49 | 49 |
50 void OnTextChanged(IFWL_Widget* pWidget, | 50 void OnTextChanged(IFWL_Widget* pWidget, |
51 const CFX_WideString& wsChanged, | 51 const CFX_WideString& wsChanged, |
52 const CFX_WideString& wsPrevText); | 52 const CFX_WideString& wsPrevText); |
53 void OnTextFull(IFWL_Widget* pWidget); | 53 void OnTextFull(IFWL_Widget* pWidget); |
54 FX_BOOL CheckWord(const CFX_ByteStringC& sWord); | 54 FX_BOOL CheckWord(const CFX_ByteStringC& sWord); |
55 FX_BOOL GetSuggestWords(const CFX_ByteStringC& sWord, | 55 FX_BOOL GetSuggestWords(const CFX_ByteStringC& sWord, |
56 std::vector<CFX_ByteString>& sSuggest); | 56 std::vector<CFX_ByteString>& sSuggest); |
57 | 57 |
58 protected: | 58 protected: |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 protected: | 134 protected: |
135 FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy) override; | 135 FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy) override; |
136 FX_BOOL CommitData() override; | 136 FX_BOOL CommitData() override; |
137 FX_BOOL UpdateFWLData() override; | 137 FX_BOOL UpdateFWLData() override; |
138 FX_BOOL IsDataChanged() override; | 138 FX_BOOL IsDataChanged() override; |
139 | 139 |
140 uint32_t GetAlignment(); | 140 uint32_t GetAlignment(); |
141 }; | 141 }; |
142 | 142 |
143 #endif // XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ | 143 #endif // XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ |
OLD | NEW |