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_CFWL_EDIT_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_EDIT_H_ |
8 #define XFA_FWL_CORE_CFWL_EDIT_H_ | 8 #define XFA_FWL_CORE_CFWL_EDIT_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "xfa/fwl/core/cfwl_widget.h" | 12 #include "xfa/fwl/core/cfwl_widget.h" |
13 #include "xfa/fwl/core/ifwl_edit.h" | 13 #include "xfa/fwl/core/ifwl_edit.h" |
14 | 14 |
15 class CFWL_WidgetProperties; | |
16 class IFDE_TxtEdtDoRecord; | 15 class IFDE_TxtEdtDoRecord; |
17 | 16 |
18 class CFWL_Edit : public CFWL_Widget { | 17 class CFWL_Edit : public CFWL_Widget { |
19 public: | 18 public: |
20 CFWL_Edit(const IFWL_App*); | 19 CFWL_Edit(const IFWL_App*); |
21 ~CFWL_Edit() override; | 20 ~CFWL_Edit() override; |
22 | 21 |
23 void Initialize(); | 22 void Initialize(); |
24 | 23 |
25 FWL_Error SetText(const CFX_WideString& wsText); | 24 FWL_Error SetText(const CFX_WideString& wsText); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 bool Paste(const CFX_WideString& wsPaste); | 59 bool Paste(const CFX_WideString& wsPaste); |
61 bool Delete(); | 60 bool Delete(); |
62 void SetScrollOffset(FX_FLOAT fScrollOffset); | 61 void SetScrollOffset(FX_FLOAT fScrollOffset); |
63 bool GetSuggestWords(CFX_PointF pointf, | 62 bool GetSuggestWords(CFX_PointF pointf, |
64 std::vector<CFX_ByteString>& sSuggest); | 63 std::vector<CFX_ByteString>& sSuggest); |
65 bool ReplaceSpellCheckWord(CFX_PointF pointf, | 64 bool ReplaceSpellCheckWord(CFX_PointF pointf, |
66 const CFX_ByteStringC& bsReplace); | 65 const CFX_ByteStringC& bsReplace); |
67 }; | 66 }; |
68 | 67 |
69 #endif // XFA_FWL_CORE_CFWL_EDIT_H_ | 68 #endif // XFA_FWL_CORE_CFWL_EDIT_H_ |
OLD | NEW |