| 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_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ | 7 #ifndef XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ |
| 8 #define XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ | 8 #define XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ |
| 9 | 9 |
| 10 #include "core/include/fxge/fx_dib.h" |
| 11 #include "xfa/src/fgas/include/fx_fnt.h" |
| 12 |
| 10 class IFDE_TxtEdtBuf; | 13 class IFDE_TxtEdtBuf; |
| 11 class IFDE_TxtEdtPage; | 14 class IFDE_TxtEdtPage; |
| 12 class IFDE_TxtEdtEngine; | 15 class IFDE_TxtEdtEngine; |
| 13 class IFDE_TxtEdtEventSink; | 16 class IFDE_TxtEdtEventSink; |
| 14 class IFDE_TxtEdtParag; | 17 class IFDE_TxtEdtParag; |
| 18 |
| 15 #define FDE_TXTEDT_FIND_FLAGS_Prev (0L << 0) | 19 #define FDE_TXTEDT_FIND_FLAGS_Prev (0L << 0) |
| 16 #define FDE_TXTEDT_FIND_FLAGS_Next (1L << 0) | 20 #define FDE_TXTEDT_FIND_FLAGS_Next (1L << 0) |
| 17 #define FDE_TXTEDT_FIND_FLAGS_WholeWord (1L << 1) | 21 #define FDE_TXTEDT_FIND_FLAGS_WholeWord (1L << 1) |
| 18 #define FDE_TXTEDT_FIND_FLAGS_NoCase (1L << 2) | 22 #define FDE_TXTEDT_FIND_FLAGS_NoCase (1L << 2) |
| 19 typedef struct _FDE_HTXTEDTFIND { void* pData; } * FDE_HTXTEDTFIND; | 23 typedef struct _FDE_HTXTEDTFIND { void* pData; } * FDE_HTXTEDTFIND; |
| 20 #define FDE_TEXTEDITMODE_MultiLines (1L << 0) | 24 #define FDE_TEXTEDITMODE_MultiLines (1L << 0) |
| 21 #define FDE_TEXTEDITMODE_AutoLineWrap (1L << 1) | 25 #define FDE_TEXTEDITMODE_AutoLineWrap (1L << 1) |
| 22 #define FDE_TEXTEDITMODE_ReadOnly (1L << 2) | 26 #define FDE_TEXTEDITMODE_ReadOnly (1L << 2) |
| 23 #define FDE_TEXTEDITMODE_LimitArea_Vert (1L << 3) | 27 #define FDE_TEXTEDITMODE_LimitArea_Vert (1L << 3) |
| 24 #define FDE_TEXTEDITMODE_LimitArea_Horz (1L << 4) | 28 #define FDE_TEXTEDITMODE_LimitArea_Horz (1L << 4) |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 virtual ~IFDE_TxtEdtParag() {} | 256 virtual ~IFDE_TxtEdtParag() {} |
| 253 virtual int32_t GetTextLength() const = 0; | 257 virtual int32_t GetTextLength() const = 0; |
| 254 virtual int32_t GetStartIndex() const = 0; | 258 virtual int32_t GetStartIndex() const = 0; |
| 255 virtual int32_t CountLines() const = 0; | 259 virtual int32_t CountLines() const = 0; |
| 256 virtual void GetLineRange(int32_t nLineIndex, | 260 virtual void GetLineRange(int32_t nLineIndex, |
| 257 int32_t& nStart, | 261 int32_t& nStart, |
| 258 int32_t& nCount) const = 0; | 262 int32_t& nCount) const = 0; |
| 259 }; | 263 }; |
| 260 | 264 |
| 261 #endif // XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ | 265 #endif // XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ |
| OLD | NEW |