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_BASEWIDGET_IFWL_EDIT_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ |
8 #define XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #define FWL_STATE_EDT_Editing (1 << FWL_WGTSTATE_MAX) | 50 #define FWL_STATE_EDT_Editing (1 << FWL_WGTSTATE_MAX) |
51 #define FWL_PART_EDT_Border 1 | 51 #define FWL_PART_EDT_Border 1 |
52 #define FWL_PART_EDT_Edge 2 | 52 #define FWL_PART_EDT_Edge 2 |
53 #define FWL_PART_EDT_Background 3 | 53 #define FWL_PART_EDT_Background 3 |
54 #define FWL_PART_EDT_CombTextLine 4 | 54 #define FWL_PART_EDT_CombTextLine 4 |
55 #define FWL_PARTDATA_EDT_Background 0 | 55 #define FWL_PARTDATA_EDT_Background 0 |
56 #define FWL_PARTDATA_EDT_StaticBackground 1 | 56 #define FWL_PARTDATA_EDT_StaticBackground 1 |
57 #define FWL_PARTSTATE_EDT_Normal (0L << 0) | 57 #define FWL_PARTSTATE_EDT_Normal (0L << 0) |
58 #define FWL_PARTSTATE_EDT_ReadOnly (1L << 0) | 58 #define FWL_PARTSTATE_EDT_ReadOnly (1L << 0) |
59 #define FWL_PARTSTATE_EDT_Disable (2L << 0) | 59 #define FWL_PARTSTATE_EDT_Disable (2L << 0) |
60 #define FWL_EVT_EDT_TextChanged L"FWL_EVENT_EDT_TextChanged" | 60 // TODO(dsinclair): Event hash is hash of string, cleanup. pdfium:474 |
61 #define FWL_EVTHASH_EDT_TextChanged 1064022132 | 61 #define FWL_EVTHASH_EDT_TextChanged 1064022132 |
62 #define FWL_EVT_EDT_PreSelfAdaption L"FWL_EVENT_PreSelfAdaption" | |
63 #define FWL_EVTHASH_EDT_PreSelfAdaption 1001979178 | 62 #define FWL_EVTHASH_EDT_PreSelfAdaption 1001979178 |
64 #define FWL_EVT_EDT_Validate L"FWL_EVTHASH_EDT_Validate" | |
65 #define FWL_EVTHASH_EDT_Validate 3373308608 | 63 #define FWL_EVTHASH_EDT_Validate 3373308608 |
66 #define FWL_EVT_EDT_CheckWord L"FWL_EVTHASH_EDT_CheckWord" | |
67 #define FWL_EVTHASH_EDT_CheckWord 2897181520 | 64 #define FWL_EVTHASH_EDT_CheckWord 2897181520 |
68 #define FWL_EVT_EDT_GetSuggestWords L"FWL_EVTHASH_EDT_GetSuggestWords" | |
69 #define FWL_EVTHASH_EDT_GetSuggestWords 315782791 | 65 #define FWL_EVTHASH_EDT_GetSuggestWords 315782791 |
70 #define FWL_EVT_EDT_TextFull L"FWL_EVTHASH_EDT_TextFull" | |
71 #define FWL_EVTHASH_EDT_TextFull 2158580174 | 66 #define FWL_EVTHASH_EDT_TextFull 2158580174 |
72 #define FWL_EDT_FIND_FLAGS_Prev (0L << 0) | 67 #define FWL_EDT_FIND_FLAGS_Prev (0L << 0) |
73 #define FWL_EDT_FIND_FLAGS_Next (1L << 0) | 68 #define FWL_EDT_FIND_FLAGS_Next (1L << 0) |
74 #define FWL_EDT_FIND_FLAGS_WholeWord (1L << 1) | 69 #define FWL_EDT_FIND_FLAGS_WholeWord (1L << 1) |
75 #define FWL_EDT_FIND_FLAGS_NoCase (1L << 2) | 70 #define FWL_EDT_FIND_FLAGS_NoCase (1L << 2) |
76 | 71 |
77 typedef struct FWL_HEDTFIND_ { void* pData; } * FWL_HEDTFIND; | 72 typedef struct FWL_HEDTFIND_ { void* pData; } * FWL_HEDTFIND; |
78 | 73 |
79 enum FWL_EDT_TEXTCHANGED { | 74 enum FWL_EDT_TEXTCHANGED { |
80 FWL_EDT_TEXTCHANGED_Insert = 0, | 75 FWL_EDT_TEXTCHANGED_Insert = 0, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 FX_BOOL GetSuggestWords(CFX_PointF pointf, | 164 FX_BOOL GetSuggestWords(CFX_PointF pointf, |
170 std::vector<CFX_ByteString>& sSuggest); | 165 std::vector<CFX_ByteString>& sSuggest); |
171 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, | 166 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, |
172 const CFX_ByteStringC& bsReplace); | 167 const CFX_ByteStringC& bsReplace); |
173 | 168 |
174 protected: | 169 protected: |
175 IFWL_Edit(); | 170 IFWL_Edit(); |
176 }; | 171 }; |
177 | 172 |
178 #endif // XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ | 173 #endif // XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ |
OLD | NEW |