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" | 10 #include "core/include/fxge/fx_dib.h" |
11 #include "xfa/src/fgas/include/fx_fnt.h" | 11 #include "xfa/src/fgas/include/fx_fnt.h" |
12 | 12 |
13 class IFDE_TxtEdtBuf; | |
14 class IFDE_TxtEdtPage; | 13 class IFDE_TxtEdtPage; |
15 class IFDE_TxtEdtEngine; | 14 class IFDE_TxtEdtEngine; |
16 class IFDE_TxtEdtEventSink; | 15 class IFDE_TxtEdtEventSink; |
17 class IFDE_TxtEdtParag; | 16 class IFDE_TxtEdtParag; |
18 | 17 |
19 typedef struct FDE_HTXTEDTFIND_ { void* pData; } * FDE_HTXTEDTFIND; | 18 typedef struct FDE_HTXTEDTFIND_ { void* pData; } * FDE_HTXTEDTFIND; |
20 | 19 |
21 #define FDE_TXTEDT_FIND_FLAGS_Prev (0L << 0) | 20 #define FDE_TXTEDT_FIND_FLAGS_Prev (0L << 0) |
22 #define FDE_TXTEDT_FIND_FLAGS_Next (1L << 0) | 21 #define FDE_TXTEDT_FIND_FLAGS_Next (1L << 0) |
23 #define FDE_TXTEDT_FIND_FLAGS_WholeWord (1L << 1) | 22 #define FDE_TXTEDT_FIND_FLAGS_WholeWord (1L << 1) |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 virtual ~IFDE_TxtEdtParag() {} | 249 virtual ~IFDE_TxtEdtParag() {} |
251 virtual int32_t GetTextLength() const = 0; | 250 virtual int32_t GetTextLength() const = 0; |
252 virtual int32_t GetStartIndex() const = 0; | 251 virtual int32_t GetStartIndex() const = 0; |
253 virtual int32_t CountLines() const = 0; | 252 virtual int32_t CountLines() const = 0; |
254 virtual void GetLineRange(int32_t nLineIndex, | 253 virtual void GetLineRange(int32_t nLineIndex, |
255 int32_t& nStart, | 254 int32_t& nStart, |
256 int32_t& nCount) const = 0; | 255 int32_t& nCount) const = 0; |
257 }; | 256 }; |
258 | 257 |
259 #endif // XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ | 258 #endif // XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ |
OLD | NEW |