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_FEE_IFDE_TXTEDTENGINE_H_ | 7 #ifndef XFA_FEE_IFDE_TXTEDTENGINE_H_ |
8 #define XFA_FEE_IFDE_TXTEDTENGINE_H_ | 8 #define XFA_FEE_IFDE_TXTEDTENGINE_H_ |
9 | 9 |
10 #include "core/fxge/include/fx_dib.h" | 10 #include "core/fxge/include/fx_dib.h" |
11 #include "xfa/fgas/font/fgas_font.h" | 11 #include "xfa/fgas/font/fgas_font.h" |
12 | 12 |
13 class IFDE_TxtEdtPage; | 13 class IFDE_TxtEdtPage; |
14 class IFDE_TxtEdtEngine; | 14 class IFDE_TxtEdtEngine; |
15 class IFDE_TxtEdtEventSink; | 15 class IFDE_TxtEdtEventSink; |
16 class IFDE_TxtEdtParag; | 16 class IFDE_TxtEdtParag; |
17 | 17 |
18 typedef struct FDE_HTXTEDTFIND_ { void* pData; } * FDE_HTXTEDTFIND; | 18 typedef struct FDE_HTXTEDTFIND_ { void* pData; } * FDE_HTXTEDTFIND; |
19 | 19 |
20 #define FDE_TXTEDT_FIND_FLAGS_Prev (0L << 0) | |
21 #define FDE_TXTEDT_FIND_FLAGS_Next (1L << 0) | |
22 #define FDE_TXTEDT_FIND_FLAGS_WholeWord (1L << 1) | |
23 #define FDE_TXTEDT_FIND_FLAGS_NoCase (1L << 2) | |
24 | |
25 #define FDE_TEXTEDITMODE_MultiLines (1L << 0) | 20 #define FDE_TEXTEDITMODE_MultiLines (1L << 0) |
26 #define FDE_TEXTEDITMODE_AutoLineWrap (1L << 1) | 21 #define FDE_TEXTEDITMODE_AutoLineWrap (1L << 1) |
27 #define FDE_TEXTEDITMODE_ReadOnly (1L << 2) | 22 #define FDE_TEXTEDITMODE_ReadOnly (1L << 2) |
28 #define FDE_TEXTEDITMODE_LimitArea_Vert (1L << 3) | 23 #define FDE_TEXTEDITMODE_LimitArea_Vert (1L << 3) |
29 #define FDE_TEXTEDITMODE_LimitArea_Horz (1L << 4) | 24 #define FDE_TEXTEDITMODE_LimitArea_Horz (1L << 4) |
30 #define FDE_TEXTEDITMODE_NoRedoUndo (1L << 5) | 25 #define FDE_TEXTEDITMODE_NoRedoUndo (1L << 5) |
31 #define FDE_TEXTEDITMODE_FIELD_TAB (1L << 6) | 26 #define FDE_TEXTEDITMODE_FIELD_TAB (1L << 6) |
32 #define FDE_TEXTEDITMODE_FIELD_AUTO (1L << 7) | 27 #define FDE_TEXTEDITMODE_FIELD_AUTO (1L << 7) |
33 #define FDE_TEXTEDITMODE_Validate (1L << 8) | 28 #define FDE_TEXTEDITMODE_Validate (1L << 8) |
34 #define FDE_TEXTEDITMODE_Password (1L << 9) | 29 #define FDE_TEXTEDITMODE_Password (1L << 9) |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 virtual ~IFDE_TxtEdtParag() {} | 244 virtual ~IFDE_TxtEdtParag() {} |
250 virtual int32_t GetTextLength() const = 0; | 245 virtual int32_t GetTextLength() const = 0; |
251 virtual int32_t GetStartIndex() const = 0; | 246 virtual int32_t GetStartIndex() const = 0; |
252 virtual int32_t CountLines() const = 0; | 247 virtual int32_t CountLines() const = 0; |
253 virtual void GetLineRange(int32_t nLineIndex, | 248 virtual void GetLineRange(int32_t nLineIndex, |
254 int32_t& nStart, | 249 int32_t& nStart, |
255 int32_t& nCount) const = 0; | 250 int32_t& nCount) const = 0; |
256 }; | 251 }; |
257 | 252 |
258 #endif // XFA_FEE_IFDE_TXTEDTENGINE_H_ | 253 #endif // XFA_FEE_IFDE_TXTEDTENGINE_H_ |
OLD | NEW |