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 29 matching lines...) Expand all Loading... |
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 | 45 |
46 // IFWL_WidgetDelegate: | 46 // IFWL_WidgetDelegate: |
47 void OnProcessMessage(CFWL_Message* pMessage) override; | 47 void OnProcessMessage(CFWL_Message* pMessage) override; |
48 void OnProcessEvent(CFWL_Event* pEvent) override; | 48 void OnProcessEvent(CFWL_Event* pEvent) override; |
49 void OnDrawWidget(CFX_Graphics* pGraphics, | 49 void OnDrawWidget(CFX_Graphics* pGraphics, |
50 const CFX_Matrix* pMatrix = NULL) override; | 50 const CFX_Matrix* pMatrix = nullptr) override; |
51 | 51 |
52 void OnTextChanged(IFWL_Widget* pWidget, | 52 void OnTextChanged(IFWL_Widget* pWidget, |
53 const CFX_WideString& wsChanged, | 53 const CFX_WideString& wsChanged, |
54 const CFX_WideString& wsPrevText); | 54 const CFX_WideString& wsPrevText); |
55 void OnTextFull(IFWL_Widget* pWidget); | 55 void OnTextFull(IFWL_Widget* pWidget); |
56 FX_BOOL CheckWord(const CFX_ByteStringC& sWord); | 56 FX_BOOL CheckWord(const CFX_ByteStringC& sWord); |
57 FX_BOOL GetSuggestWords(const CFX_ByteStringC& sWord, | 57 FX_BOOL GetSuggestWords(const CFX_ByteStringC& sWord, |
58 std::vector<CFX_ByteString>& sSuggest); | 58 std::vector<CFX_ByteString>& sSuggest); |
59 | 59 |
60 protected: | 60 protected: |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 public: | 130 public: |
131 void OnSelectChanged(IFWL_Widget* pWidget, | 131 void OnSelectChanged(IFWL_Widget* pWidget, |
132 int32_t iYear, | 132 int32_t iYear, |
133 int32_t iMonth, | 133 int32_t iMonth, |
134 int32_t iDay); | 134 int32_t iDay); |
135 virtual void OnProcessEvent(CFWL_Event* pEvent); | 135 virtual void OnProcessEvent(CFWL_Event* pEvent); |
136 }; | 136 }; |
137 | 137 |
138 #endif // XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ | 138 #endif // XFA_FXFA_APP_XFA_FFTEXTEDIT_H_ |
OLD | NEW |