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 29 matching lines...) Expand all Loading... |
40 #define FWL_STYLEEXT_EDT_VFar (2L << 20) | 40 #define FWL_STYLEEXT_EDT_VFar (2L << 20) |
41 #define FWL_STYLEEXT_EDT_Justified (1L << 22) | 41 #define FWL_STYLEEXT_EDT_Justified (1L << 22) |
42 #define FWL_STYLEEXT_EDT_Distributed (2L << 22) | 42 #define FWL_STYLEEXT_EDT_Distributed (2L << 22) |
43 #define FWL_STYLEEXT_EDT_HAlignMask (3L << 18) | 43 #define FWL_STYLEEXT_EDT_HAlignMask (3L << 18) |
44 #define FWL_STYLEEXT_EDT_VAlignMask (3L << 20) | 44 #define FWL_STYLEEXT_EDT_VAlignMask (3L << 20) |
45 #define FWL_STYLEEXT_EDT_HAlignModeMask (3L << 22) | 45 #define FWL_STYLEEXT_EDT_HAlignModeMask (3L << 22) |
46 #define FWL_STYLEEXT_EDT_InnerCaret (1L << 24) | 46 #define FWL_STYLEEXT_EDT_InnerCaret (1L << 24) |
47 #define FWL_STYLEEXT_EDT_ShowScrollbarFocus (1L << 25) | 47 #define FWL_STYLEEXT_EDT_ShowScrollbarFocus (1L << 25) |
48 #define FWL_STYLEEXT_EDT_OuterScrollbar (1L << 26) | 48 #define FWL_STYLEEXT_EDT_OuterScrollbar (1L << 26) |
49 #define FWL_STYLEEXT_EDT_LastLineHeight (1L << 27) | 49 #define FWL_STYLEEXT_EDT_LastLineHeight (1L << 27) |
50 #define FWL_STATE_EDT_Editing (1 << FWL_WGTSTATE_MAX) | |
51 #define FWL_PARTDATA_EDT_Background 0 | 50 #define FWL_PARTDATA_EDT_Background 0 |
52 #define FWL_PARTDATA_EDT_StaticBackground 1 | 51 #define FWL_PARTDATA_EDT_StaticBackground 1 |
53 // TODO(dsinclair): Event hash is hash of string, cleanup. pdfium:474 | 52 // TODO(dsinclair): Event hash is hash of string, cleanup. pdfium:474 |
54 #define FWL_EVTHASH_EDT_TextChanged 1064022132 | 53 #define FWL_EVTHASH_EDT_TextChanged 1064022132 |
55 #define FWL_EVTHASH_EDT_PreSelfAdaption 1001979178 | 54 #define FWL_EVTHASH_EDT_PreSelfAdaption 1001979178 |
56 #define FWL_EVTHASH_EDT_Validate 3373308608 | 55 #define FWL_EVTHASH_EDT_Validate 3373308608 |
57 #define FWL_EVTHASH_EDT_CheckWord 2897181520 | 56 #define FWL_EVTHASH_EDT_CheckWord 2897181520 |
58 #define FWL_EVTHASH_EDT_GetSuggestWords 315782791 | 57 #define FWL_EVTHASH_EDT_GetSuggestWords 315782791 |
59 #define FWL_EVTHASH_EDT_TextFull 2158580174 | 58 #define FWL_EVTHASH_EDT_TextFull 2158580174 |
60 #define FWL_EDT_FIND_FLAGS_Prev (0L << 0) | |
61 #define FWL_EDT_FIND_FLAGS_Next (1L << 0) | |
62 #define FWL_EDT_FIND_FLAGS_WholeWord (1L << 1) | |
63 #define FWL_EDT_FIND_FLAGS_NoCase (1L << 2) | |
64 | 59 |
65 typedef struct FWL_HEDTFIND_ { void* pData; } * FWL_HEDTFIND; | 60 typedef struct FWL_HEDTFIND_ { void* pData; } * FWL_HEDTFIND; |
66 | 61 |
67 enum FWL_EDT_TEXTCHANGED { | 62 enum FWL_EDT_TEXTCHANGED { |
68 FWL_EDT_TEXTCHANGED_Insert = 0, | 63 FWL_EDT_TEXTCHANGED_Insert = 0, |
69 FWL_EDT_TEXTCHANGED_Delete, | 64 FWL_EDT_TEXTCHANGED_Delete, |
70 FWL_EDT_TEXTCHANGED_Replace, | 65 FWL_EDT_TEXTCHANGED_Replace, |
71 }; | 66 }; |
72 | 67 |
73 BEGIN_FWL_EVENT_DEF(CFWL_EvtEdtTextChanged, FWL_EVTHASH_EDT_TextChanged) | 68 BEGIN_FWL_EVENT_DEF(CFWL_EvtEdtTextChanged, FWL_EVTHASH_EDT_TextChanged) |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 FX_BOOL GetSuggestWords(CFX_PointF pointf, | 152 FX_BOOL GetSuggestWords(CFX_PointF pointf, |
158 std::vector<CFX_ByteString>& sSuggest); | 153 std::vector<CFX_ByteString>& sSuggest); |
159 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, | 154 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, |
160 const CFX_ByteStringC& bsReplace); | 155 const CFX_ByteStringC& bsReplace); |
161 | 156 |
162 protected: | 157 protected: |
163 IFWL_Edit(); | 158 IFWL_Edit(); |
164 }; | 159 }; |
165 | 160 |
166 #endif // XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ | 161 #endif // XFA_FWL_BASEWIDGET_IFWL_EDIT_H_ |
OLD | NEW |